Compare commits

...

20 Commits

Author SHA1 Message Date
de0c9f5e01 feat: add mastodon link
All checks were successful
Website build and deploy / build (push) Successful in 50s
2026-04-01 11:51:11 +02:00
c9d37811aa chore: shorten summary for podcast
All checks were successful
Website build and deploy / build (push) Successful in 53s
2026-04-01 11:49:20 +02:00
83b7c5f3bd Merge pull request 'Fix broken links, add linkcheck to CI' (#16) from fix-links into main
All checks were successful
Website build and deploy / build (push) Successful in 51s
Reviewed-on: #16
2026-04-01 11:45:58 +02:00
9319d42aca fix: broken links, add check to CI
All checks were successful
Website build and deploy / build (pull_request) Successful in 42s
2026-04-01 11:44:44 +02:00
9bb7fcc300 feat: add link check, enable clever link rendering
All checks were successful
Website build and deploy / build (push) Successful in 1m22s
2026-04-01 11:12:12 +02:00
d3f55b81af feat: add FOSS Backstage talk and GNU/LInux.ch podcast 2026-04-01 11:11:39 +02:00
ad7435e9fb chore: fix link 2026-04-01 10:38:21 +02:00
bc94e7b75e css: slight style improvements
Some checks failed
Website build and deploy / build (push) Failing after 20s
2026-03-31 17:40:30 +02:00
c5d35b7bc2 feat: make sure version hash for CSS files remains stable if content is the same
All checks were successful
Website build and deploy / build (push) Successful in 59s
2026-03-31 17:27:49 +02:00
80b4c2af5c Merge pull request 'chore(deps): update https://github.com/jdx/mise-action action to v4' (#15) from renovate/https-github.com-jdx-mise-action-4.x into main
All checks were successful
Website build and deploy / build (push) Successful in 1m23s
Reviewed-on: #15
2026-03-31 17:11:15 +02:00
0b10385728 chore(deps): update https://github.com/jdx/mise-action action to v4
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
Website build and deploy / build (pull_request) Successful in 1m6s
2026-03-28 01:17:08 +00:00
907db96de0 add mastodon URLs to recents posts
All checks were successful
Website build and deploy / build (push) Successful in 2m10s
2026-03-02 18:04:51 +01:00
323fc7a02a feat: improve site title to show actual title first
All checks were successful
Website build and deploy / build (push) Successful in 2m25s
2026-03-02 17:19:04 +01:00
9932fa0967 Merge pull request 'Fix build in new Hugo versions, use mise to sync versions in CLI and CI' (#13) from hugo-0.157-rss into main
All checks were successful
Website build and deploy / build (push) Successful in 2m9s
Reviewed-on: #13
2026-03-02 17:09:41 +01:00
7c85d3d12e feat: add mise to configure Hugo version, and add to CI
All checks were successful
Website build and deploy / build (pull_request) Successful in 42s
2026-03-02 17:06:21 +01:00
66e70b3a81 chore: adapt to breaking changes in Hugo, update RSS template 2026-03-02 16:24:29 +01:00
a36e021a62 feat: add hard-coded mastodon toot url for comments to speed up
All checks were successful
Website build and deploy / build (push) Successful in 1m6s
2026-02-24 12:47:32 +01:00
089f274470 disable debug logging for comments
All checks were successful
Website build and deploy / build (push) Successful in 1m9s
2026-02-24 11:03:59 +01:00
e13612f9e8 fix: overhaul comments system
All checks were successful
Website build and deploy / build (push) Successful in 1m5s
2026-02-23 17:39:04 +01:00
b8be16d9f2 Merge pull request 'Convert links list to individual blog entries' (#11) from links-as-blog into main
All checks were successful
Website build and deploy / build (push) Successful in 1m5s
Reviewed-on: #11
2026-02-23 16:16:10 +01:00
24 changed files with 197 additions and 36 deletions

View File

@@ -33,6 +33,12 @@ jobs:
submodules: recursive # Get submdules submodules: recursive # Get submdules
fetch-depth: 1 # Fetch all history for .GitInfo and .Lastmod fetch-depth: 1 # Fetch all history for .GitInfo and .Lastmod
- name: Setup required tools (Hugo)
uses: https://github.com/jdx/mise-action@1648a7812b9aeae629881980618f079932869151 # v4.0.1
with:
cache: false # no cache on gitea
github_token: ${{ secrets.GH_TOKEN }}
- name: Create configuration for Matomo - name: Create configuration for Matomo
run: | run: |
cp themes/hugo-sustain/static/config.php.sample static/config.php cp themes/hugo-sustain/static/config.php.sample static/config.php
@@ -40,17 +46,19 @@ jobs:
sed -i "s|__PROXY_URL__|${{ secrets.MATOMO_PROXY_URL }}|" static/config.php sed -i "s|__PROXY_URL__|${{ secrets.MATOMO_PROXY_URL }}|" static/config.php
sed -i "s|__TOKEN_AUTH__|${{ secrets.MATOMO_TOKEN_AUTH }}|" static/config.php sed -i "s|__TOKEN_AUTH__|${{ secrets.MATOMO_TOKEN_AUTH }}|" static/config.php
- name: Setup Hugo - name: Check for broken links
uses: https://github.com/peaceiris/actions-hugo@v3.0.0 run: |
with: if [ "${{ gitea.ref }}" = "refs/heads/main" ]; then
hugo-version: "0.155.3" mise linkcheck --offline || true
extended: true else
mise linkcheck --offline
fi
- name: Build website with Hugo - name: Build website with Hugo
run: hugo run: mise run build
- name: Copy website to host - name: Copy website to host
uses: https://github.com/appleboy/scp-action@v1.0.0 uses: https://github.com/appleboy/scp-action@ff85246acaad7bdce478db94a363cd2bf7c90345 # v1.0.0
with: with:
host: mehl.mx host: mehl.mx
username: maxmehl username: maxmehl

View File

@@ -12,12 +12,14 @@ summaryLength = 50
leftDoubleQuote = '“' leftDoubleQuote = '“'
rightDoubleQuote = '”' rightDoubleQuote = '”'
[markup.goldmark.renderHooks.link]
useEmbedded = "fallback"
[permalinks] [permalinks]
blog = "/blog/:year/:slug" blog = "/blog/:year/:slug"
[params] [params]
avatar = "profile.png" avatar = "profile.png"
author = "Max Mehl"
description = "Open Source expert with background in tech and policy. Focused on strategy, governance, and software supply chains. Building sustainable digital environments." description = "Open Source expert with background in tech and policy. Focused on strategy, governance, and software supply chains. Building sustainable digital environments."
keywords = "open source, free software, Deutsche Bahn, DB Systel, FSFE, management, campaign, communication, strategy, konstanz, berlin, munster, IT service, politics, administration, scouts, founder" keywords = "open source, free software, Deutsche Bahn, DB Systel, FSFE, management, campaign, communication, strategy, konstanz, berlin, munster, IT service, politics, administration, scouts, founder"
@@ -25,6 +27,9 @@ summaryLength = 50
custom_css = ["comments/mastodon-comments.css"] custom_css = ["comments/mastodon-comments.css"]
custom_js = ["comments/getcomments.js"] custom_js = ["comments/getcomments.js"]
[params.author]
name = "Max Mehl"
[params.social] [params.social]
Github = "mxmehl" Github = "mxmehl"
Git = "https://src.mehl.mx/mxmehl" Git = "https://src.mehl.mx/mxmehl"

View File

@@ -53,4 +53,4 @@ Any further questions? Do not hesitate [to ask me][3]!
[1]: /2015/naechste-station-tansania [1]: /2015/naechste-station-tansania
[2]: /uploads/tanzania-map.png [2]: /uploads/tanzania-map.png
[3]: //max.mehl.mx/contact [3]: /contact

View File

@@ -10,7 +10,7 @@ tags:
headerimage: headerimage:
src: /blog/system-chaos.jpg src: /blog/system-chaos.jpg
text: Fortunately not how the FSFE's infrastructure looks like text: Fortunately not how the FSFE's infrastructure looks like
mastodon_toot_url: "https://mastodon.social/@mxmehl/103010490628830773"
--- ---
On 10 and 11 October, the FSFE System Hackers met in person to tackle On 10 and 11 October, the FSFE System Hackers met in person to tackle

View File

@@ -11,7 +11,7 @@ tags:
headerimage: headerimage:
src: /blog/hidden-street.jpg src: /blog/hidden-street.jpg
text: The unknown Free Software contributors. Photo by Kaique Rocha text: The unknown Free Software contributors. Photo by Kaique Rocha
mastodon_toot_url: "https://mastodon.social/@mxmehl/103656218613382198"
--- ---
A few days ago I've sent an announcement email for today's [I Love Free Software Day](https://ilovefs.org) to a large bunch of people. Most of the remarkably many replies have been positive and a pure joy to read, but some were a bit sceptical and critical. These came from Free Software contributors who are maintaining and helping projects that they think nobody knows and sees not because these software projects are unused, but because they are small, a building block for other, more popular applications. A few days ago I've sent an announcement email for today's [I Love Free Software Day](https://ilovefs.org) to a large bunch of people. Most of the remarkably many replies have been positive and a pure joy to read, but some were a bit sceptical and critical. These came from Free Software contributors who are maintaining and helping projects that they think nobody knows and sees not because these software projects are unused, but because they are small, a building block for other, more popular applications.

View File

@@ -10,7 +10,7 @@ tags:
headerimage: headerimage:
src: /blog/syshackers-group-hacking.jpg src: /blog/syshackers-group-hacking.jpg
text: Hackers in their natural working environment. For the picture we took off the black ski masks and gloves. text: Hackers in their natural working environment. For the picture we took off the black ski masks and gloves.
mastodon_toot_url: "https://mastodon.social/@mxmehl/103916900645046939"
--- ---
For the 4th time, and less than 5 months after the last meeting, the For the 4th time, and less than 5 months after the last meeting, the

View File

@@ -10,6 +10,7 @@ tags:
headerimage: headerimage:
src: /blog/git-sed.png src: /blog/git-sed.png
text: Replacing content in thousands of files? No problem! text: Replacing content in thousands of files? No problem!
mastodon_toot_url: "https://mastodon.social/@mxmehl/104590750280074999"
--- ---
In the recent weeks and months, the [FSFE Web Team](https://fsfe.org/contribute/web/) has been doing some heavy work on the [FSFE website](https://fsfe.org). We moved and replaced thousands of files and their respective links to improve the structure of a historically grown website (19+ years, 23243 files, almost 39k commits). But how to do that most efficiently in a version controlled system like Git? In the recent weeks and months, the [FSFE Web Team](https://fsfe.org/contribute/web/) has been doing some heavy work on the [FSFE website](https://fsfe.org). We moved and replaced thousands of files and their respective links to improve the structure of a historically grown website (19+ years, 23243 files, almost 39k commits). But how to do that most efficiently in a version controlled system like Git?

View File

@@ -11,6 +11,7 @@ tags:
headerimage: headerimage:
src: /blog/docker.jpg src: /blog/docker.jpg
text: Shipping a load of containers requires a reliable infrastructure text: Shipping a load of containers requires a reliable infrastructure
mastodon_toot_url: "https://mastodon.social/@mxmehl/108193478971435955"
--- ---
So you have a number of Docker containers running web services which you would So you have a number of Docker containers running web services which you would

View File

@@ -10,6 +10,7 @@ tags:
headerimage: headerimage:
src: /blog/library.jpg src: /blog/library.jpg
text: Wouldn't it be a shame if your library were to be destroyed? text: Wouldn't it be a shame if your library were to be destroyed?
mastodon_toot_url: "https://mastodon.social/@mxmehl/111109533835169070"
--- ---
I have been using [Seafile](https://www.seafile.com/) for years to host and I have been using [Seafile](https://www.seafile.com/) for years to host and

View File

@@ -19,6 +19,7 @@ slides: https://fosdem.org/2026/events/attachments/ZSWH3N-deutsche-bahn-supply-c
event: event:
name: FOSDEM 2026 name: FOSDEM 2026
href: https://fosdem.org/2026/schedule/event/ZSWH3N-deutsche-bahn-supply-chain-cra-strategy/ href: https://fosdem.org/2026/schedule/event/ZSWH3N-deutsche-bahn-supply-chain-cra-strategy/
mastodon_toot_url: "https://mastodon.social/@mxmehl/116160561981890042"
--- ---
At FOSDEM 2026, I presented Deutsche Bahn's software supply chain strategy in the context of the EU Cyber Resilience Act (CRA), but made clear from the start that CRA was the context, not the trigger. We didn't adopt SBOMs because of regulation regulation validated the direction we were already taking based on operational needs. The presentation positioned our work at the intersection of CRA compliance requirements, IT operation best practices, and the practical realities of running IT infrastructure for an organization with 220,000+ employees, 7,000+ IT applications, and 100,000+ Open Source components. At FOSDEM 2026, I presented Deutsche Bahn's software supply chain strategy in the context of the EU Cyber Resilience Act (CRA), but made clear from the start that CRA was the context, not the trigger. We didn't adopt SBOMs because of regulation regulation validated the direction we were already taking based on operational needs. The presentation positioned our work at the intersection of CRA compliance requirements, IT operation best practices, and the practical realities of running IT infrastructure for an organization with 220,000+ employees, 7,000+ IT applications, and 100,000+ Open Source components.

View File

@@ -19,6 +19,7 @@ slides: https://fosdem.org/2026/events/attachments/7EYTRJ-deutsche-bahn-large-sc
event: event:
name: FOSDEM 2026 name: FOSDEM 2026
href: https://fosdem.org/2026/schedule/event/7EYTRJ-deutsche-bahn-large-scale-sbom-approach/ href: https://fosdem.org/2026/schedule/event/7EYTRJ-deutsche-bahn-large-scale-sbom-approach/
mastodon_toot_url: "https://mastodon.social/@mxmehl/116160570821178215"
--- ---
At FOSDEM 2026, I presented Deutsche Bahn's journey from operational need to concrete implementation of large-scale SBOM collection and use. The scale is staggering: approximately 500,000 SBOMs across our software supply chain expected, covering 7,000+ IT applications, 100,000+ Open Source components, and diverse sourcing streams from software we build ourselves to what we buy and operate. The talk focused on how we moved from understanding that "we need to know, in real-time, which exact component is used where and how" to actually making this happen in an organization with 220,000+ employees and hundreds of subsidiaries. At FOSDEM 2026, I presented Deutsche Bahn's journey from operational need to concrete implementation of large-scale SBOM collection and use. The scale is staggering: approximately 500,000 SBOMs across our software supply chain expected, covering 7,000+ IT applications, 100,000+ Open Source components, and diverse sourcing streams from software we build ourselves to what we buy and operate. The talk focused on how we moved from understanding that "we need to know, in real-time, which exact component is used where and how" to actually making this happen in an organization with 220,000+ employees and hundreds of subsidiaries.

View File

@@ -0,0 +1,30 @@
---
title: "Getting Real with the Supply Chain: From SBOM Data to Action"
date: 2026-03-17
categories:
# Language
- english
# - deutsch
- presentation
# - podcast
# - article
tags:
- OSPO
- SupplyChain
- DeutscheBahn
headerimage:
src: max-cornelius-stage.jpg
alt: Cornelius Schumacher and Max Mehl giving the presentation at FOSS Backstage 2026. It's a total view of the auditorium from the back, with the two speakers on stage and the final slide in the background.
# summary: Visible on the listing page, but not on the article page
video: https://www.youtube.com/watch?v=M8wYRRCWaQU
slides: https://up.mehl.mx/slides/2026-03-17-foss-backstage-supply-chain.pdf
event:
name: FOSS Backstage 2026
href: https://26.foss-backstage.de/session/getting-real-with-the-supply-chain-from-sbom-data-to-action/
---
At DB, we handle 100,000+ SBOMs per day. For our small, virtual Open Source Program Office (OSPO), the challenge is not to get lost in the data, but to cut through the jungle and identify real risks. Together with my OSPO colleague Cornelius Schumacher, I presented this challenge at the FOSS Backstage conference in Berlin. We explained how we gather data, generate insights, and take action.
This talk was partly inspired by my earlier FOSDEM talks ([here](/blog/2026-01-fosdem-supply-chain-strategy) and [there](/blog/2026-02-fosdem-sbom-collection)), where I focused on DB's SBOM program and its tools. In this presentation, however, we highlighted what can be learned from it for professional Open Source management.
One topic stood out throughout the presentation: the need for an OSPO to balance between people, value, and risk. None of these should dominate, even though governance functions often tend to focus on risk. Instead, Cornelius and I advocated for a risk-based approach to managing Open Source.

Binary file not shown.

After

Width:  |  Height:  |  Size: 221 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 797 KiB

View File

@@ -0,0 +1,28 @@
---
title: "Software-Lieferketten bei der Deutschen Bahn"
date: 2026-03-25
categories:
- deutsch
- podcast
tags:
- Community
- DeutscheBahn
- SupplyChain
summary: Ich wurde mal wieder von Ralf Hersel zum “Captain its Wednesday” Podcast von GNU/Linux.ch eingeladen, um über Software-Lieferketten bei der Deutschen Bahn zu sprechen. Anlass waren meine jüngsten Vorträge auf der FOSS Backstage und der FOSDEM, in denen ich über die Herausforderungen und Chancen von Software-Lieferketten bei der DB gesprochen habe.
headerimage:
src: ciw.jpg
alt: The famous "Captain it's Wednesday" comic
processes:
- fill 1000x440 center webp
audio: https://gnulinux.ch/podcast/CIW175.mp3
event:
name: Captain it's Wednesday Podcast
href: https://gnulinux.ch/ciw175-podcast
mastodon_toot_url: https://mastodon.social/@mxmehl/116318946107759692
---
Ich wurde mal wieder von Ralf Hersel zum "Captain it's Wednesday" Podcast von GNU/Linux.ch eingeladen, um über Software-Lieferketten bei der Deutschen Bahn zu sprechen. Anlass waren meine jüngsten Vorträge auf der [FOSS Backstage](/blog/2026-03-foss-backstage-getting-real-supply-chain) und der [FOSDEM](/blog/2026-01-fosdem-supply-chain-strategy), in denen ich über die Herausforderungen und Chancen von Software-Lieferketten bei der DB gesprochen habe.
Mit Ralf habe ich mal ganz vorne angefangen: was ist eine Software-Lieferkette überhaupt, warum ist sie wichtig, und wie sieht sie bei einem großen Unternehmen wie der Deutschen Bahn aus, und was haben diese SBOMs damit zu tun? Wir haben über die enormen Mengen an Software-Komponenten gesprochen, die täglich bei der DB verarbeitet werden, und wie wir versuchen, den Überblick zu behalten und Risiken zu managen. Dabei ging es auch um die Rolle von Freier und Open Source in der Lieferkette und wie wir dabei mit der Community zusammenarbeiten.
Nach exakt 37 Minuten war das Gespräch auch schon wieder vorbei und natürlich konnten wir nicht in jedes Detail eintauchen. Aber ich hoffe, es war dennoch ein interessanter Einblick für die Zuhörenden.

33
mise.toml Normal file
View File

@@ -0,0 +1,33 @@
[tools]
hugo-extended = "0.159.1"
lychee = "latest"
[vars]
build_dir = "public"
[tasks.cleanup]
description = "Clean up the build destination directory"
run = "rm -r {{vars.build_dir}} || true"
[tasks.build]
depends = ["cleanup"]
description = "Build the static site using Hugo"
run = "hugo -d {{vars.build_dir}}"
[tasks.preview]
depends = ["cleanup"]
description = "Preview the site locally using Hugo's built-in server"
run = "hugo server"
[tasks.linkcheck]
depends = ["build"]
description = "Check for broken links using lychee"
run = '''
lychee \
--max-concurrency 5 --cache --max-cache-age 1h \
--index-files 'index.html' \
--root-dir {{vars.build_dir}}/ \
-u 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) Apple WebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36' \
--exclude 'glyphicons-halflings-regular\.(eot|woff|woff2|ttf|svg)' \
{{vars.build_dir}}/
'''

View File

@@ -9,7 +9,7 @@ $config = [
// the URL of your blog. All toots are searched for this string // the URL of your blog. All toots are searched for this string
// please use https?:// as schema // please use https?:// as schema
'search-url' => 'https?://mehl.mx', 'search-url' => 'https?://mehl.mx',
'cache_toots' => 300, // seconds to cache toots 'cache_toots' => 1800, // seconds to cache toots
'cache_comments' => 300, // seconds to cache comments (per ID) 'cache_comments' => 300, // seconds to cache comments (per ID)
'debug' => false // writes some debug messages in error_log 'debug' => false // writes some debug messages in error_log
]; ];

View File

@@ -363,6 +363,13 @@ div.contact p {
margin-top: 0; margin-top: 0;
} }
} }
// First and last card in the list have different border radius
.row:first-child .card {
border-radius: 1rem 1rem 0 1rem;
}
.row:last-child .card {
border-radius: 0 1rem 1rem 1rem;
}
} }
/* Helpers */ /* Helpers */

View File

@@ -65,7 +65,9 @@
</div> </div>
<div class="col-xs-9 col-md-10"> <div class="col-xs-9 col-md-10">
{{ if $selection }} {{ if $selection }}
<span class="article-rss"><a class="label label-rss" href="/{{ .Data.Plural }}/{{lower .Title}}/index.xml" title="RSS Feed"><i class="fa fa-rss" aria-hidden="true"></i> Subscribe to »{{.Title}}«</a></span> {{- with .OutputFormats.Get "RSS" -}}
<span class="article-rss"><a class="label label-rss" href="{{ .Permalink }}" title="RSS Feed"><i class="fa fa-rss" aria-hidden="true"></i> Subscribe to »{{ $.Title }}«</a></span>
{{- end -}}
{{ else }} {{ else }}
<span class="article-rss"><a class="label label-rss" href="/blog/index.xml" title="RSS Feed"><i class="fa fa-rss" aria-hidden="true"></i> Subscribe to all posts</a></span> <span class="article-rss"><a class="label label-rss" href="/blog/index.xml" title="RSS Feed"><i class="fa fa-rss" aria-hidden="true"></i> Subscribe to all posts</a></span>
{{ end }} {{ end }}

View File

@@ -1,28 +1,70 @@
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }} {{- $authorEmail := "" }}
{{- with site.Params.author }}
{{- if reflect.IsMap . }}
{{- with .email }}
{{- $authorEmail = . }}
{{- end }}
{{- end }}
{{- end }}
{{- $authorName := "" }}
{{- with site.Params.author }}
{{- if reflect.IsMap . }}
{{- with .name }}
{{- $authorName = . }}
{{- end }}
{{- else }}
{{- $authorName = . }}
{{- end }}
{{- end }}
{{- $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" xmlns:content="http://purl.org/rss/1.0/modules/content/"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel> <channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ .Site.Title }}{{ with .Title }} ({{.|humanize}}){{ end }}{{ end }}</title> <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ .Site.Title }}{{ with .Title }} ({{.|humanize}}){{ end }}{{ end }}</title>
<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</generator>
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }} <language>{{ site.Language.LanguageCode }}</language>
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }} {{- with $authorEmail }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }} <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }} {{- end }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} {{- with $authorEmail }}
{{ with .OutputFormats.Get "RSS" }} <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>
{{- end }}
{{- with .Site.Copyright }}
<copyright>{{ . }}</copyright>
{{- end }}
{{- if not .Date.IsZero }}
<lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.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 }} {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }} {{- end }}
{{ range .Pages }} {{- range $pages }}
<item> <item>
<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 $authorEmail }}
<author>{{.}}{{ with $authorName }} ({{.}}){{end}}</author>
{{- end }}
<guid>{{ .Permalink }}</guid> <guid>{{ .Permalink }}</guid>
<description>{{ .Summary | html }}</description> <description>{{ .Summary | transform.XMLEscape | safeHTML }}</description>
<content:encoded>{{ .Content | html }}</content:encoded> <content:encoded>{{ .Content | transform.XMLEscape | safeHTML }}</content:encoded>
</item> </item>
{{ end }} {{- end }}
</channel> </channel>
</rss> </rss>

View File

@@ -75,10 +75,10 @@
{{ end }} {{ end }}
</div> </div>
{{ end }} {{ end }}
</div> <!-- comments -->
</div>
<hr>
{{ partial "comments" . }} {{ partial "comments" . }}
</div>
</div>
{{ partial "social" . }} {{ partial "social" . }}
</div> </div>
</div> </div>

View File

@@ -9,13 +9,13 @@
{{- if .Params.heading -}} {{- if .Params.heading -}}
{{- $title = .Params.heading -}} {{- $title = .Params.heading -}}
{{- else -}} {{- else -}}
{{- $title = print .Site.Title " | " .Title -}} {{- $title = printf "%s | %s" .Title .Site.Title -}}
{{- end -}} {{- end -}}
{{- end -}} {{- end -}}
<meta charset="utf-8" /> <meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" />
<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 }}" /> <meta name="author" content="{{ .Site.Params.Author.name }}" />
{{ with .Site.Params.description }}<meta name="description" content="{{ . }}" />{{ end }} {{ with .Site.Params.description }}<meta name="description" content="{{ . }}" />{{ end }}
{{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}" />{{ end }} {{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}" />{{ end }}
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/favicon.ico" /> <link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}img/favicon.ico" />

View File

@@ -13,9 +13,10 @@
<!-- Theme stylesheet, combination of all in assets/scss --> <!-- Theme stylesheet, combination of all in assets/scss -->
{{- $style := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }} {{- $style := resources.Get "scss/main.scss" | resources.ExecuteAsTemplate "scss/main.scss" . | toCSS (dict "targetPath" "css/main.css" "enableSourceMap" false) }}
<link rel="stylesheet" href="{{ ($style).RelPermalink }}?v={{ md5 time.Now.Unix }}"> <link rel="stylesheet" href="{{ ($style).RelPermalink }}?v={{ md5 $style.Content }}">
<!-- Custom CSS --> <!-- Custom CSS -->
{{- range .Site.Params.custom_css }} {{- range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ relURL . }}?v={{ md5 time.Now.Unix }}" /> {{- $md5 := md5 (readFile (printf "static/%s" .)) }}
<link rel="stylesheet" href="{{ relURL . }}?v={{ $md5 }}" />
{{- end }} {{- end }}