From c824d128673c000ef9f0e0e77a0ae30d2c4b4568 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 4787c98..dec6cb6 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -21,4 +21,7 @@ layout: default {%- 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 bebf796..7ff1ea2 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.