Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Valérianne
bench.squeaky.tech
Commits
801aec15
Verified
Commit
801aec15
authored
Apr 24, 2022
by
Valérianne
💬
Browse files
Add changelog
parent
ee7f3b29
Pipeline
#238
passed with stage
in 2 minutes and 28 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
content/_index.md
View file @
801aec15
...
...
@@ -3,6 +3,7 @@ outputs:
-
html
-
json
-
atom
-
rss
---
This is the place where I document things around the hardware I get, or that passes by me.
...
...
content/changelog.md
0 → 100644
View file @
801aec15
---
layout
:
changelog
outputs
:
-
rss
-
html
---
themes/sigpipe/layouts/_default/changelog.html
0 → 100644
View file @
801aec15
{{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
themes/sigpipe/layouts/_default/changelog.xml
0 → 100644
View file @
801aec15
{{- $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>
themes/sigpipe/layouts/partials/head.html
View file @
801aec15
...
...
@@ -16,7 +16,10 @@
<link
rel=
"stylesheet"
href=
"{{ $syntax.Permalink }}"
integrity=
"{{ $syntax.Data.Integrity }}"
>
<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" . }}
<script
src=
"{{ "
js
/
jquery-3.6.0.min.js
"
|
absURL
}}"
></script>
...
...
themes/sigpipe/layouts/partials/sidebar.html
View file @
801aec15
...
...
@@ -14,5 +14,8 @@
<h4>
Other
</h4>
<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>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment