From ed186081932fe6a7cbb0b26ae8315d83102d4a5b Mon Sep 17 00:00:00 2001 From: Edgar B <39066502+Guekka@users.noreply.github.com> Date: Fri, 28 Jun 2024 14:43:52 +0100 Subject: [PATCH] feat: add back giscus and plausible I should have done that a while back --- content/_index.md | 6 ++---- content/posts/_index.md | 2 +- templates/index_analytics.html | 5 +++++ templates/page_analytics.html | 29 +++++++++++++++++++++++++++++ 4 files changed, 37 insertions(+), 5 deletions(-) create mode 100644 templates/index_analytics.html create mode 100644 templates/page_analytics.html diff --git a/content/_index.md b/content/_index.md index 00673f2..f142315 100644 --- a/content/_index.md +++ b/content/_index.md @@ -1,8 +1,6 @@ +++ paginate_by = 3 sort_by = "date" -template = "index.html" - -[extra] -sec = "" +template = "index_analytics.html" +page_template = "page_analytics.html" +++ diff --git a/content/posts/_index.md b/content/posts/_index.md index 60ffd33..c7de8fb 100644 --- a/content/posts/_index.md +++ b/content/posts/_index.md @@ -1,5 +1,5 @@ +++ title = "posts" paginate_by = 10 -template = "index.html" +template = "index_analytics.html" +++ diff --git a/templates/index_analytics.html b/templates/index_analytics.html new file mode 100644 index 0000000..de481db --- /dev/null +++ b/templates/index_analytics.html @@ -0,0 +1,5 @@ +{%- extends "index.html" %} +{% block content %} +{{ super() }} + +{% endblock content %} diff --git a/templates/page_analytics.html b/templates/page_analytics.html new file mode 100644 index 0000000..8a3350c --- /dev/null +++ b/templates/page_analytics.html @@ -0,0 +1,29 @@ +{%- extends "page.html" %} +{% block comments_init %} + +{% endblock comments_init %} + +{% block comments_body %} + + + + + + + +{% endblock comments_body %}