From b45ba878b166e781208b8afdef889632fa58e1f5 Mon Sep 17 00:00:00 2001 From: David Krassnig <96623786+DavidKrassnig@users.noreply.github.com> Date: Sun, 23 Jul 2023 21:18:03 +0200 Subject: [PATCH] Al folio main giscus pages (#1596) Solves #1586 by adding the option for giscus comments sites using the pages layout and minimally modifies Project 2 to show giscus comments as an example --- _layouts/page.html | 3 +++ _projects/2_project.md | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/_layouts/page.html b/_layouts/page.html index 4787c9884be3..dec6cb6c23b7 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -21,4 +21,7 @@

References

{%- endif %} + {%- if site.giscus.repo and page.giscus_comments -%} + {% include giscus.html %} + {%- endif -%} diff --git a/_projects/2_project.md b/_projects/2_project.md index bebf79611b2e..7ff1ea2752ef 100644 --- a/_projects/2_project.md +++ b/_projects/2_project.md @@ -1,10 +1,11 @@ --- layout: page title: project 2 -description: a project with a background image +description: a project with a background image and giscus comments img: assets/img/3.jpg importance: 2 category: work +giscus_comments: true --- Every project has a beautiful feature showcase page.