SEO meta tags update

This commit is contained in:
wgroeneveld 2020-12-13 21:50:18 +01:00
parent fa12aa57c2
commit 8f31064e0e
8 changed files with 20 additions and 12 deletions

View File

@ -1 +1,3 @@
Sitemap: https://jefklakscodex.com/sitemap.xml
User-agent: * User-agent: *
Disallow:

View File

@ -35,6 +35,10 @@ html body, h1, h2, h3, h4, h5, h6
.rfloat .rfloat
float: right float: right
.metatitle
color: grey
font-weight: bold
h1, .h1 h1, .h1
font-size: 2.5rem font-size: 2.5rem
font-weight: 700 font-weight: 700

View File

@ -1,6 +1,6 @@
<figure> <figure>
<a href="{{ .Destination | safeURL }}" class="lbox"> <a href="{{ .Destination | safeURL }}" class="lbox">
<img class="lazyload img-responsive" data-src="{{ .Destination | safeURL }}" {{ with .Text }} alt="{{ . }}"{{ end }} {{ with .Title}} title="{{ . }}"{{ end }}> <img class="lazyload img-responsive" data-src="{{ .Destination | safeURL }}" {{ with .Text }} alt="{{ . }}"{{ end }} {{ with .Title}} title="{{ . }}" alt="{{ . }}"{{ end }}>
</a> </a>
{{ with .Title }} {{ with .Title }}
<figcaption>{{ . }}</figcaption> <figcaption>{{ . }}</figcaption>

View File

@ -8,8 +8,7 @@
<header> <header>
<h1>{{ .Title }}</h1> <h1>{{ .Title }}</h1>
<h5> <span class="metatitle">
<span style="color: grey;">
<span title="Created Date"> <span title="Created Date">
<i class='fa fa-calendar'></i>&nbsp;{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }} <i class='fa fa-calendar'></i>&nbsp;{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }}
</span> </span>
@ -21,7 +20,6 @@
</span> </span>
{{ end }} {{ end }}
</span> </span>
</h5>
<hr/> <hr/>
</header> </header>
@ -53,9 +51,9 @@
{{ if (not .Params.disableComments) }} {{ if (not .Params.disableComments) }}
<hr/> <hr/>
<h4 class="page-header"><i class="fa fa-comments-o"></i>&nbsp; <h3 class="page-header"><i class="fa fa-comments-o"></i>&nbsp;
Join the Discussion Join the Discussion
</h4> </h3>
{{- if (ne hugo.Environment "development") }} {{- if (ne hugo.Environment "development") }}
<script defer src="https://commento.jefklakscodex.com/js/commento.js"></script> <script defer src="https://commento.jefklakscodex.com/js/commento.js"></script>

View File

@ -3,7 +3,7 @@
{{ partial "mobile_nav_toggle.html" . }} {{ partial "mobile_nav_toggle.html" . }}
<div class="col-lg-8"> <div class="col-lg-8">
<img src="/img/logo.png" class="logo"/> <img src="/img/logo.png" class="logo" alt="jefklaks codex logo" />
<article> <article>
{{ .Content }} {{ .Content }}
</article> </article>

View File

@ -6,7 +6,11 @@
<meta name="robots" content="all,follow"> <meta name="robots" content="all,follow">
<meta name="googlebot" content="index,follow,snippet,archive"> <meta name="googlebot" content="index,follow,snippet,archive">
<meta name="description" content="{{ .Site.Title }} - {{ .Site.Title }}"> {{ if .Description }}
<meta name="description" content="{{ .Description | safeHTML }}">
{{ else }}
<meta name="description" content="{{ .Summary | safeHTML }}">
{{ end }}
{{ if .Keywords }} {{ if .Keywords }}
<meta content="{{ delimit .Keywords ", " }}, {{ .Title }}" name="keywords"> <meta content="{{ delimit .Keywords ", " }}, {{ .Title }}" name="keywords">

View File

@ -2,7 +2,7 @@
{{ partial "mobile_nav_toggle.html" . }} {{ partial "mobile_nav_toggle.html" . }}
<div class="col-lg-8"> <div class="col-lg-8">
<img src="/img/logo.png" class="logo" /> <img src="/img/logo.png" class="logo" alt="jefklaks codex logo" />
{{ if eq .Paginator.PageNumber 1 }} {{ if eq .Paginator.PageNumber 1 }}
<article> <article>
{{ .Content }} {{ .Content }}

View File

@ -18,13 +18,13 @@
</div> </div>
<p style="position: relative;"> <p style="position: relative;">
<img src="{{ $url }}{{ .Params.image }}" alt="game cover image" class="img-responsive img-inactive" style="border: 1px solid black"/> <img src="{{ $url }}{{ .Params.image }}" alt="game cover image" alt="game cover" class="img-responsive img-inactive" style="border: 1px solid black"/>
{{ with .Params.imageActive }} {{ with .Params.imageActive }}
<img src="{{ $url }}{{ . }}" alt="game cover image active" class="img-responsive img-active" style="border: 1px solid black"/> <img src="{{ $url }}{{ . }}" alt="game cover image active" alt="game cover" class="img-responsive img-active" style="border: 1px solid black"/>
{{ end }} {{ end }}
{{ with .Params.game_platform }} {{ with .Params.game_platform }}
<img src="{{ $url }}img/{{ . }}.png" alt="{{ . }}" class="sidebar-game-platform img-responsive"/> <img src="{{ $url }}img/{{ . }}.png" alt="{{ . }}" alt="platform" class="sidebar-game-platform img-responsive"/>
{{ end }} {{ end }}
<br/> <br/>