Skip to content

Commit

Permalink
Al folio main giscus pages (alshedivat#1596)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
DavidKrassnig authored and chertianser committed Aug 8, 2024
1 parent 00e87fb commit b45ba87
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions _layouts/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ <h2>References</h2>
</div>
{%- endif %}

{%- if site.giscus.repo and page.giscus_comments -%}
{% include giscus.html %}
{%- endif -%}
</div>
3 changes: 2 additions & 1 deletion _projects/2_project.md
Original file line number Diff line number Diff line change
@@ -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.
Expand Down

0 comments on commit b45ba87

Please sign in to comment.