mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-07 12:19:36 +00:00
Update theme (again)
This commit is contained in:
parent
79c7eee49e
commit
0ff818022a
@ -9,6 +9,16 @@ and this project adheres to https://semver.org/spec/v2.0.0.html[Semantic Version
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
== [1.3.1] - 2019-09-03
|
||||||
|
=== Fixed
|
||||||
|
* The list template for the RSS and Atom feeds to be valid. (Just a very
|
||||||
|
amateur mistake...)
|
||||||
|
* JavaScript code for the Disqus comments. (Seems using JavaScript template strings
|
||||||
|
is a bit problematic with Hugo's templating system.)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
== [1.3.0] - 2019-09-03
|
== [1.3.0] - 2019-09-03
|
||||||
=== Added
|
=== Added
|
||||||
* Support for RSS, Atom, and JSON feeds.
|
* Support for RSS, Atom, and JSON feeds.
|
||||||
|
@ -3,10 +3,10 @@
|
|||||||
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>{{ with .Site.Params.Subtitle }}
|
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>{{ with .Site.Params.Subtitle }}
|
||||||
<subtitle type="html">{{ . | safeHTML }}</subtitle>{{ end }}
|
<subtitle type="html">{{ . | safeHTML }}</subtitle>{{ end }}
|
||||||
<link rel="alternate" type="text/html" href="{{ .Site.BaseURL }}"/>
|
<link rel="alternate" type="text/html" href="{{ .Site.BaseURL }}"/>
|
||||||
<link rel="self" type="application/atom+xml" href="{{ .Permalink }}"/>
|
<link rel="self" type="application/atom+xml" href="{{ with .OutputFormats.Get "ATOM" }}{{ .Permalink }}{{ end }}"/>
|
||||||
<rights>{{ with .Site.Copyright }}{{ . }}{{ else }}© {{ now.Year }} {{ $.Site.Author.name }}{{ end }}</rights>
|
<rights>{{ with .Site.Copyright }}{{ . }}{{ else }}© {{ now.Year }} {{ $.Site.Author.name }}{{ end }}</rights>
|
||||||
<generator>Hugo -- gohugo.io</generator>
|
<generator>Hugo -- gohugo.io</generator>
|
||||||
<updated>{{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }}</updated>
|
<updated>{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</updated>
|
||||||
<author>
|
<author>
|
||||||
<name>{{ .Site.Author.name }}</name>{{ with .Site.Author.email }}
|
<name>{{ .Site.Author.name }}</name>{{ with .Site.Author.email }}
|
||||||
<email>{{ . }}</email>{{ end }}
|
<email>{{ . }}</email>{{ end }}
|
||||||
@ -20,8 +20,8 @@
|
|||||||
<link rel="alternate" href="{{ .Permalink }}" hreflang="{{ .Site.Language.Lang }}" title="{{ .Title | safeHTML }}"/>{{ with .Params.author }}
|
<link rel="alternate" href="{{ .Permalink }}" hreflang="{{ .Site.Language.Lang }}" title="{{ .Title | safeHTML }}"/>{{ with .Params.author }}
|
||||||
<author><name>{{ . }}<name></author>{{ end }}{{ range .Params.tags }}
|
<author><name>{{ . }}<name></author>{{ end }}{{ range .Params.tags }}
|
||||||
<category term="{{ . }}"/>{{ end }}
|
<category term="{{ . }}"/>{{ end }}
|
||||||
<published>{{ .Date.Format "2006-01-02T15:04:05-0700" | safeHTML }}</published>
|
<published>{{ .Date.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</published>
|
||||||
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05-0700" | safeHTML }}</updated>{{ with .Params.license }}
|
<updated>{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" | safeHTML }}</updated>{{ with .Params.license }}
|
||||||
<rights type="html">{{ . | safeHTML }}<rights>{{ end }}
|
<rights type="html">{{ . | safeHTML }}<rights>{{ end }}
|
||||||
<content type="html">{{ .Content | html }}</content>
|
<content type="html">{{ .Content | html }}</content>
|
||||||
</entry>
|
</entry>
|
||||||
|
@ -7,8 +7,8 @@
|
|||||||
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
|
||||||
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
<language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
|
||||||
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{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 }}
|
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}
|
||||||
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
|
<copyright>{{ with .Site.Copyright }}{{ . }}{{ else }}© {{ now.Year }} {{ $.Site.Author.name }}{{ end }}</copyright>{{ if not .Date.IsZero }}
|
||||||
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||||
<docs>https://cyber.harvard.edu/rss/rss.html</docs>
|
<docs>https://cyber.harvard.edu/rss/rss.html</docs>
|
||||||
{{ with .OutputFormats.Get "RSS" }}
|
{{ with .OutputFormats.Get "RSS" }}
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
|
|
||||||
const dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
const dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
|
||||||
const disqus_shortname = '{{ $.Site.DisqusShortname }}';
|
const disqus_shortname = '{{ $.Site.DisqusShortname }}';
|
||||||
dsq.src = `https://${disqus_shortname}.disqus.com/embed.js`;
|
dsq.src = "https://" + disqus_shortname + ".disqus.com/embed.js";
|
||||||
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
{{- if .IsPage -}}
|
|
||||||
{
|
|
||||||
"name": "{{ .Title }}",
|
|
||||||
"description": "{{ with .Params.description }}{{ plainify . | replaceRE "\n" "$1" | replaceRE "\\\\" "\\\\" | htmlEscape }}{{ else }}{{ replaceRE "\\\\" "\\\\" .Summary | plainify | replaceRE "\n" "$1" | htmlEscape }}{{ end }}",
|
|
||||||
"url": "{{ .Permalink }}"
|
|
||||||
}
|
|
||||||
{{- end -}}
|
|
Loading…
Reference in New Issue
Block a user