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/gitalk.html | 39 ++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 _includes/comments-providers/gitalk.html (limited to '_includes/comments-providers/gitalk.html') 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 -%} -- cgit v1.2.3