diff options
author | Valentin Popov <info@valentineus.link> | 2018-12-06 21:23:07 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2018-12-06 21:23:29 +0300 |
commit | 4b85eb999cb1e06da13ed9e436e370e09523537b (patch) | |
tree | 2be93108c57566310dd3809260bd7790d10f2a88 | |
parent | c99c6bcc4620eaa5f28820de71f748164f528a7d (diff) | |
download | popov.link-4b85eb999cb1e06da13ed9e436e370e09523537b.tar.xz popov.link-4b85eb999cb1e06da13ed9e436e370e09523537b.zip |
feat(comments): Delete your own development
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | _includes/comments.html | 48 | ||||
-rw-r--r-- | _layouts/post.html | 4 |
2 files changed, 0 insertions, 52 deletions
diff --git a/_includes/comments.html b/_includes/comments.html deleted file mode 100644 index 8989970..0000000 --- a/_includes/comments.html +++ /dev/null @@ -1,48 +0,0 @@ -{% assign repos = site.repos | strip_newlines | strip_html | strip | normalize_whitespace | smartify | xml_escape %} -{% assign issue = page.issue | strip_newlines | strip_html | strip | normalize_whitespace | xml_escape | round %} - -{% raw %} -<!-- Template --> -<script type="text/html" id="template"> - <div class="panel panel-default"> - <!-- Title --> - <div class="panel-heading"> - <img class="github-avatar img-rounded" src="{{= it.avatar }}"> - <a href="{{= it.url }}"><strong>{{= it.user }}</strong></a> - <span>commented on {{= it.date }}</span> - </div> - <!-- Content --> - <div class="panel-body">{{= it.content }}</div> - </div> -</script> -{% endraw %} - -<!-- Header --> -<h2>Comments</h2> - -<!-- List of comments --> -<div id="comments"></div> - -<!-- Script loading comments --> -<script defer type="text/javascript"> - window.addEventListener("load", function () { - Github.getComments("{{ repos }}", "{{ issue }}", - function (error, comments) { - if (error) { throw new Error(error); } - comments.forEach(function (comment) { - Github.addComment("#comments", comment); - }); - }); - }); -</script> - -<noscript> - <div class="alert alert-warning" role="alert"> - <span>Activate JavaScript to display comments</span> - </div> -</noscript> - -<!-- Button --> -<a href="https://github.com/{{ repos }}/issues/{{ issue }}" class="btn btn-default btn-block" role="button"> - <span>Add a comment</span> -</a> diff --git a/_layouts/post.html b/_layouts/post.html index ce0edcb..b35e73c 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -28,8 +28,4 @@ layout: default {{ content }} </section> - <!-- Comments --> - <section> - {% include comments.html %} - </section> </article> |