now subtitles are completely optional.
This commit is contained in:
parent
221fe2541f
commit
9e3ed47cbd
|
@ -1,9 +1,10 @@
|
|||
---
|
||||
title: Misconceptions about retro gamers
|
||||
subtitle: "Let's get these out of the way."
|
||||
date: 2021-06-20T08:37:00
|
||||
categories:
|
||||
- retro
|
||||
tags:
|
||||
- games
|
||||
---
|
||||
|
||||
We retro gamers have been spoiled in recent years. Developers love to spit out remastered editions of classics, and we love to buy and replay them. Remastering is not limited to games, but also extends to the classic consoles themselves: think [(S)NES Classic/Mini](https://www.nintendo.com/super-nes-classic/) and [MegaDrive/Genesis Mini](https://megadrivemini.sega.com/). Then there is the recent resurgence of shiny [retro handheld devices](https://retrododo.com/best-retro-handhelds/). Most of them use emulation software, but there are exceptions such as the [Analogue Pocket](https://www.analogue.co/pocket).
|
||||
|
|
|
@ -14,15 +14,16 @@
|
|||
<meta name="twitter:title" content="{{ .Title }}" property="og:title">
|
||||
{{ $isHomePage := eq .Title .Site.Title }}
|
||||
{{ if .Params.subtitle }}
|
||||
<meta name="description" content="{{ .Params.subtitle }}. {{ .Summary | safeHTML }}">
|
||||
<meta name="twitter:description" content="{{ .Params.subtitle }}" property="og:description">
|
||||
<meta name="description" content="{{ .Params.subtitle }}">
|
||||
<meta name="twitter:description" content="{{ .Params.subtitle }}" property="og:description">
|
||||
{{ else }}
|
||||
<meta name="description" content="{{ .Summary | safeHTML }}">
|
||||
<meta name="twitter:description" content="{{ .Summary | safeHTML }}" property="og:description">
|
||||
{{ end }}{{ if .Keywords }}
|
||||
<meta content="{{ delimit .Keywords ", " }}" name="keywords">
|
||||
<meta name="description" content="{{ .Summary | safeHTML | truncate 50 }}">
|
||||
<meta name="twitter:description" content="{{ .Summary | safeHTML | truncate 50 }}" property="og:description">
|
||||
{{ end }}
|
||||
{{ if .Keywords }}
|
||||
<meta content="{{ delimit .Keywords ", " }}" name="keywords">
|
||||
{{ else if .Params.tags }}
|
||||
<meta content="{{ delimit .Params.tags ", " }}" name="keywords">
|
||||
<meta content="{{ delimit .Params.tags ", " }}" name="keywords">
|
||||
{{ end }}
|
||||
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
|
@ -102,7 +103,7 @@
|
|||
{{ if .Params.subtitle }}
|
||||
"headline" : {{ .Params.subtitle }},
|
||||
{{ else }}
|
||||
"headline" : {{ .Title }},
|
||||
"headline" : {{ .Summary | safeHTML | truncate 50 }},
|
||||
{{ end }}
|
||||
"description" : {{ if .Description }}{{ .Description }}{{ else }}{{if .IsPage}}{{ .Summary }}{{ end }}{{ end }},
|
||||
{{ if isset .Params "language" }}
|
||||
|
|
|
@ -7,7 +7,11 @@
|
|||
<h4>
|
||||
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
</h4>
|
||||
{{ .Params.subtitle }}
|
||||
{{ if isset .Params "subtitle" }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ else }}
|
||||
{{ .Summary | truncate 50 }}
|
||||
{{ end }}
|
||||
</div>
|
||||
<div class="list-tags">
|
||||
{{ if isset .Params "categories" }}
|
||||
|
|
|
@ -14,15 +14,17 @@
|
|||
{{ range $related }}
|
||||
<article>
|
||||
<h4><a href="{{ .RelPermalink }}">{{ .Title }}</a></h4>
|
||||
{{ if isset $.Params "subtitle" }}
|
||||
<time datetime='{{ .Date.Format "2006-01-02" }}'>
|
||||
<svg class='icon icon-text' width='24' height='24'>
|
||||
<use xlink:href='#cal1'></use>
|
||||
</svg>
|
||||
{{ .Date.Format (.Site.Params.dateFormat | default "02 Jan 2006") }}
|
||||
</time> |
|
||||
{{ .Params.subtitle }}
|
||||
{{ end }}
|
||||
<time datetime='{{ .Date.Format "2006-01-02" }}'>
|
||||
<svg class='icon icon-text' width='24' height='24'>
|
||||
<use xlink:href='#cal1'></use>
|
||||
</svg>
|
||||
{{ .Date.Format (.Site.Params.dateFormat | default "02 Jan 2006") }}
|
||||
</time> |
|
||||
{{ if isset .Params "subtitle" }}
|
||||
{{ .Params.subtitle }}
|
||||
{{ else }}
|
||||
{{ .Summary | truncate 50 }}
|
||||
{{ end }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue