Skip to content

Commit c824d12

Browse files
Al folio main giscus pages (alshedivat#1596)
Solves alshedivat#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
1 parent b2989ea commit c824d12

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

_layouts/page.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,7 @@ <h2>References</h2>
2121
</div>
2222
{%- endif %}
2323

24+
{%- if site.giscus.repo and page.giscus_comments -%}
25+
{% include giscus.html %}
26+
{%- endif -%}
2427
</div>

_projects/2_project.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
---
22
layout: page
33
title: project 2
4-
description: a project with a background image
4+
description: a project with a background image and giscus comments
55
img: assets/img/3.jpg
66
importance: 2
77
category: work
8+
giscus_comments: true
89
---
910

1011
Every project has a beautiful feature showcase page.

0 commit comments

Comments
 (0)