Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ jobs:
runs-on: ubuntu-latest

container:
image: golang:1.24
image: golang:1.26

steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install minify
run: go install github.com/tdewolff/minify/v2/cmd/minify@latest
- name: Install hugo
run: go install github.com/gohugoio/hugo@v0.111.3
- name: Run make
run: make
- name: Checkout code
uses: actions/checkout@v2
- name: Install minify
run: go install github.com/tdewolff/minify/v2/cmd/minify@latest
- name: Install hugo
run: go install github.com/gohugoio/hugo@v0.156.0
- name: Run make
run: make
4 changes: 1 addition & 3 deletions themes/hugo-theme-flat/layouts/_default/rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
<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 }}
<language>{{.}}</language>{{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" -}}
Expand Down
23 changes: 0 additions & 23 deletions themes/hugo-theme-flat/layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1">
<meta name="githash" content="{{ .Page.GitInfo.Hash }}">
<meta name="gitdate" content="{{ .Page.GitInfo.CommitDate }}">
<meta name="gitmsg" content="{{ .Page.GitInfo.Subject }}">
<meta name="buildtime" content="{{ time.Now }}">
<link rel="icon" type="image/png" href="{{ "img/fav.png" | relURL }}">
{{ $title := .Site.Title -}}
Expand Down Expand Up @@ -57,26 +54,6 @@
onload="renderMathInElement(document.body);"></script>
{{ end }}

{{ with and .Site.Params.remark42 .Params.show_comments }}
{{ $remark42 := $.Site.Params.remark42 }}
<script>
var remark_config = {
host: '{{ $remark42.host }}',
site_id: '{{ $remark42.site_id }}',
components: ['embed', 'last-comments'],
max_shown_comments: {{ $remark42.max_shown_comments }},
theme: '{{ $remark42.theme }}',
page_title: '{{ $remark42.Title }}',
locale: '{{ $remark42.locale }}',
show_email_subscription: {{ $remark42.show_email_subscription }},
simple_view: {{ $remark42.simple_view }}
};

!function(e,n){for(var o=0;o<e.length;o++){var r=n.createElement("script"),c=".js",d=n.head||n.body;"noModule"in r?(r.type="module",c=".mjs"):r.async=!0,r.defer=!0,r.src=remark_config.host+"/web/"+e[o]+c,d.appendChild(r)}}(remark_config.components||["embed"],document);
</script>
{{ end }}


<style>
body{
background-color: #202124;
Expand Down