Compare commits
52 Commits
Author | SHA1 | Date | |
---|---|---|---|
20662dc99b | |||
d90aabb99b | |||
580d72e6bb | |||
7a2e4e91ac | |||
8486c6bcb9 | |||
d58c5b4895 | |||
|
4d35633d70 | ||
a477daf1e6 | |||
6c39b1f7e7 | |||
0352433045 | |||
ffbbf297a2 | |||
cf987ceaf9 | |||
dc4a053369 | |||
6ea381e7c2 | |||
77c1184049 | |||
f77a1ebcd2 | |||
495a90c1e3 | |||
d31c795765 | |||
1edec05f1c | |||
b546911704 | |||
2067238c3e | |||
1c9e13a58c | |||
25605ef8f1 | |||
c65fe30c11 | |||
5ab1084ca8 | |||
2a143729c2 | |||
8afa44019d | |||
ff7a806bef | |||
34d02fe2b1 | |||
1d6d82696f | |||
4d3178a6aa | |||
843546c516 | |||
65cceedff1 | |||
8602ef38c3 | |||
acb366f5e3 | |||
aaf5b32371 | |||
647cad196a | |||
02a9f7f7e3 | |||
8b248296b7 | |||
c341d7277e | |||
752383d402 | |||
6e149f8366 | |||
8032818b00 | |||
30e300249f | |||
0202e80d30 | |||
1998c131a6 | |||
47dc505c49 | |||
6a113f3a0c | |||
b1d1d4b498 | |||
9aa9faa1be | |||
84bd5b0996 | |||
7b6e2b9216 |
23
.drone.yml
23
.drone.yml
@ -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
2
.gitattributes
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*.org linguist-detectable
|
||||||
|
docs/* -linguist-documentation
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,3 +2,5 @@
|
|||||||
/public/
|
/public/
|
||||||
/resources/
|
/resources/
|
||||||
/content/*.md
|
/content/*.md
|
||||||
|
/.hugo_build.lock
|
||||||
|
/build/
|
||||||
|
19
config.toml
19
config.toml
@ -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 = "Phundrak’s rambling"
|
title = "Phundrak’s 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
|
2489
content-org/blog.org
2489
content-org/blog.org
File diff suppressed because it is too large
Load Diff
BIN
content/leon.png
Normal file
BIN
content/leon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 MiB |
@ -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,47 +15,65 @@
|
|||||||
{{ 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;
|
||||||
}
|
}
|
||||||
p code {
|
.commento-root .commento-dark-card {
|
||||||
font-family: monospace,monospace;
|
background-color: #d08770 !important;
|
||||||
font-size: 1em;
|
}
|
||||||
background: rgba(46, 52, 64, .8);
|
.commento-root input[type="text"], .commento-root textarea {
|
||||||
padding: 3px;
|
color: #2e3440 !important;
|
||||||
border-radius: 5px;
|
}
|
||||||
}
|
.commento-root .commento-mod-tools::before {
|
||||||
.app-header-social {
|
color: #b48ead !important;
|
||||||
cursor: default;
|
}
|
||||||
}
|
.commento-root .commento-submit-button {
|
||||||
p {
|
background: #5e81ac !important;
|
||||||
text-align: justify;
|
}
|
||||||
text-justify: inter-word;
|
|
||||||
}
|
.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 {
|
||||||
|
font-family: monospace,monospace;
|
||||||
|
font-size: 1em;
|
||||||
|
background: rgba(46, 52, 64, .8);
|
||||||
|
padding: 3px;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
.app-header-social {
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
p {
|
||||||
|
text-align: justify;
|
||||||
|
text-justify: inter-word;
|
||||||
|
}
|
||||||
</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">
|
||||||
|
@ -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>
|
|
||||||
{{ partial "icon.html" (dict "ctx" $ "name" "clock") }}
|
|
||||||
{{ .ReadingTime }} min read
|
|
||||||
</div>
|
|
||||||
{{- with .Params.tags -}}
|
|
||||||
<div>
|
|
||||||
{{ partial "icon.html" (dict "ctx" $ "name" "tag") }}
|
|
||||||
{{ range . -}}
|
|
||||||
{{- with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}
|
|
||||||
<a class="tag" href="{{ .Permalink }}">{{ .Title }}</a>
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
|
||||||
</div>
|
|
||||||
{{- end -}}
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
<div>
|
||||||
<div class="post-content">
|
{{ partial "icon.html" (dict "ctx" $ "name" "clock") }} {{ .ReadingTime
|
||||||
{{ .Content }}
|
}} min read
|
||||||
|
</div>
|
||||||
|
{{- with .Params.tags -}}
|
||||||
|
<div>
|
||||||
|
{{ partial "icon.html" (dict "ctx" $ "name" "tag") }} {{ range . -}} {{-
|
||||||
|
with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}
|
||||||
|
<a class="tag" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||||
|
{{- end -}} {{- end -}}
|
||||||
|
</div>
|
||||||
|
{{- end -}}
|
||||||
</div>
|
</div>
|
||||||
<div class="post-footer">
|
</header>
|
||||||
{{ template "_internal/disqus.html" . }}
|
<div class="post-content">{{ .Content }}</div>
|
||||||
</div>
|
<div class="post-footer">
|
||||||
</article>
|
<script defer src="https://comentario.phundrak.com/comentario.js"></script>
|
||||||
<script defer src="https://commento.phundrak.com/js/commento.js"></script>
|
<comentario-comments></comentario-comments>
|
||||||
<div id="commento"></div>
|
</div>
|
||||||
|
</article>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
39
layouts/index.xml
Normal file
39
layouts/index.xml
Normal 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>
|
9
publish
9
publish
@ -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
|
|
Loading…
Reference in New Issue
Block a user