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: *
Disallow:

View File

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

View File

@ -1,6 +1,6 @@
<figure>
<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>
{{ with .Title }}
<figcaption>{{ . }}</figcaption>

View File

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

View File

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

View File

@ -6,7 +6,11 @@
<meta name="robots" content="all,follow">
<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 }}
<meta content="{{ delimit .Keywords ", " }}, {{ .Title }}" name="keywords">

View File

@ -2,7 +2,7 @@
{{ partial "mobile_nav_toggle.html" . }}
<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 }}
<article>
{{ .Content }}

View File

@ -18,13 +18,13 @@
</div>
<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 }}
<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 }}
{{ 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 }}
<br/>