Compare commits

..

52 Commits

Author SHA1 Message Date
20662dc99b
feat: change Mastodon account
All checks were successful
continuous-integration/drone/push Build is passing
2024-11-20 08:55:25 +01:00
d90aabb99b
feat: switch from commento to comentario 2024-11-20 08:53:22 +01:00
580d72e6bb
docs: f.el v0.21.0 release article
All checks were successful
continuous-integration/drone/push Build is passing
2024-10-03 14:14:02 +02:00
7a2e4e91ac
feat: add fediverse OpenGraph tag
All checks were successful
continuous-integration/drone/push Build is passing
2024-10-01 19:18:48 +02:00
8486c6bcb9
Revert "feat: comments with Remark"
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit d58c5b4895.
2024-10-01 19:08:44 +02:00
d58c5b4895
feat: comments with Remark
All checks were successful
continuous-integration/drone/push Build is passing
2024-10-01 19:02:50 +02:00
Lucien Cartier-Tilet
4d35633d70 chore: add org detection to repo
All checks were successful
continuous-integration/drone/push Build is passing
2024-07-17 09:12:12 +02:00
a477daf1e6
Revert "feat(comments): replace commento with remark42"
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit 6c39b1f7e7.
2024-02-21 09:21:36 +01:00
6c39b1f7e7
feat(comments): replace commento with remark42
All checks were successful
continuous-integration/drone/push Build is passing
2024-02-21 09:11:32 +01:00
0352433045
feat: enable DoNotTrack with Umami analytics
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-25 06:48:28 +01:00
ffbbf297a2
feat: replace Matomo with Umami
All checks were successful
continuous-integration/drone/push Build is passing
2024-01-25 06:44:16 +01:00
cf987ceaf9
docs: typo 2024-01-25 06:43:59 +01:00
dc4a053369
docs: fix typos, unpublish git tutorial
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-27 16:20:08 +02:00
6ea381e7c2
feat: add purging cloudflare cache on deploy
All checks were successful
continuous-integration/drone/push Build is passing
2023-10-27 15:56:10 +02:00
77c1184049
fix: correcting a mistake in c vector doc 2023-10-27 15:56:10 +02:00
f77a1ebcd2
Fix link
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-15 22:34:15 +01:00
495a90c1e3
Add Matomo tracking
All checks were successful
continuous-integration/drone/push Build is passing
2023-01-05 14:30:27 +01:00
d31c795765
Update YouTube URL
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-31 16:10:19 +01:00
1edec05f1c
Add TOC, official article on Org 9.6
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
2022-12-22 14:04:50 +01:00
b546911704
Increase the amount of articles on a single page
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-07 15:41:42 +01:00
2067238c3e
Remove instagram link, update conlanging link
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-07 15:39:30 +01:00
1c9e13a58c
Remove unneeded HTML code
All checks were successful
continuous-integration/drone/push Build is passing
2022-12-07 14:51:18 +01:00
25605ef8f1
Update latest article
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-30 14:27:30 +01:00
c65fe30c11
Yet some more colors
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-30 02:14:49 +01:00
5ab1084ca8
Better placement of the comments, fix color issue for button
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-30 02:09:34 +01:00
2a143729c2
Revert "Yet another update, hopefully of better quality"
All checks were successful
continuous-integration/drone/push Build is passing
This reverts commit 8afa44019d.
2022-11-30 02:08:40 +01:00
8afa44019d
Yet another update, hopefully of better quality
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-30 02:07:30 +01:00
ff7a806bef
Update some more Commento colors
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-30 01:21:18 +01:00
34d02fe2b1
Enable unsafe HTML
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-30 01:14:42 +01:00
1d6d82696f
Better readability when typing a new comment 2022-11-30 01:14:20 +01:00
4d3178a6aa
Remove Matomo code
All checks were successful
continuous-integration/drone/push Build is passing
The Matomo instance used is dead, I’ll recreate another one one day
2022-11-29 17:24:08 +01:00
843546c516
Change some colors for Commento comments 2022-11-29 17:23:46 +01:00
65cceedff1
Typo
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-29 17:01:16 +01:00
8602ef38c3
Fix emoji that shouldn’t be displayed by Hugo, hopefully
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-29 15:08:38 +01:00
acb366f5e3
Fix link
All checks were successful
continuous-integration/drone/push Build is passing
2022-11-29 14:47:22 +01:00
aaf5b32371
Add article on Emacs 29
All checks were successful
continuous-integration/drone Build is passing
2022-11-29 14:43:59 +01:00
647cad196a
Fix date on latest article
All checks were successful
continuous-integration/drone Build is passing
2022-08-15 16:58:15 +02:00
02a9f7f7e3
New French post: Upgrading my org-mode websites
All checks were successful
continuous-integration/drone Build is passing
2022-08-15 16:49:36 +02:00
8b248296b7
Fix indenting 2022-03-28 13:09:31 +02:00
c341d7277e
Update gitignore 2022-02-05 13:45:30 +01:00
752383d402
Make RSS contain full article, fix YouTube URL 2022-02-05 13:45:01 +01:00
6e149f8366
New article: YouTube and RSS feeds 2022-02-04 21:16:01 +01:00
8032818b00
Automatically require ox-hugo for export 2022-02-04 21:15:48 +01:00
30e300249f
Fix erroneous link 2022-02-04 21:15:32 +01:00
0202e80d30
Add Open Sourcing ALYS article 2021-12-17 15:36:52 +01:00
1998c131a6
Reformat org file, add links to custom elisp package 2021-11-22 20:12:23 +01:00
47dc505c49
GDPR better respected 2021-05-19 20:06:48 +02:00
6a113f3a0c
Change sidebar image 2020-12-06 01:45:04 +01:00
b1d1d4b498
Script needed no more due to commit 541577f933 in phundrak/dotfiles 2020-12-06 00:57:18 +01:00
9aa9faa1be
Add category for article 2020-11-28 16:51:22 +01:00
84bd5b0996
Add article on dynamic arrays 2020-11-28 16:48:36 +01:00
7b6e2b9216
Format org file 2020-11-28 16:48:23 +01:00
10 changed files with 1669 additions and 1066 deletions

View File

@ -2,12 +2,6 @@ kind: pipeline
name: default name: default
steps: steps:
# - name: prepare
# image: alpine
# commands:
# - apk add git
# - git submodule update --init --recursive
- name: build - name: build
image: silex/emacs:27-alpine image: silex/emacs:27-alpine
commands: commands:
@ -38,3 +32,20 @@ steps:
event: event:
exclude: exclude:
- pull_request - pull_request
- name: purge cache
image: jetrails/drone-cloudflare-caching
settings:
api_token:
from_secret: cloudflare_cache_api
zone_identifier:
from_secret: phundrak_com_zone_id
action: purge_files
list:
- https://blog.phundrak.com
when:
branch:
- master
event:
exclude:
- pull_request

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
*.org linguist-detectable
docs/* -linguist-documentation

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
/public/ /public/
/resources/ /resources/
/content/*.md /content/*.md
/.hugo_build.lock
/build/

View File

@ -3,7 +3,7 @@ languageCode = "en-us"
copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License." copyright = "This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License."
title = "Phundraks rambling" title = "Phundraks rambling"
theme = "m10c" theme = "m10c"
paginate = 5 paginate = 10
enableInlineShortcodes = true enableInlineShortcodes = true
staticDir = ["static"] staticDir = ["static"]
@ -16,7 +16,7 @@ enableEmoji = true
[params] [params]
author = "Lucien Cartier-Tilet" author = "Lucien Cartier-Tilet"
description = "Some random rambling by a linguistics nerd about Emacs, Linux, and conlanging" description = "Some random rambling by a linguistics nerd about Emacs, Linux, and conlanging"
avatar = "mahakala.png" avatar = "leon.png"
[[params.social]] [[params.social]]
name = "github" name = "github"
@ -32,19 +32,15 @@ enableEmoji = true
[[params.social]] [[params.social]]
name = "flag" name = "flag"
url = "https://langue.phundrak.com" url = "https://conlang.phundrak.com"
[[params.social]] [[params.social]]
name = "twitter" name = "twitter"
url = "https://github.com/phundrak" url = "https://twitter.com/phundrak"
[[params.social]] [[params.social]]
name = "youtube" name = "youtube"
url = "https://youtube.com/phundrak" url = "https://www.youtube.com/@phundrak"
[[params.social]]
name = "instagram"
url = "https://instagram.com/phundrak"
[[params.social]] [[params.social]]
name = "mail" name = "mail"
@ -60,3 +56,8 @@ enableEmoji = true
primaryColor = "#8fbcbb" primaryColor = "#8fbcbb"
lightColor = "#d8dee9" lightColor = "#d8dee9"
lightestColor = "#eceff4" lightestColor = "#eceff4"
[markup]
[markup.goldmark]
[markup.goldmark.renderer]
unsafe = true

File diff suppressed because it is too large Load Diff

BIN
content/leon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -7,6 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="author" content="{{ .Site.Params.author | default "John Doe" }}" /> <meta name="author" content="{{ .Site.Params.author | default "John Doe" }}" />
<meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" /> <meta name="description" content="{{ if .IsHome }}{{ .Site.Params.description }}{{ else }}{{ .Description }}{{ end }}" />
<meta name="fediverse:creator" content="@phundrak@mastodon.phundrak.com" />
{{ $style := resources.Get "css/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint -}} {{ $style := resources.Get "css/main.scss" | resources.ExecuteAsTemplate "css/main.scss" . | resources.ToCSS | resources.Minify | resources.Fingerprint -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" /> <link rel="stylesheet" href="{{ $style.Permalink }}" />
@ -14,31 +15,40 @@
{{ template "_internal/twitter_cards.html" . }} {{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.html" . }} {{ template "_internal/opengraph.html" . }}
<!-- Matomo -->
<script type="text/javascript">
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="//matomo.phundrak.com/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '3']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
<style> <style>
.commento-root .commento-anonymous-checkbox-container input[type="checkbox"] + label, .commento-root .commento-anonymous-checkbox-container input[type="checkbox"] + label,
.commento-root .commento-mod-tools button, .commento-root .commento-mod-tools button,
.commento-root-font * { .commento-root-font * {
color: #eee !important; color: #eceff4 !important;
} }
.commento-root .commento-footer .commento-logo-container .commento-logo-text { .commento-root .commento-footer .commento-logo-container .commento-logo-text {
color: #34495e !important; color: #34495e !important;
} }
.commento-root .commento-dark-card {
background-color: #d08770 !important;
}
.commento-root input[type="text"], .commento-root textarea {
color: #2e3440 !important;
}
.commento-root .commento-mod-tools::before {
color: #b48ead !important;
}
.commento-root .commento-submit-button {
background: #5e81ac !important;
}
.commento-login-box {
background: #3b4252;
}
.commento-input::placeholder {
color:#d8dee9;
}
.commento-root .commento-login-box-container .commento-login-box .commento-email-container .commento-email .commento-email-button {
background: #d8dee9
}
p code { p code {
font-family: monospace,monospace; font-family: monospace,monospace;
font-size: 1em; font-size: 1em;
@ -55,6 +65,15 @@
} }
</style> </style>
<!-- Umami -->
<script async
src="https://umami.phundrak.com/script.js"
data-website-id="ded52f14-40e3-43b9-a680-704f16e02838"
data-do-not-track="true"
>
</script>
<!-- End of Umami code -->
</head> </head>
<body> <body>
<header class="app-header"> <header class="app-header">

View File

@ -1,35 +1,30 @@
{{ define "main" }} {{ define "main" }}
<article class="post"> <article class="post">
<header class="post-header"> <header class="post-header">
<h1 class ="post-title">{{ .Title }}</h1> <h1 class="post-title">{{ .Title }}</h1>
<div class="post-meta"> <div class="post-meta">
<div> <div>
{{ partial "icon.html" (dict "ctx" $ "name" "calendar") }} {{ partial "icon.html" (dict "ctx" $ "name" "calendar") }} {{
{{ .PublishDate.Format "Jan 2, 2006" }} .PublishDate.Format "Jan 2, 2006" }}
</div> </div>
<div> <div>
{{ partial "icon.html" (dict "ctx" $ "name" "clock") }} {{ partial "icon.html" (dict "ctx" $ "name" "clock") }} {{ .ReadingTime
{{ .ReadingTime }} min read }} min read
</div> </div>
{{- with .Params.tags -}} {{- with .Params.tags -}}
<div> <div>
{{ partial "icon.html" (dict "ctx" $ "name" "tag") }} {{ partial "icon.html" (dict "ctx" $ "name" "tag") }} {{ range . -}} {{-
{{ range . -}} with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}
{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}
<a class="tag" href="{{ .Permalink }}">{{ .Title }}</a> <a class="tag" href="{{ .Permalink }}">{{ .Title }}</a>
{{- end -}} {{- end -}} {{- end -}}
{{- end -}}
</div> </div>
{{- end -}} {{- end -}}
</div> </div>
</header> </header>
<div class="post-content"> <div class="post-content">{{ .Content }}</div>
{{ .Content }}
</div>
<div class="post-footer"> <div class="post-footer">
{{ template "_internal/disqus.html" . }} <script defer src="https://comentario.phundrak.com/comentario.js"></script>
<comentario-comments></comentario-comments>
</div> </div>
</article> </article>
<script defer src="https://commento.phundrak.com/js/commento.js"></script>
<div id="commento"></div>
{{ end }} {{ end }}

39
layouts/index.xml Normal file
View File

@ -0,0 +1,39 @@
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
{{- $pages := slice -}}
{{- if or $.IsHome $.IsSection -}}
{{- $pages = $pctx.RegularPages -}}
{{- else -}}
{{- $pages = $pctx.Pages -}}
{{- end -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}
{{- end -}}
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{- with .OutputFormats.Get "RSS" -}}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{- end -}}
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>
</item>
{{ end }}
</channel>
</rss>

View File

@ -1,9 +0,0 @@
#!/usr/bin/env fish
printf "###############################################################################\n"
printf "# Compiling blog #\n"
printf "###############################################################################\n"
hugo
printf "###############################################################################\n"
printf "# Uploading blog #\n"
printf "###############################################################################\n"
rsync -ruvtEhl --progress public/ Tilo:~/www/phundrak.com/blog