You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
{{ define "main" }} {{ if not (eq .Type "response" "bookmarkof")}} <article class="post h-entry entry contents"> <section class="author" style="display:none;"> <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot">{{ .Site.Params.Title }}<img src="/images/profile.jpg"/></a> </section> {{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="p-name entry-title">{{ .Title }}</h3><b>{{ .Description }}</b> {{ 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"> {{ range .Page.Params.Photo }} <a href="{{ . }}"><img class="u-photo thumb" src="{{ replace . "800." "300."}}"/></a> {{end}} </section> {{end}} {{ if eq .Type "article" }}<section class="p-summary" style="display:none"> {{ .Page.Params.summary }}<br/> </section> {{ end }}<br/> </section> <section class="info"> {{ if not (eq .Type "article") }}<span class="categories_span">{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}</span>{{ end }} {{ $pathJSON := (print .Permalink "bridgy.json") }} {{ $relpathJSON := (print .RelPermalink "bridgy.json") }} {{ if fileExists $relpathJSON }} <span class="syndication"> {{ $mJSON := getJSON $pathJSON }} Syndicated to <a href="{{ printf $mJSON.url}}">Pleroma</a></span>{{ end }} <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></section> <a href="https://brid.gy/publish/mastodon"></a> <section id="interactions"><h4>Interactions</h4> <section id="webmention-form"> <form action="https://webmention.io/jk.nipponalba.scot/webmention" method="post"> <label>Did you mention this {{ .Type }} on your website? Put the URL of your post here:</label><br/> <input name="source" type="url"/> <input name="target" value="{{ .Permalink }}" type="hidden"/> <input value="Send Webmention" type="submit"/> </form> </section> {{ $mention_ids := index $.Site.Data.index .RelPermalink }} {{ if isset $mention_ids 0}} {{ $mentions := apply $mention_ids "index" $.Site.Data.mentions "." }} {{ $mentions := sort $mentions "wm-received" }} <section id="webmentions"> <section class="like interaction"><h4>Likes</h4>{{ range $mentions }}{{ if eq (index . "wm-property") "like-of" }} <a href="{{ .author.url }}"><img class="remote_profile" src="{{ .author.photo }}" title="{{ .author.name }}" alt="{{ .author.name }}" /></a>{{ end}} {{ end }}</section> <section class="share interaction"><h4>Shares</h4>{{ range $mentions }}{{ if eq (index . "wm-property") "repost-of" }} <a href="{{ .author.url }}"><img class="remote_profile" src="{{ .author.photo }}" title="{{ .author.name }}" alt="{{ .author.name }}" /></a>{{ end}} {{ end }}</section> <h4>Comments & Replies</h4>{{ partial "webmention.html" $mentions }} </section>{{ end }}</section> </article> {{ else if eq .Type "bookmarkof" }} <section class="bookmarks">{{ $cats := slice }} {{ range .Site.Data.bookmarks }} {{ $cats = $cats | append .category }} {{ end }} {{ $cats = uniq $cats | sort }} {{ range $cats }} {{ $cat := . }} <section id="{{ $cat }}"> <h4>{{ $cat }}</h4> {{ range $.Site.Data.bookmarks }} {{ if eq .category $cat }} <article data-post-type="bookmark-of" data-post-id="{{ .Params.slug }}" class="bookmark h-entry"> <section class="author" style="display:none"> <a rel="author" class="p-author h-card" rel="me" href="https://jk.nipponalba.scot"><img src="/images/profile.jpg"/><div class="title">{{ .Site.Params.Title }}</div></a> </section> <section class="h-cite"> <a href="{{ (index . "bookmark-of") | absURL }}" class="u-bookmark-of" target="_blank">{{ .name }}</a> - <div class="p-name p-content">{{ .content | markdownify }}</div> </section> </article></section> {{ end }} {{ end }} {{ end }}</section> {{ else }} <article class="h-entry" id="response"> <section class="author" style="display:none;"> <a rel="author" class="u-author h-card" rel="me" href="https://jk.nipponalba.scot"><img src="/images/profile.jpg"/><span class="title">{{ .Site.Params.Title }}</span></a> </section> <section id="response-details"><br/><p>{{ .Site.Params.Title }} {{ if eq .Params.posttype "in-reply-to" }} replied to a <a href="{{ index .Params "in-reply-to" }}" class="u-in-reply-to"> post</a>{{ end }} {{ if eq .Params.posttype "like-of" }} liked a <a href="{{ index .Params "like-of" }}" class="u-like-of"> post</a>{{ end }} {{ if eq .Params.posttype "repost-of" }} shared a <a href="{{ index .Params "repost-of" }}" class="u-repost-of"> post</a>{{ end }}</p> {{ if .Content }}<span class="p-name p-content"><p>{{ .Content }}</p></span> {{end}} </section> {{ 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 }} {{end}}
{{end}}
|