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

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

@ -15,7 +15,7 @@ category:
- "imperial stout" - "imperial stout"
- "coffee" - "coffee"
- "cocoa nibs" - "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"] Type: ["article"]
draft: false draft: false
DibleComments: 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> <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> </section>
<article class="index_content"> <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"> {{ 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="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="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"> <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> <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> </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"> <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="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="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> <h1>Latest posts</h1>
{{ range (first 3 (where .Site.RegularPages "Type" "!=" "response")) }} {{ range (first 3 (where .Site.RegularPages "Type" "!=" "response")) }}
<article class="post h-entry entry"> <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 }} <section class="e-content">{{ if not (eq .Type "article")}}{{ .Content }}{{ else}}{{ .Summary }}{{ end }}
{{ if eq .Type "photo"}} {{ if eq .Type "photo"}}
<section class="photos"> <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" /> <link rel="alternate" type="application/atom+xml" href="http://jk.nipponalba.scot/atom.xml" rel="self" />
<meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-TileColor" content="#da532c">
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
{{ template "_internal/opengraph.html" . }}
<link rel="canonical" href="{{ .Permalink }}"> <link rel="canonical" href="{{ .Permalink }}">
</head> </head>