Compare commits
3 Commits
20662dc99b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
b60d8de739
|
|||
|
d69b0aa237
|
|||
|
6df64315d5
|
33
.github/workflows/publish.yaml
vendored
Normal file
33
.github/workflows/publish.yaml
vendored
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
name: publish
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: "Clone submodules"
|
||||||
|
run: |
|
||||||
|
git submodule update --init --recursive
|
||||||
|
mkdir -p blog
|
||||||
|
- uses: peaceiris/actions-hugo@v3
|
||||||
|
with:
|
||||||
|
hugo-version: 'latest'
|
||||||
|
extended: true
|
||||||
|
- uses: purcell/setup-emacs@master
|
||||||
|
with:
|
||||||
|
version: 29.1
|
||||||
|
- name: "Export org to md"
|
||||||
|
run: emacs -Q --script .export.el
|
||||||
|
- name: "Hugo export"
|
||||||
|
run: hugo -d blog
|
||||||
|
- name: "Deploy to Cloudflare Pages"
|
||||||
|
uses: cloudflare/wrangler-action@v3
|
||||||
|
with:
|
||||||
|
apiToken: ${{ secrets.CLOUDFLARE_API_SECRET }}
|
||||||
|
accountId: ${{ secrets.ACCOUNT_ID }}
|
||||||
|
command: pages deploy blog/ --project-name=blog-phundrak-com
|
||||||
|
gitHubToken: ${{ secrets.TOKEN }}
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@
|
|||||||
/content/*.md
|
/content/*.md
|
||||||
/.hugo_build.lock
|
/.hugo_build.lock
|
||||||
/build/
|
/build/
|
||||||
|
/blog/
|
||||||
|
|||||||
12
config.toml
12
config.toml
@@ -3,21 +3,23 @@ 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
|
|
||||||
enableInlineShortcodes = true
|
enableInlineShortcodes = true
|
||||||
staticDir = ["static"]
|
staticDir = ["static"]
|
||||||
|
|
||||||
summarylength = 10
|
summarylength = 10
|
||||||
enableEmoji = true
|
enableEmoji = true
|
||||||
|
|
||||||
[author]
|
[pagination]
|
||||||
name = "Lucien Cartier-Tilet"
|
pagerSize = 10
|
||||||
|
|
||||||
[params]
|
[params]
|
||||||
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 = "leon.png"
|
||||||
|
|
||||||
|
[params.author]
|
||||||
|
name = "Lucien Cartier-Tilet"
|
||||||
|
email = "lucien@phundrak.com"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "github"
|
name = "github"
|
||||||
url = "https://github.com/phundrak"
|
url = "https://github.com/phundrak"
|
||||||
@@ -36,7 +38,7 @@ enableEmoji = true
|
|||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "twitter"
|
name = "twitter"
|
||||||
url = "https://twitter.com/phundrak"
|
url = "https://mastodon.phundrak.com/phundrak"
|
||||||
|
|
||||||
[[params.social]]
|
[[params.social]]
|
||||||
name = "youtube"
|
name = "youtube"
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
<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" />
|
<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" . | css.Sass | resources.Minify | resources.Fingerprint -}}
|
||||||
<link rel="stylesheet" href="{{ $style.Permalink }}" />
|
<link rel="stylesheet" href="{{ $style.Permalink }}" />
|
||||||
|
|
||||||
{{ template "_internal/google_analytics.html" . }}
|
{{ template "_internal/google_analytics.html" . }}
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
</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>
|
<script defer src="https://comments.phundrak.com/comentario.js"></script>
|
||||||
<comentario-comments></comentario-comments>
|
<comentario-comments></comentario-comments>
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
@@ -17,9 +17,9 @@
|
|||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
|
<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 }}
|
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
<language>{{.}}</language>{{end}}{{ with .Site.Params.Author.email }}
|
||||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
|
<managingEditor>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Params.Author.email }}
|
||||||
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
<webMaster>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
|
||||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
||||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||||
{{- with .OutputFormats.Get "RSS" -}}
|
{{- with .OutputFormats.Get "RSS" -}}
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
<title>{{ .Title }}</title>
|
<title>{{ .Title }}</title>
|
||||||
<link>{{ .Permalink }}</link>
|
<link>{{ .Permalink }}</link>
|
||||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
<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}}
|
{{ with .Site.Params.Author.email }}<author>{{.}}{{ with $.Site.Params.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||||
<guid>{{ .Permalink }}</guid>
|
<guid>{{ .Permalink }}</guid>
|
||||||
<description>{{ .Content | html }}</description>
|
<description>{{ .Content | html }}</description>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user