Merge branch 'improve-page-layout' into 'master'

Minor improvements to the page and other layouts

See merge request tschwery/blog-hugo!13
This commit is contained in:
Thomas Schwery 2020-01-21 21:11:37 +00:00
commit bf0582ce6e
6 changed files with 24 additions and 4 deletions

View file

@ -1,7 +1,7 @@
---
title: About me
hidefromhome: true
type: page
type: other
---
I am Thomas, a software engineer. I love new challenges and learning

View file

@ -15,6 +15,8 @@ copyright = "Thomas Schwery, No rights reserved (CC0)."
pygmentsCodeFences = true
pygmentsCodeFencesGuessSyntax = true
disableKinds = ["taxonomy","taxonomyTerm"]
[params]
logo = "/images/logo.png"
subtitle = "A Glog ... Plog ... Blog ..."

BIN
static/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

@ -3,9 +3,10 @@
<main role="main">
<article itemscope itemtype="http://schema.org/BlogPosting">
<h1 class="entry-title" itemprop="headline">{{ .Title }}</h1>
{{ if ne .Type "page"}}
<span class="entry-meta"><time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time></span>{{ .Date }}
{{ end }}
<span class="entry-meta">
<time itemprop="datePublished" datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 02, 2006" }}</time>
<span>(~{{ .ReadingTime }} minutes)</span>
</span>
<section itemprop="entry-text">
{{ .Content }}
</section>

View file

@ -0,0 +1,14 @@
{{ partial "header.html" . }}
<main role="main">
<article itemscope itemtype="http://schema.org/BlogPosting">
<h1 class="entry-title" itemprop="headline">{{ .Title }}</h1>
<span class="entry-meta">
</span>
<section itemprop="entry-text">
{{ .Content }}
</section>
</article>
</main>
{{ partial "footer.html" . }}

View file

@ -16,6 +16,9 @@
<link rel="stylesheet" href="{{ $customCss.Permalink }}">
<link rel="stylesheet" href="{{ $syntaxCss.Permalink }}">
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">
<link rel="icon" href="/favicon.ico" type="image/x-icon">
<link rel="alternate" href="/index.xml" type="application/rss+xml" title="{{ .Site.Title }}">
<title>{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title>