diff options
author | Valentin Popov <valentin@popov.link> | 2023-05-06 11:52:47 +0300 |
---|---|---|
committer | Valentin Popov <valentin@popov.link> | 2023-05-06 11:52:47 +0300 |
commit | 8a1f218a08bec69a5bb531d8c69562b5e9a3d093 (patch) | |
tree | ea24ea089c2cc53403b33f25aaa62babe379c694 | |
parent | 2336ea86de3140bd3fe25a722f18535c4c7ca1cf (diff) | |
download | popov.link-8a1f218a08bec69a5bb531d8c69562b5e9a3d093.tar.xz popov.link-8a1f218a08bec69a5bb531d8c69562b5e9a3d093.zip |
Added comment system
Signed-off-by: Valentin Popov <valentin@popov.link>
-rw-r--r-- | sass/_framework.scss | 2 | ||||
-rw-r--r-- | templates/includes/comments.html | 1 | ||||
-rw-r--r-- | templates/post.html | 20 |
3 files changed, 11 insertions, 12 deletions
diff --git a/sass/_framework.scss b/sass/_framework.scss index e692dd3..99368d9 100644 --- a/sass/_framework.scss +++ b/sass/_framework.scss @@ -27,7 +27,7 @@ body { @media (max-width: 684px) { body { font-size: $font-size-base * 0.85; - padding: 4em 2em 2em 2em; + padding: 4em 1em 2em 1em; } } diff --git a/templates/includes/comments.html b/templates/includes/comments.html new file mode 100644 index 0000000..e1cd142 --- /dev/null +++ b/templates/includes/comments.html @@ -0,0 +1 @@ +<script async crossorigin="anonymous" data-category-id="DIC_kwDOIYDdA84CWSzD" data-category="Announcements" data-emit-metadata="0" data-input-position="bottom" data-lang="en" data-loading="lazy" data-mapping="title" data-reactions-enabled="1" data-repo-id="R_kgDOIYDdAw" data-repo="valentineus/valentineus.github.io" data-strict="1" data-theme="transparent_dark" src="https://giscus.app/client.js"></script>
\ No newline at end of file diff --git a/templates/post.html b/templates/post.html index e5d1cc7..76f15c9 100644 --- a/templates/post.html +++ b/templates/post.html @@ -1,17 +1,15 @@ {% extends 'base.html' %} {% block content %} -<h1>{{ page.title | trim }}</h1> +<section> + <h1>{{ page.title | trim | safe }}</h1> +</section> -{{ page.content | safe }} +<section> + {{ page.content | safe }} +</section> -<small> - <span>Published</span> - <time datetime="{{ page.date | date(format='%+') | trim }}">{{ page.date | trim }}</time> - <span>|</span> - {% set email = config.extra.author.email | trim %} - <a href="mailto:{{ email }}?subject={{ page.title | urlencode | trim }}">Feedback</a> - <span>|</span> - <a href="{{ page.permalink | trim }}">Permalink</a> -</small> +<section> + {% include 'includes/comments.html' %} +</section> {% endblock content %}
\ No newline at end of file |