diff --git a/config.toml b/config.toml index e0d70ce..fd234f8 100644 --- a/config.toml +++ b/config.toml @@ -44,7 +44,6 @@ bookmark-of = "bookmark-of" posttype = "posttype" slug = "slug" - [params] title = "Jon's Place" author = "Jon Kelbie󠁧󠁢󠁳󠁣󠁴󠁿" @@ -118,6 +117,12 @@ weight = 700 url = "/resume/" identifier = "resume" +[[languages.en.menu.main]] +name = "Feeds" +weight = 800 +url = "/feeds/" +identifier = "feeds" + [languages.jp] weight = 10 languageName = "日本語" diff --git a/content/all.md b/content/all.md new file mode 100644 index 0000000..6687964 --- /dev/null +++ b/content/all.md @@ -0,0 +1,5 @@ +--- +title: "All feeds" +type: all +section: all +--- diff --git a/content/feeds.md b/content/feeds.md new file mode 100644 index 0000000..d44d483 --- /dev/null +++ b/content/feeds.md @@ -0,0 +1,4 @@ +--- +title: "Feeds" +type: feeds +--- diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml index 54c7b5c..39d1cc1 100644 --- a/layouts/_default/rss.xml +++ b/layouts/_default/rss.xml @@ -12,7 +12,8 @@ {{ with .OutputFormats.Get "RSS" }} {{ printf "" .Permalink .MediaType | safeHTML }} {{ end }} - {{ range .Pages }} + {{ if eq (trim .Permalink "index.xml") (string .Site.BaseURL)}} + {{ range where .Site.Pages "Kind" "page" }} {{ .Title }} {{ .Permalink }} @@ -25,7 +26,7 @@ {{ .Content | plainify }} ({{ .Permalink }}) - {{ range .Params.Photo }} + {{ range .Params.Photo }} {{ if not ( in . "http" ) }} {{ else }} @@ -35,5 +36,29 @@ {{ end }} + {{else}} + {{ range .Pages}} + + {{ .Title }} + {{ .Permalink }} + {{ if eq .Params.posttype "in-reply-to" }}{{ index .Params "in-reply-to" }}{{ end }} + {{ if eq .Params.posttype "like-of" }}{{ index .Params "like-of" }}{{ end }} + {{ if eq .Params.posttype "repost-of" }}{{ index .Params "repost-of" }}{{ end }} + {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }} + {{ with .Site.Author.email }}{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}{{end}} + {{ .Permalink }} + + {{ .Content | plainify }} + ({{ .Permalink }}) + {{ range .Params.Photo }} + {{ if not ( in . "http" ) }} + + {{ else }} + + {{ end }} + {{ end }} + + + {{ end }}{{ end }} diff --git a/layouts/_default/section.html b/layouts/_default/section.html index 63103d1..1a8ffcd 100644 --- a/layouts/_default/section.html +++ b/layouts/_default/section.html @@ -3,12 +3,12 @@ -{{ partial "pagination.html" . }} + {{ partial "pagination.html" . }} {{ range .Paginator.Pages}} {{ if not (eq .Type "response")}}
{{ with .Page.Params.Image }}
{{ partial "image.html" . }}
{{ end }}
- {{if eq .Type "article" }}

{{ .Title }}

{{ .Description }}{{ end }} + {{if eq .Type "article"}}

{{ .Title }}

{{ .Description }}{{ end }} {{ if eq .Type "article" }}
{{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}
{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}{{ .ReadingTime }}-minute read
diff --git a/layouts/all/single.html b/layouts/all/single.html new file mode 100644 index 0000000..3d9dad3 --- /dev/null +++ b/layouts/all/single.html @@ -0,0 +1,54 @@ +{{ define "main" }} +
+ + {{ range where .Site.Pages "Kind" "page"}} + {{ if not (eq .Type "response")}}
+ {{ with .Page.Params.Image }}
{{ partial "image.html" . }}
{{ end }} +
+ {{if eq .Type "article"}}

{{ .Title }}

{{ .Description }}{{ end }} + {{ if eq .Type "article" }}
+ {{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}
+ {{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}{{ .ReadingTime }}-minute read
+ {{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }} +
{{ end }} +
+ {{ .Content }} + {{ if eq .Type "photo"}} +
+ {{$link := .Permalink}} + {{$summary := .Content}} + {{ range .Page.Params.Photo }} + {{ if isset . "value" }} + {{ .alt }} + {{ else }} + Alt not yet added, will fix! + {{end}}{{end}} +
+ {{end}} +

+ {{ if not (eq .Type "article") }}
+ {{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}
+
{{ end }} +
+
+ {{ else }} +
+

{{ .Site.Params.Firstname }} + {{ if eq .Params.posttype "in-reply-to" }} replied to {{ index .Params "in-reply-to" }}{{ end }} + {{ if eq .Params.posttype "like-of" }} liked {{ index .Params "like-of" }}{{ end }} + {{ if eq .Params.posttype "repost-of" }} shared {{ index .Params "repost-of" }}{{ end }}

+ {{ if .Content }}
{{ .Content }}
{{end}} + {{ if not (eq .Type "article") }}
+ {{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}
+
{{ end }} +
+
+ {{end}} + {{ end }} + +
+ + +{{ end }} diff --git a/layouts/feeds/single.html b/layouts/feeds/single.html new file mode 100644 index 0000000..8b65467 --- /dev/null +++ b/layouts/feeds/single.html @@ -0,0 +1,15 @@ +{{ define "main" }} +
+

All feeds

+

This is a list of all of the feeds on this site for both microformats 2 (MF2) and RSS for following using your reader of choice.

+

All feeds - everything!RSS | MF2

+

All articles - long form blog postsRSS | MF2

+

Brewshido articlesRSS | MF2

+

Bushido Dreams articlesRSS | MF2

+

Whitabootery articlesRSS | MF2

+

Kilted Scot articles (currently dormant)RSS | MF2

+

Notes - short form notesRSS | MF2

+

PhotosRSS | MF2

+

Responses - likes, replies, shares, mentions.RSS | MF2

+
+{{ end }} diff --git a/themes/nipponalba/layouts/_default/single.html b/themes/nipponalba/layouts/_default/single.html index 3607dea..7415b75 100644 --- a/themes/nipponalba/layouts/_default/single.html +++ b/themes/nipponalba/layouts/_default/single.html @@ -77,7 +77,7 @@ {{ end }} {{ end }} {{ end }}
-{{ else }} +{{ else}}
{{ end }} - {{end}} - + {{ end }} {{end}} diff --git a/themes/nipponalba/static/css/style.css b/themes/nipponalba/static/css/style.css index d6e2c95..6a69d90 100644 --- a/themes/nipponalba/static/css/style.css +++ b/themes/nipponalba/static/css/style.css @@ -153,12 +153,12 @@ nav li i{ margin:0; padding-left:10px; } -nav > li:nth-child(8) { +nav > li:nth-child(9) { margin-left: auto; padding-right:5px; display:none; } -nav > li:nth-child(9) { +nav > li:nth-child(10) { padding-right:0; margin-left: auto; } @@ -256,7 +256,7 @@ main{ color: var(--text-colour); } .index-note, .feed, .post, #response .h-cite, -.resume header, .workhistory, .education, .skills { +.resume header, .workhistory, .education, .skills, .feeds { width: 98%; box-shadow: 0 2px 3px var(--shadow-colour); border: 1px solid var(--border-colour); @@ -732,6 +732,20 @@ hr{ .anchor:target { display:block; } +.feeds { + width: 95%; + margin-top: 20px; +} +.feedrow { + display:grid; + grid-template-columns: 80% auto; +} +.feedrow .description{ + grid-column: 1; +} +.feedrow .feedlinks{ + grid-column: 2; +} @media screen and (max-width: 960px) { #page-top {