~bkhl/elektrubadur.se

f093557f24a46b3b98b804436c4086d8e838e16f — Björn Lindström 2 months ago 42c429c
Publish HTML export of Emacs configuration file

* Copy this file from the dotfiles repository and let Hugo's Org support render
  it.
* Added ability to add TOC to the template, and a new 'articles' section, to
  facilitate this.
* Updated copyright year.
* Added exceptions for some external links to redirects.
M .build.yml => .build.yml +5 -0
@@ 5,10 5,15 @@ packages:
  - podman
  - hut
sources:
  - https://git.sr.ht/~bkhl/dotfiles
  - https://git.sr.ht/~bkhl/elektrubadur.se
tasks:
  - complete-unless-main: |
      git -C elektrubadur.se diff --quiet --exit-code origin/main || complete-build
  - add-content: >-
      install -v -m 0644
      dotfiles/.emacs.d/configuration.org
      elektrubadur.se/content/articles/emacs-configuration.org
  - publish: >-
      make -C elektrubadur.se publish
  - publish_redirect: >-

M config.toml => config.toml +1 -1
@@ 1,7 1,7 @@
title = "Elektrubadur"
baseURL = "https://elektrubadur.se"
canonifyURLs = true
copyright = "© 2010–2023 Björn Lindström"
copyright = "© 2010–2024 Björn Lindström"
defaultContentLanguage = "en"
disableHugoGeneratorInject = true
enableGitInfo = true

A content/articles/_index.md => content/articles/_index.md +5 -0
@@ 0,0 1,5 @@
+++
[_build]
render = "never"
list = "never"
+++

M content/converting_blog_to_org/index.org => content/converting_blog_to_org/index.org +1 -1
@@ 9,7 9,7 @@ Here I'll just share [[file:{{< file "convert.py" >}}][the script]] I made to do

# more

At the same time I've moved the sources from [[https://about.gitlab.com/][GitLab]] to [[https://sr.ht/][Sourcehut]].
At the same time I've moved the sources from [[https://gitlab.com/][GitLab]] to [[https://sr.ht/][Sourcehut]].

I won't delve deeper into the reasons for that, but I thought I'd post the Python script I used for the conversion in case it's useful for anyone else. It's not particularly pretty and has special casing for various things that were particular to my Zola theme, so if anyone else were to use it, they would in all likelyhood need to do some changes. I made a few manual fixes in the Org source after the conversion, of things that occurred to rarely to mke it worth automating.


M content/pages/resume/index.org => content/pages/resume/index.org +1 -1
@@ 60,7 60,7 @@ Since 2022 I also wear the Scrum Master hat in my team.

** Certified ScrumMaster® (CSM®) (2022 --- present)

- [[https://bcert.me/bc/html/show-badge.html?b=yjixfovh][CSM credential link.]]
- [[https://bcert.me/syjixfovh][CSM credential link]]

--------------


M layouts/_default/single.html => layouts/_default/single.html +5 -0
@@ 17,6 17,11 @@
    {{ end }}
  </header>
  {{ partial "featured_image" (dict "Page" . "context" "single") }}
  {{ if and (gt .WordCount 400 ) (.Params.toc) }}
  <aside>
    {{ .TableOfContents }}
  </aside>
  {{ end }}
  {{ .Page.Content | safeHTML }}
  {{ partial "gallery" . }}
</article>

M linkcheck_skipfile.txt => linkcheck_skipfile.txt +6 -0
@@ 2,3 2,9 @@

^https://www.\jamendo\.com/artist/4363/elektrubadur$
^https://creativecommons\.org/licenses/by-sa/4.0/$

# Expected redirects.

^https://bcert\.me/syjixfovh$
^https://gitlab\.com/$
^https://www\.youtube\.com/channel/UC0uTPqBCFIpZxlz_Lv1tk_g$