From c6bf5f7c895287d2028f6024265913b59784a154 Mon Sep 17 00:00:00 2001 From: Karl Hallsby Date: Sun, 27 Sep 2020 17:45:13 -0500 Subject: Bring all of jekyll-text-theme _includes into site --- _includes/comments-providers/custom.html | 3 +++ _includes/comments-providers/disqus.html | 22 +++++++++++++++ _includes/comments-providers/gitalk.html | 39 +++++++++++++++++++++++++++ _includes/comments-providers/valine.html | 46 ++++++++++++++++++++++++++++++++ 4 files changed, 110 insertions(+) create mode 100644 _includes/comments-providers/custom.html create mode 100644 _includes/comments-providers/disqus.html create mode 100644 _includes/comments-providers/gitalk.html create mode 100644 _includes/comments-providers/valine.html (limited to '_includes/comments-providers') diff --git a/_includes/comments-providers/custom.html b/_includes/comments-providers/custom.html new file mode 100644 index 0000000..600b9f7 --- /dev/null +++ b/_includes/comments-providers/custom.html @@ -0,0 +1,3 @@ + + + diff --git a/_includes/comments-providers/disqus.html b/_includes/comments-providers/disqus.html new file mode 100644 index 0000000..4022306 --- /dev/null +++ b/_includes/comments-providers/disqus.html @@ -0,0 +1,22 @@ +{%- if page.key and + site.comments.disqus.shortname -%} + +
+ + + +{%- endif -%} diff --git a/_includes/comments-providers/gitalk.html b/_includes/comments-providers/gitalk.html new file mode 100644 index 0000000..f7f5c67 --- /dev/null +++ b/_includes/comments-providers/gitalk.html @@ -0,0 +1,39 @@ +{%- if page.key and + site.comments.gitalk.clientID and + site.comments.gitalk.clientSecret and + site.comments.gitalk.repository and + site.comments.gitalk.owner and + site.comments.gitalk.admin -%} + + + + + {%- include snippets/get-sources.html -%} + {%- assign _sources = __return -%} +
+ {%- assign _admin = '' -%} + {%- for _admin_id in site.comments.gitalk.admin -%} + {%- assign _admin = _admin | append: ", '" | append: _admin_id | append: "'" -%} + {%- endfor -%} + {%- assign _last = _admin | size | minus: 1 -%} + {%- assign _admin = _admin | slice: 2, _last -%} + + +{%- endif -%} diff --git a/_includes/comments-providers/valine.html b/_includes/comments-providers/valine.html new file mode 100644 index 0000000..68a4274 --- /dev/null +++ b/_includes/comments-providers/valine.html @@ -0,0 +1,46 @@ +{%- include snippets/get-sources.html -%} +{%- assign _sources = __return -%} + +{%- assign _VALINE_APP_ID = site.comments.valine.app_id -%} +{%- assign _VALINE_APP_KEY = site.comments.valine.app_key -%} +{%- assign _VALINE_PLACEHOLDER = site.comments.valine.placeholder -%} +{%- assign _VALINE_VISITOR = site.comments.valine.visitor -%} +{%- assign _VALINE_META = site.comments.valine.meta -%} + + +{%- if _VALINE_APP_ID and + _VALINE_APP_KEY -%} + +
+ +{%- if _VALINE_VISITOR -%} + + +{%- endif -%} + + + +{%- endif -%} \ No newline at end of file -- cgit v1.2.3