Compare commits
No commits in common. "master" and "develop" have entirely different histories.
23
.drone.yml
23
.drone.yml
@ -2,6 +2,12 @@ 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:
|
||||||
@ -32,20 +38,3 @@ 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
2
.gitattributes
vendored
@ -1,2 +0,0 @@
|
|||||||
*.org linguist-detectable
|
|
||||||
docs/* -linguist-documentation
|
|
2
.gitignore
vendored
2
.gitignore
vendored
@ -2,5 +2,3 @@
|
|||||||
/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 = 10
|
paginate = 5
|
||||||
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 = "leon.png"
|
avatar = "mahakala.png"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "github"
|
name = "github"
|
||||||
@ -32,15 +32,19 @@ enableEmoji = true
|
|||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "flag"
|
name = "flag"
|
||||||
url = "https://conlang.phundrak.com"
|
url = "https://langue.phundrak.com"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "twitter"
|
name = "twitter"
|
||||||
url = "https://twitter.com/phundrak"
|
url = "https://github.com/phundrak"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "youtube"
|
name = "youtube"
|
||||||
url = "https://www.youtube.com/@phundrak"
|
url = "https://youtube.com/phundrak"
|
||||||
|
|
||||||
|
[[params.social]]
|
||||||
|
name = "instagram"
|
||||||
|
url = "https://instagram.com/phundrak"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "mail"
|
name = "mail"
|
||||||
@ -56,8 +60,3 @@ enableEmoji = true
|
|||||||
primaryColor = "#8fbcbb"
|
primaryColor = "#8fbcbb"
|
||||||
lightColor = "#d8dee9"
|
lightColor = "#d8dee9"
|
||||||
lightestColor = "#eceff4"
|
lightestColor = "#eceff4"
|
||||||
|
|
||||||
[markup]
|
|
||||||
[markup.goldmark]
|
|
||||||
[markup.goldmark.renderer]
|
|
||||||
unsafe = true
|
|
2127
content-org/blog.org
2127
content-org/blog.org
File diff suppressed because it is too large
Load Diff
BIN
content/leon.png
BIN
content/leon.png
Binary file not shown.
Before Width: | Height: | Size: 1.1 MiB |
@ -7,7 +7,6 @@
|
|||||||
<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 }}" />
|
||||||
|
|
||||||
@ -15,40 +14,31 @@
|
|||||||
{{ 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: #eceff4 !important;
|
color: #eee !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;
|
||||||
@ -65,15 +55,6 @@
|
|||||||
}
|
}
|
||||||
</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">
|
||||||
|
@ -4,27 +4,32 @@
|
|||||||
<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") }} {{ .ReadingTime
|
{{ partial "icon.html" (dict "ctx" $ "name" "clock") }}
|
||||||
}} min read
|
{{ .ReadingTime }} min read
|
||||||
</div>
|
</div>
|
||||||
{{- with .Params.tags -}}
|
{{- with .Params.tags -}}
|
||||||
<div>
|
<div>
|
||||||
{{ partial "icon.html" (dict "ctx" $ "name" "tag") }} {{ range . -}} {{-
|
{{ partial "icon.html" (dict "ctx" $ "name" "tag") }}
|
||||||
with $.Site.GetPage (printf "/%s/%s" "tags" . ) -}}
|
{{ range . -}}
|
||||||
|
{{- 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">{{ .Content }}</div>
|
<div class="post-content">
|
||||||
|
{{ .Content }}
|
||||||
|
</div>
|
||||||
<div class="post-footer">
|
<div class="post-footer">
|
||||||
<script defer src="https://comentario.phundrak.com/comentario.js"></script>
|
{{ template "_internal/disqus.html" . }}
|
||||||
<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 }}
|
||||||
|
@ -1,39 +0,0 @@
|
|||||||
{{- $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
Executable file
9
publish
Executable file
@ -0,0 +1,9 @@
|
|||||||
|
#!/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