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 adityarauniyar committed Jan 17, 2024
1 parent 9dde559 commit d8e0c84
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 d8e0c84

Please sign in to comment.