Compare commits

..

No commits in common. "master" and "develop" have entirely different histories.

10 changed files with 1052 additions and 1655 deletions

View File

@ -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
View File

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

2
.gitignore vendored
View File

@ -2,5 +2,3 @@
/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 = 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

File diff suppressed because it is too large Load Diff

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 MiB

View File

@ -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,64 +14,46 @@
{{ template "_internal/twitter_cards.html" . }} {{ template "_internal/twitter_cards.html" . }}
{{ template "_internal/opengraph.html" . }} {{ template "_internal/opengraph.html" . }}
<style> <!-- Matomo -->
.commento-root .commento-anonymous-checkbox-container input[type="checkbox"] + label, <script type="text/javascript">
.commento-root .commento-mod-tools button, var _paq = window._paq || [];
.commento-root-font * { /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
color: #eceff4 !important; _paq.push(['trackPageView']);
} _paq.push(['enableLinkTracking']);
.commento-root .commento-footer .commento-logo-container .commento-logo-text { (function() {
color: #34495e !important; var u="//matomo.phundrak.com/";
} _paq.push(['setTrackerUrl', u+'matomo.php']);
.commento-root .commento-dark-card { _paq.push(['setSiteId', '3']);
background-color: #d08770 !important; 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);
.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 {
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>
<!-- Umami -->
<script async
src="https://umami.phundrak.com/script.js"
data-website-id="ded52f14-40e3-43b9-a680-704f16e02838"
data-do-not-track="true"
>
</script> </script>
<!-- End of Umami code --> <!-- End Matomo Code -->
<style>
.commento-root .commento-anonymous-checkbox-container input[type="checkbox"] + label,
.commento-root .commento-mod-tools button,
.commento-root-font * {
color: #eee !important;
}
.commento-root .commento-footer .commento-logo-container .commento-logo-text {
color: #34495e !important;
}
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>
</head> </head>
<body> <body>

View File

@ -1,30 +1,35 @@
{{ 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>
<div> </header>
{{ partial "icon.html" (dict "ctx" $ "name" "clock") }} {{ .ReadingTime <div class="post-content">
}} min read {{ .Content }}
</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 class="post-footer">
<div class="post-content">{{ .Content }}</div> {{ template "_internal/disqus.html" . }}
<div class="post-footer"> </div>
<script defer src="https://comentario.phundrak.com/comentario.js"></script> </article>
<comentario-comments></comentario-comments> <script defer src="https://commento.phundrak.com/js/commento.js"></script>
</div> <div id="commento"></div>
</article>
{{ end }} {{ end }}

View File

@ -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
View 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