Skip to content

Commit

Permalink
feat: Enable post comments using giscus backed by GitHub discussions
Browse files Browse the repository at this point in the history
Enables post (and project) comments using giscus (backed by GitHub discussions).

Fixes #2
  • Loading branch information
christianfosli committed Apr 1, 2024
1 parent 99c692e commit d4dbb52
Show file tree
Hide file tree
Showing 11 changed files with 34 additions and 0 deletions.
3 changes: 3 additions & 0 deletions content/posts/data-webapps-with-streamlit/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ title = "Quick and easy data web apps in Python with Streamlit"
date = "2024-04-01"
draft = true

[extra]
comment = true

[taxonomies]
tags=["python"]
+++
Expand Down
3 changes: 3 additions & 0 deletions content/posts/on-colorscheme-changed/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title = "\"On-colorscheme-changed\" with rust and zbus"
date = "2024-01-23"

[extra]
comment = true

[taxonomies]
tags=["rust", "linux"]
+++
Expand Down
3 changes: 3 additions & 0 deletions content/posts/otel-elastic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title = "Visualisere telemetridata fra .NET mikrotjenester med OpenTelemetry, ElasticSearch, Kibana"
date = "2022-10-24"

[extra]
comment = true

[taxonomies]
tags=["dotnet", "elastic"]
+++
Expand Down
3 changes: 3 additions & 0 deletions content/projects/bike-count.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title = "Bike-count"
description = "Visualizing data from bike-counter's in Stavanger"
weight = 7

[extra]
comment = true
+++

I played a bit with Python pandas and streamlit to learn more about a tech stack I might be working in for an upcoming (as of Feb 2024) project.
Expand Down
3 changes: 3 additions & 0 deletions content/projects/msteams-notify.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title = "MS Teams notify"
description = "Rust-based console app to work-around easy-to-miss notifications from MS Teams PWA on Linux"
weight = 4

[extra]
comment = true
+++

### Problem
Expand Down
3 changes: 3 additions & 0 deletions content/projects/new-uuid.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title = "new-uuid.com"
description = "Simple web api to generate uuid's"
weight = 3

[extra]
comment = true
+++

Simple web api to generate random uuid's,
Expand Down
3 changes: 3 additions & 0 deletions content/projects/notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title = "Notes"
description = "Visualizing my personal (and non-confidential) notes using rust mdbook"
weight = 6

[extra]
comment = true
+++

I'm keeping some of my personal (but non-confidential, of course 😃) notes here.
Expand Down
3 changes: 3 additions & 0 deletions content/projects/on-colorscheme-changed.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title = "On colorscheme changed"
description = "Rust-based service to change color theme in the terminal when the system color scheme changes"
weight = 5

[extra]
comment = true
+++

Rust-based service to change color theme in my terminal emulator and editor whenever the system color scheme changes.
Expand Down
1 change: 1 addition & 0 deletions content/projects/snake.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ weight = 1

[extra]
local_image = "/projects/snake.png"
comment = true
+++

The classic snake game, similar to the one found on Nokia phones in the 90's.
Expand Down
3 changes: 3 additions & 0 deletions content/projects/stellerom.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
title = "Stellerom"
description = "Work-in-Progress web app for finding and rating changing rooms near you"
weight = 2

[extra]
comment = true
+++

Work-in-Progress web app for finding and rating changing rooms near you.
Expand Down
6 changes: 6 additions & 0 deletions templates/_giscus_script.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!-- Enables post comments backed by GitHub discussions -->
<script src="https://giscus.app/client.js" data-repo="christianfosli/christianfosli.github.io"
data-repo-id="MDEwOlJlcG9zaXRvcnkxMzExOTI4NTY=" data-category="Post Comments" data-category-id="DIC_kwDOB9HYGM4CeYkF"
data-mapping="pathname" data-strict="0" data-reactions-enabled="1" data-emit-metadata="1" data-input-position="bottom"
data-theme="preferred_color_scheme" data-lang="en" data-loading="lazy" crossorigin="anonymous" async>
</script>

0 comments on commit d4dbb52

Please sign in to comment.