Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add comment system #9

Merged
merged 4 commits into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
---
branches:
- master
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eleventy-excellent",
"version": "0.0.2",
"version": "0.1.0",
"description": "Personal developer blog based on the eleventy-excellent theme.",
"author": "Rigoberto L. Perez",
"license": "ISC",
Expand All @@ -19,7 +19,10 @@
"start": "run-p dev:*",
"build": "run-s clean build:*"
},
"keywords": ["blog", "11ty"],
"keywords": [
"blog",
"11ty"
],
"repository": {
"type": "git",
"url": "https://github.com/rlperez/rlperez.github.io.git"
Expand Down
12 changes: 12 additions & 0 deletions src/_layouts/post.njk
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,16 @@ schema: blog
alt="{{ meta.author.name }}"
/>
</div>
<div
id="cusdis_thread"
class="mt-xl wrapper flow prose"
style="color: --var(color-bg)"
data-host="https://cusdis.com"
data-app-id="{{ env.CUSDIS_APP_ID }}"
data-page-id="{{ page.url }}"
data-page-url="{{ meta.url ~ page.url }}"
data-page-title="{{ title }}"
data-theme="auto"
></div>
<script async defer src="https://cusdis.com/js/cusdis.es.js"></script>
</article>
4 changes: 4 additions & 0 deletions src/assets/scripts/bundle/theme-toggle.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ function onClick(themeValue) {
toggleDisplay(darkToggle);
toggleDisplay(lightToggle);

if (window.CUSDIS) {
window.CUSDIS.setTheme(themeValue);
}

setPreference();
updateMetaThemeColor();
}
Expand Down
4 changes: 2 additions & 2 deletions src/pages/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ I am a web developer with going on {{ yearsExperience() }} years experience in t

### Personal

I was born in north Jersey but raised mostly in rural Delaware. When faced with a college acceptance letter and an unfathomable tuition or my other options I chose to look elsewhere. In high school the thing I had excelled to the top level was JROTC so my choice ended up joining the Air Force. After serving six years maintaining avionics systems on F-16s the next step was attending college. Which is how we are here now. Living in rural Pennsylvania.
I was born in north Jersey but raised mostly in rural Delaware. When faced with tuition I couldn't afford I leaned on my success in JROTC choosing to join the Air Force. After serving six years maintaining avionics systems on F-16s the next step was attending college. Which is how we are here now. Living in rural Pennsylvania.

Besides spending time with my family I try to stay busy. In my spare time sometimes I am out on my KLR 650 looking for a new trail. Or perhaps working on my car. Maybe tending to the garden. Building things out of wood perhaps. When I am not doing those things I tend to be dabbling with solutions to my day to day tasks.
Besides spending time with my family I try to stay busy. In my spare time sometimes I am out on my KLR 650 looking for a new trail, wrenching on my car, building something in the workshop, or playing with my two dogs (Gertrude and Mille).

## About the Site

Expand Down