Browse Source

trying to add opengraph, possibly breaking things

master
jk 4 years ago
parent
commit
7394fdb074
  1. 6
      config.toml
  2. 2
      content/article/end-of-the-imperial-march/index.md
  3. 2
      layouts/_default/section.html
  4. 2
      themes/nipponalba/layouts/_default/single.html
  5. 2
      themes/nipponalba/layouts/index.html
  6. 1
      themes/nipponalba/layouts/partials/head.html

6
config.toml

@ -35,7 +35,7 @@ ignoreErrors = ["error-remote-getjson"]
[taxonomies]
blog = "blog"
image = "image"
images = "images"
tag = "tag"
category = "category"
type = "type"
@ -45,11 +45,13 @@ repost-of = "repost-of"
bookmark-of = "bookmark-of"
posttype = "posttype"
slug = "slug"
series = "series"
[params]
title = "J K 🇯🇵🏴󠁧󠁢󠁳󠁣󠁴󠁿"
title = "J K 🇯🇵🏴󠁧󠁢󠁳󠁣󠁴󠁿 | personal site"
author = "J K 🇯🇵🏴󠁧󠁢󠁳󠁣󠁴󠁿"
profilePicture = "images/profile.jpg"
images = ["images/profile.jpg"]
siteLogo = "images/na-sm.png"
keywords = ""
favicon = "favicons/"

2
content/article/end-of-the-imperial-march/index.md

@ -15,7 +15,7 @@ category:
- "imperial stout"
- "coffee"
- "cocoa nibs"
Image: ["/images/not-black-and-white/23l_imperial_stout_all_grain_beer_kit.png"]
images: ["/images/not-black-and-white/23l_imperial_stout_all_grain_beer_kit.png"]
Type: ["article"]
draft: false
DibleComments: false

2
layouts/_default/section.html

@ -10,7 +10,7 @@
<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>
<article class="index_content">
{{if eq .Type "article" }}<br/>{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<a href="{{ .Permalink }}" class="u-url"><h3 class="p-name entry-title">{{ .Title }}</h3></a><b>{{ .Description }}</b>{{ end }}
{{if eq .Type "article" }}<br/>{{ with .Page.Params.images }}{{ partial "taxonomy/image.html" . }}{{ end }}<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="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/>

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

@ -5,7 +5,7 @@
<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.Author}}</div></a>
</section>
{{ if eq .Type "article" }}{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="p-name entry-title">{{ .Title }}</h3><b>{{ .Description }}</b>
{{ if eq .Type "article" }}{{ with .Page.Params.images }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="p-name entry-title">{{ .Title }}</h3><b>{{ .Description }}</b>
<section class="info">
<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/>

2
themes/nipponalba/layouts/index.html

@ -34,7 +34,7 @@
<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.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}<h3 class="p-name entry-title"><a href="{{ .Permalink}}" class="u-url">{{ .Title }}</a></h3>{{ end }}
{{ 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">

1
themes/nipponalba/layouts/partials/head.html

@ -33,6 +33,7 @@
<link rel="alternate" type="application/atom+xml" href="http://jk.nipponalba.scot/atom.xml" rel="self" />
<meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff">
{{ template "_internal/opengraph.html" . }}
<link rel="canonical" href="{{ .Permalink }}">
</head>