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:
commit
bf0582ce6e
6 changed files with 24 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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
BIN
static/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -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>
|
||||
|
|
14
themes/hugo-tschwery/layouts/other/single.html
Normal file
14
themes/hugo-tschwery/layouts/other/single.html
Normal 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" . }}
|
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue