diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
new file mode 100644
index 0000000..ec49483
--- /dev/null
+++ b/layouts/_default/rss.xml
@@ -0,0 +1,45 @@
+{{- $baseurl := .Site.BaseURL -}}
+{{- $pctx := . -}}
+{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
+{{- $pages := slice -}}
+{{- if or $.IsHome $.IsSection -}}
+{{- $pages = $pctx.RegularPages -}}
+{{- else -}}
+{{- $pages = $pctx.Pages -}}
+{{- end -}}
+{{- $limit := .Site.Config.Services.RSS.Limit -}}
+{{- if ge $limit 1 -}}
+{{- $pages = $pages | first $limit -}}
+{{- end -}}
+{{- printf "" | safeHTML }}
+
+
+ {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}
+ {{ .Permalink }}
+ Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}
+ Hugo -- gohugo.io{{ with .Site.LanguageCode }}
+ {{.}}{{end}}{{ with .Site.Author.email }}
+ {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Author.email }}
+ {{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}{{ with .Site.Copyright }}
+ {{.}}{{end}}{{ if not .Date.IsZero }}
+ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }}
+ {{ with .OutputFormats.Get "RSS" }}
+ {{ printf "" .Permalink .MediaType | safeHTML }}
+ {{ end }}
+ {{ range $pages }}
+ -
+ {{ .Title }}
+ {{ .Permalink }}
+ {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}
+ {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}}
+ {{ .Permalink }}
+
+ {{ `
+
+ {{ .Summary | html }}
+ ]]>
+
+
+ {{ end }}
+
+
\ No newline at end of file
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 9a7fef4..95177db 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -14,10 +14,14 @@
|
{{ .Lastmod.Format (.Site.Params.dateFormat | default "2 January 2006") }}
- |
+
+
+ {{ if (not .Params.disableComments) }}
+ |
+ {{ end }}
diff --git a/static/css/custom.css b/static/css/custom.css
index f10827d..74ff153 100644
--- a/static/css/custom.css
+++ b/static/css/custom.css
@@ -49,10 +49,13 @@
color: var(--accent) !important;
}
-.commento-root .commento-card .commento-body p,
-.commento-root textarea,
.commento-name {
- font-size: 14pt !important;
+ font-size: 14pt !important;
+}
+
+.commento-root .commento-card .commento-body p,
+.commento-root textarea {
+ font-size: 12pt !important;
}
.commento-root *,
@@ -92,6 +95,13 @@ body {
font-size: 14pt;
}
+#csslink {
+ position: absolute;
+ right: 0;
+ z-index: 99;
+ visibility: hidden;
+}
+
footer {
position: absolute;
bottom: 0;
@@ -102,7 +112,7 @@ footer {
}
@media only screen and (min-width: 1200px) {
- footer {
+ footer, #csslink {
visibility: visible;
}
}
diff --git a/static/img/rss.png b/static/img/rss.png
new file mode 100644
index 0000000..be47455
Binary files /dev/null and b/static/img/rss.png differ
diff --git a/static/js/codex.js b/static/js/codex.js
index c9ffc3e..a5097c4 100644
--- a/static/js/codex.js
+++ b/static/js/codex.js
@@ -71,10 +71,11 @@ $(function() {
const _appendChild = Node.prototype.appendChild;
Node.prototype.appendChild = function(el) {
- _appendChild.apply(this, arguments);
+ const result = _appendChild.apply(this, arguments);
if(el.id === elId) {
setTimeout(afterFn, 100);
}
+ return result;
}
}