Browse Source

Scripted auto-commit on change (2021-10-29 15:46:34) by gitwatch.sh

master^2
jk 3 years ago
parent
commit
d8d1eaaead
  1. 54
      config.toml
  2. 3
      layouts/_default/section.html
  3. 2
      themes/nipponalba/layouts/_default/baseof.html
  4. 55
      themes/nipponalba/layouts/index.html
  5. 3
      themes/nipponalba/layouts/partials/footer.html

54
config.toml

@ -65,10 +65,6 @@ description = "Quintessentially Celtic, vehemently Viking, passionately European
description = "日本語の紹介を書くーQuintessentially Celtic, vehemently Viking, passionately European, unashamedly, proudly Scottish, craft beer and single malt whisky lover, enthusiastic cook, vegan, perpetually exhausted dad, pronouns: he/him" description = "日本語の紹介を書くーQuintessentially Celtic, vehemently Viking, passionately European, unashamedly, proudly Scottish, craft beer and single malt whisky lover, enthusiastic cook, vegan, perpetually exhausted dad, pronouns: he/him"
## Social Links ## Social Links
[[params.socialIcons]]
icon = "fa fa-pleroma fa-2x fa-fw"
title = "Pleroma"
url = "https://social.nipponalba.scot/jk"
[[params.socialIcons]] [[params.socialIcons]]
icon = "fa fa-pixelfed fa-2x fa-fw" icon = "fa fa-pixelfed fa-2x fa-fw"
@ -98,53 +94,3 @@ languageName = "English"
name="Home" name="Home"
weight= 100 weight= 100
url = "/" url = "/"
[[languages.en.menu.main]]
name = "Blogs"
weight = 200
url = "/blog/"
[[languages.en.menu.main]]
name = "Articles"
weight = 300
url = "/article/"
[[languages.en.menu.main]]
name = "Notes"
weight = 400
url = "/note/"
[[languages.en.menu.main]]
name = "Photos"
weight = 500
url = "/photo/"
[[languages.en.menu.main]]
name = "Bookmarks"
weight = 600
url = "/bookmarks/"
[[languages.en.menu.main]]
name = "Feeds"
weight = 700
url = "/feeds/"
identifier = "feeds"
[languages.jp]
weight = 10
languageName = "日本語"
[[languages.jp.menu.main]]
name="ホーム"
weight= 100
url = "/jp/"
[[languages.jp.menu.main]]
name = "全部のブログ"
weight = 200
url = "/jp/blog/"
[[languages.jp.menu.main]]
name = "記事"
weight = 300
url = "/jp/article/"

3
layouts/_default/section.html

@ -80,6 +80,3 @@
{{ end }} {{ end }}
<span id="pagination-bottom">{{ partial "pagination.html" . }}</span> <span id="pagination-bottom">{{ partial "pagination.html" . }}</span>
</section> </section>
{{ end }}

2
themes/nipponalba/layouts/_default/baseof.html

@ -3,7 +3,7 @@
{{- partial "head.html" . -}} {{- partial "head.html" . -}}
<body> <body>
<section id="page"> <section id="page">
{{ partial "navbar.html" . }}
<main> <main>
<section class="content"> <section class="content">
{{- block "main" . }}{{- end }} {{- block "main" . }}{{- end }}

55
themes/nipponalba/layouts/index.html

@ -31,60 +31,5 @@
<span class="p-category">Cooking</span> <span class="p-category">Cooking</span>
</section> </section>
</section> </section>
<h1>Latest posts</h1>
{{ range (first 3 (where .Site.RegularPages "Type" "!=" "response")) }}
<article class="post h-entry entry">
{{ if eq .Type "article"}}{{ with .Page.Params.images }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="p-name entry-title"><a href="{{ .Permalink}}" class="u-url">{{ .Title }}</a></h3>{{ end }}
<section class="e-content">{{ if not (eq .Type "article")}}{{ .Content }}{{ else}}{{ .Summary }}{{ end }}
{{ if eq .Type "photo"}}
<section class="photos">
{{$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." "600."}}" title="{{ .alt }}" alt="{{ .alt }}"/></a>
{{ else }}
<a href="{{ $link }}" class="u-url"><img class="u-photo thumb" src="{{ replace . "800." "600."}}" title="{{ $summary }}" alt="Alt not yet added, will fix!"/></a>
{{ end }}
{{end}}
</section>
{{end}}
</section>
<section class="info">
{{ if eq .Type "article" }}
<span class="info-date"><time class="dt-published" datetime="{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 GMT" }}">{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 GMT" }}</time></span><span class="reading-time">{{ .ReadingTime }}-minute read</span><br/><br/>
<span class="blogs_span">{{ with .Page.Params.Blog }}<i class="fa fa-pencil-square-o fa-1.5x fa-fw" aria-hidden="true" title="Tags"></i><b> {{ partial "taxonomy/blog.html" . }}{{ end }}</b></span><br/>
<span class="categories_span">{{ with .Page.Params.category }}<i class="fa fa-tags fa-1.5x fa-fw" aria-hidden="true" title="Tags"></i>{{ partial "taxonomy/categories.html" . }}{{ end }}{{ with .Page.Params.tag }}, {{ partial "taxonomy/tags.html" . }}{{ end }}</span>
{{ else }}
{{ $mention_ids := index $.Site.Data.index .RelPermalink }}
{{ $mentions := apply $mention_ids "index" $.Site.Data.mentions "." }}
{{ $.Scratch.Set "likecount" 0 }}
{{ $.Scratch.Set "sharecount" 0 }}
{{ $.Scratch.Set "commentcount" 0 }}
{{ $.Scratch.Set "mentioncount" 0 }}
{{ range $mentions }}
{{ if eq (index . "wm-property") "like-of" }}{{ $.Scratch.Add "likecount" 1 }}{{ end }}
{{ if eq (index . "wm-property") "repost-of" }}{{ $.Scratch.Add "sharecount" 1 }}{{ end }}
{{ if eq (index . "wm-property") "in-reply-to" }}{{ $.Scratch.Add "commentcount" 1 }}{{ end }}
{{ if eq (index . "wm-property") "mention" }}{{ $.Scratch.Add "mentioncount" 1 }}{{ end }}
{{ end }}
<a href="{{ .Permalink }}"><span class="mini_interactions">{{ $likecount := $.Scratch.Get "likecount" }}{{ if ne $likecount 0 }} <i class="fa fa-thumbs-up fa-1.5x fa-fw" aria-hidden="true" title="Likes"></i>{{$likecount}} like{{if gt $likecount 1}}s{{end}}{{end}}
{{ $sharecount := $.Scratch.Get "sharecount" }}{{ if ne $sharecount 0 }} <i class="fa fa-share fa-1.5x fa-fw" aria-hidden="true" title="Shares"></i>{{$sharecount}} share{{if gt $sharecount 1}}s{{end}}{{end}}
{{ $commentcount := $.Scratch.Get "commentcount" }}{{ if ne $commentcount 0 }} <i class="fa fa-comment fa-1.5x fa-fw" aria-hidden="true" title="Replies"></i>{{$commentcount}} repl{{if gt $commentcount 1}}ies{{else}}y{{end}}{{end}}
{{ $mentioncount := $.Scratch.Get "mentioncount" }}{{ if ne $mentioncount 0 }} <i class="fa fa-sticky-note fa-1.5x fa-fw" aria-hidden="true" title="Mentions"></i>{{$mentioncount}} mention{{if gt $mentioncount 1}}s{{end}}{{end}}</span></a>
<span class="info-date-other"><a href="{{ .Permalink }}" class="u-url"><time class="dt-published" datetime="{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 GMT" }}">{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 GMT" }}</time></a>
<span class="syndication">
{{ if or (isset .Page.Params "pleromaurl") (isset .Page.Params "pixelfedurl")}}
- Syndication:
{{ with .Page.Params.pleromaurl }}<a rel="syndication" class="u-syndication" href="{{ . }}"><i class="fa fa-pleroma fa-1.5x fa-fw" aria-hidden="true" title="Pleroma"></i></a>{{ end }}
{{ with .Page.Params.pixelfedurl }}<a rel="syndication" class="u-syndication" href="{{ . }}"><i class="fa fa-pixelfed fa-1.5x fa-fw" aria-hidden="true" title="Pixelfed"></i></a>{{ end }}</span><span class="categories_span_other">{{ with .Page.Params.category }}{{ partial "taxonomy/categories.html" . }}{{ end }}{{ with .Page.Params.tag }}, {{ partial "taxonomy/tags.html" . }}{{ end }}
{{ end }}</span></span>
{{ end }}
</section>
<a href="https://brid.gy/publish/mastodon"></a>
</article>
{{ end }}
</section> </section>
{{ end }} {{ end }}

3
themes/nipponalba/layouts/partials/footer.html

@ -3,9 +3,6 @@
&copy; {{ now.Format "2006"}} | <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC-BY 4.0</a> | <a href="{{ .Permalink }}index.xml"><i class="fa fa-rss fa-fw" aria-hidden="true" title="Blog RSS feed"></i></a><br/> &copy; {{ now.Format "2006"}} | <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank">CC-BY 4.0</a> | <a href="{{ .Permalink }}index.xml"><i class="fa fa-rss fa-fw" aria-hidden="true" title="Blog RSS feed"></i></a><br/>
<img src="{{ .Site.Params.siteLogo | absURL }}" alt="nipponalba logo" id="logo"><br/> <img src="{{ .Site.Params.siteLogo | absURL }}" alt="nipponalba logo" id="logo"><br/>
Made with ❤ and <a href="https://gohugo.io/">Hugo</a> by {{ .Site.Params.author }}<br/><b>Inter</b> font by <a href="https://rsms.me/" target="_blank">Rasmus</a><br/> Made with ❤ and <a href="https://gohugo.io/">Hugo</a> by {{ .Site.Params.author }}<br/><b>Inter</b> font by <a href="https://rsms.me/" target="_blank">Rasmus</a><br/>
<a href="https://xn--sr8hvo.ws/%F0%9F%88%B8%F0%9F%91%98%F0%9F%91%A5/previous"></a>
An IndieWeb Webring 🕸💍
<a href="https://xn--sr8hvo.ws/%F0%9F%88%B8%F0%9F%91%98%F0%9F%91%A5/next"></a>
</footer> </footer>
</body> </body>
</html> </html>