diff --git a/config.toml b/config.toml index f7a12dc8..93dc77c7 100644 --- a/config.toml +++ b/config.toml @@ -2,7 +2,7 @@ baseURL = "https://jk.nipponalba.scot" languageCode = "en-gb" title = "JK's homepage" theme="anatole" -summarylength=10 +summarylength=30 enableEmoji=true defaultContentLanguage="en" diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml new file mode 100644 index 00000000..beaf943e --- /dev/null +++ b/layouts/_default/rss.xml @@ -0,0 +1,26 @@ + + + {{ 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 }} + {{ .Content | html }} + + {{ end }} + + diff --git a/themes/anatole/layouts/index.html b/themes/anatole/layouts/index.html index 73737233..894a6932 100644 --- a/themes/anatole/layouts/index.html +++ b/themes/anatole/layouts/index.html @@ -1,7 +1,8 @@ {{ define "main" }}
- {{ range first 8 .Site.RegularPages }} +

Recent posts

+ {{ range first 5 .Site.RegularPages }} {{ if eq .Type "post"}}

{{ .Title }}

diff --git a/themes/anatole/static/css/style.css b/themes/anatole/static/css/style.css index 3e255d9f..ef0cd0cb 100644 --- a/themes/anatole/static/css/style.css +++ b/themes/anatole/static/css/style.css @@ -74,7 +74,7 @@ body { .main, .content { background: var(--bg-colour); color: var(--text-colour); - height:100%; + height:95%; display:block; } p {