jk
4 years ago
7 changed files with 119 additions and 9 deletions
-
16config.toml
-
5content/all.md
-
4content/feeds.md
-
29layouts/_default/rss.xml
-
54layouts/all/single.html
-
16layouts/feeds/single.html
-
4themes/nipponalba/static/css/style.css
@ -0,0 +1,5 @@ |
|||
--- |
|||
title: "All feeds" |
|||
type: all |
|||
section: all |
|||
--- |
@ -0,0 +1,4 @@ |
|||
--- |
|||
title: "Feeds" |
|||
type: feeds |
|||
--- |
@ -0,0 +1,54 @@ |
|||
{{ define "main" }} |
|||
<section class="stream h-feed"> |
|||
<section class="author" style="display:none;"> |
|||
<a rel="author" class="p-author h-card" rel="me" href="https://jon.kelbie.scot">{{ .Site.Params.Author }}<img src="/images/profile1.jpg"/></a> |
|||
</section> |
|||
{{ range where .Site.Pages "Kind" "page"}} |
|||
{{ if not (eq .Type "response")}}<section data-post-type="{{ .Type }}" class="feed h-entry {{.Type }}"> |
|||
{{ with .Page.Params.Image }}<center>{{ partial "image.html" . }}</center>{{ end }} |
|||
<article class="index_content"> |
|||
{{if eq .Type "article"}}<a href="{{ .Permalink }}" class="u-url"><h3 class="p-name entry-title">{{ .Title }}</h3></a><b>{{ .Description }}</b>{{ end }} |
|||
{{ if eq .Type "article" }}<section class="info"> |
|||
<span class="blogs_span">{{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}</span><span class="info-date"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></span><br/> |
|||
<span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="reading-time">{{ .ReadingTime }}-minute read</span><br/> |
|||
<span class="tags_span">{{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }}</span> |
|||
</section>{{ end }} |
|||
<section class="e-content"> |
|||
{{ .Content }} |
|||
{{ if eq .Type "photo"}} |
|||
<section class="photogrid"> |
|||
{{$link := .Permalink}} |
|||
{{$summary := .Content}} |
|||
{{ range .Page.Params.Photo }} |
|||
{{ if isset . "value" }} |
|||
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace .value "800." "300."}}" title="{{ $summary }}" alt="{{ .alt }}"/></a> |
|||
{{ else }} |
|||
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace . "800." "300."}}" title="{{ $summary }}" alt="Alt not yet added, will fix!"/></a> |
|||
{{end}}{{end}} |
|||
</section> |
|||
{{end}} |
|||
</section><br/> |
|||
{{ if not (eq .Type "article") }}<section class="info"> |
|||
<span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span><br/> |
|||
</section>{{ end }} |
|||
</article> |
|||
</section> |
|||
{{ else }} |
|||
<section data-post-type="{{ .Params.posttype }}" data-post-id="{{ .Params.slug }}" class="h-entry" id="response"> |
|||
<article class="h-cite"><p class="response-top">{{ .Site.Params.Firstname }} |
|||
{{ if eq .Params.posttype "in-reply-to" }} replied to <a href="{{ index .Params "in-reply-to" }}" class="u-in-reply-to">{{ index .Params "in-reply-to" }}</a>{{ end }} |
|||
{{ if eq .Params.posttype "like-of" }} liked <a href="{{ index .Params "like-of" }}" class="u-like-of">{{ index .Params "like-of" }}</a>{{ end }} |
|||
{{ if eq .Params.posttype "repost-of" }} shared <a href="{{ index .Params "repost-of" }}" class="u-repost-of">{{ index .Params "repost-of" }}</a>{{ end }}</p> |
|||
{{ if .Content }}<section class="p-name p-content">{{ .Content }}</section>{{end}} |
|||
{{ if not (eq .Type "article") }}<section class="info"> |
|||
<span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span><span class="info-date"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "2 Jan 2006 15:04 GMT" }}">{{ .Date.Format "02/01/2006 15:04 GMT" }}</time></a></span><br/> |
|||
</section>{{ end }} |
|||
</article> |
|||
</section> |
|||
{{end}} |
|||
{{ end }} |
|||
|
|||
</section> |
|||
|
|||
|
|||
{{ end }} |
@ -0,0 +1,16 @@ |
|||
{{ define "main" }} |
|||
<article class="feeds"> |
|||
<header><h3 class="title">All feeds</h3> |
|||
<p class="p-summary">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.</p></header> |
|||
<p class="feedrow"><span class="description">All feeds - everything!</span><span class="feedlinks"><a href="/index.xml" class="u-url">RSS</a> | <a href="/all/" class="u-url">MF2</a></span></p> |
|||
<p class="feedrow"><span class="description">All articles - long form blog posts</span><span class="feedlinks"><a href="/article/index.xml" class="u-url">RSS</a> | <a href="/article/" class="u-url">MF2</a></span></p> |
|||
<p class="feedrow"><span class="description">Brewshido articles</span><span class="feedlinks"><a href="/blog/brewshido/index.xml" class="u-url">RSS</a> | <a href="/blog/brewshido/" class="u-url">MF2</a></span></p> |
|||
<p class="feedrow"><span class="description">Bushido Dreams articles</span><span class="feedlinks"><a href="/blog/bushido-dreams/index.xml" class="u-url">RSS</a> | <a href="/blog/bushido-dreams/" class="u-url">MF2</a></span></p> |
|||
<p class="feedrow"><span class="description">Whitabootery articles</span><span class="feedlinks"><a href="/blog/whitabootery/index.xml" class="u-url">RSS</a> | <a href="/blog/whitabootery/" class="u-url">MF2</a></span></p> |
|||
<p class="feedrow"><span class="description">Kilted Scot articles (currently dormant)</span><span class="feedlinks"><a href="/blog/kilted-scot/index.xml" class="u-url">RSS</a> | <a href="/blog/kilted-scot/" class="u-url">MF2</a></span></p> |
|||
<p class="feedrow"><span class="description">Sovereign Scot articles (currently dormant)</span><span class="feedlinks"><a href="/blog/sovereign-scot/index.xml" class="u-url">RSS</a> | <a href="/blog/sovereign-scot/" class="u-url">MF2</a></span></p> |
|||
<p class="feedrow"><span class="description">Notes - short form notes</span><span class="feedlinks"><a href="/note/index.xml" class="u-url">RSS</a> | <a href="/note/" class="u-url">MF2</a></span></p> |
|||
<p class="feedrow"><span class="description">Photos</span><span class="feedlinks"><a href="/photo/index.xml" class="u-url">RSS</a> | <a href="/photo/" class="u-url">MF2</a></span></p> |
|||
<p class="feedrow"><span class="description">Responses - likes, replies, shares, mentions.</span><span class="feedlinks"><a href="/response/index.xml" class="u-url">RSS</a> | <a href="/response/" class="u-url">MF2</a></span></p> |
|||
</article> |
|||
{{ end }} |
Reference in new issue