Alternative content (RSS, (offline) JSON), social media partial

This commit is contained in:
Franz Klotsche
2025-11-19 11:16:40 +01:00
parent 1c9e04e308
commit dc0b5d8cfc
15 changed files with 501 additions and 17 deletions

View File

@@ -1,12 +1,7 @@
{{ define "main" }}
<h2>{{ .Title }}</h2>
{{ .Content }}
Bitte nicht hacken. Danke im Voraus.
<h3>Social Media</h3>
<ul>
{{ range .Site.Data.socialmedia.accounts }}
<li><a href="{{ .url }}">{{ .name }}</a></li>
{{ end }}
</ul>
{{- partial "social-media.html" . -}}
{{ .Content }}
{{ end }}

View File

@@ -4,8 +4,9 @@
{{ .Content }}
{{ $url := printf "%s/%s/repos" .Site.Params.gh_url .Site.Params.gh_user }}
{{ $repos := getJSON $url }}
{{ $repos_local := getJSON "data/repos.json" }}
<section class="oss">
{{ range $repos }}
{{ range $repos_local }}
<article>
<h3><a href="{{ .html_url }}">{{ .name }}</a></h3>
<p>{{ .description }}</p>