Verified Commit 801aec15 authored by Valérianne's avatar Valérianne 💬
Browse files

Add changelog

parent ee7f3b29
Pipeline #238 passed with stage
in 2 minutes and 28 seconds
...@@ -3,6 +3,7 @@ outputs: ...@@ -3,6 +3,7 @@ outputs:
- html - html
- json - json
- atom - atom
- rss
--- ---
This is the place where I document things around the hardware I get, or that passes by me. This is the place where I document things around the hardware I get, or that passes by me.
......
---
layout: changelog
outputs:
- rss
- html
---
{{define "main"}}
{{- $pages := .Site.RegularPages.ByLastmod -}}
{{- $pages := ($pages | last 30).Reverse }}
<h3>Recently updated pages</h3>
<!--list-->
<table class="table table-sm table-striped">
<thead>
<tr>
<th scope="col">Edited on</th>
<th scope="col">Category</th>
<th scope="col">Title</th>
</tr>
</thead>
<tbody>
{{range $pages}}
<tr>
<td>{{.Lastmod.Format "2006-01-02"}}</td>
<td>{{ (site.GetPage .Section).Title }}</td>
<td><a href="{{.RelPermalink}}">{{.Title}}</a></td>
</tr>
{{end}}
</tbody>
</table>
{{end}}
\ No newline at end of file
{{- $pages := .Site.RegularPages.ByLastmod -}}
{{- $pages := ($pages | last 30).Reverse }}
{{- 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>{{ .Summary | html }}</description>
</item>
{{ end }}
</channel>
</rss>
...@@ -16,7 +16,10 @@ ...@@ -16,7 +16,10 @@
<link rel="stylesheet" href="{{ $syntax.Permalink }}" integrity="{{ $syntax.Data.Integrity }}"> <link rel="stylesheet" href="{{ $syntax.Permalink }}" integrity="{{ $syntax.Data.Integrity }}">
<link rel="alternate" type="application/atom+xml" href="{{ "atom.xml" | absURL }}" title="ATOM Feed"> <link rel="alternate" type="application/atom+xml" href="{{ "atom.xml" | absURL }}" title="ATOM Feed">
{{ with .OutputFormats.Get "rss" -}}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
{{ end -}}
{{ partial "social_metadata.html" . }} {{ partial "social_metadata.html" . }}
<script src="{{ "js/jquery-3.6.0.min.js" | absURL }}"></script> <script src="{{ "js/jquery-3.6.0.min.js" | absURL }}"></script>
......
...@@ -14,5 +14,8 @@ ...@@ -14,5 +14,8 @@
<h4>Other</h4> <h4>Other</h4>
<ul> <ul>
<li><a class="text-decoration-none" href="{{ "atom.xml" | absURL }}">ATOM Feed</a></li> <li><a class="text-decoration-none" href="{{ "atom.xml" | absURL }}">ATOM Feed</a> (new articles)</li>
<li><a class="text-decoration-none" href="{{ "index.xml" | absURL }}">RSS Feed</a> (new articles)</li>
<li><a class="text-decoration-none" href="{{ "/changelog/" | absURL }}">Recent updates</a></li>
<li><a class="text-decoration-none" href="{{ "/changelog/index.xml" | absURL }}">Recent updates</a> (RSS Version)</li>
</ul> </ul>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment