Fix default template to remove unused portions, fix template for contact
This commit is contained in:
parent
5bd35211b9
commit
24cceb7192
2 changed files with 1 additions and 18 deletions
|
@ -2,7 +2,7 @@
|
|||
title: Contact
|
||||
featured_image: "images/banner2.jpg"
|
||||
omit_header_text: true
|
||||
type: news
|
||||
type: page
|
||||
menu:
|
||||
main: {}
|
||||
---
|
||||
|
|
|
@ -8,13 +8,6 @@
|
|||
<article class="flex-l flex-wrap justify-between mw8 center ph3">
|
||||
|
||||
<header class="mt4 w-100">
|
||||
<p class="f6 b helvetica tracked">
|
||||
{{/*
|
||||
CurrentSection allows us to use the section title instead of inferring from the folder.
|
||||
https://gohugo.io/variables/page/#section-variables-and-methods
|
||||
*/}}
|
||||
{{with .CurrentSection.Title }}{{. | upper }}{{end}}
|
||||
</p>
|
||||
<h1 class="f1 athelas mb1">
|
||||
{{- .Title -}}
|
||||
</h1>
|
||||
|
@ -22,16 +15,6 @@
|
|||
<time class="f6 mv4 dib tracked" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">
|
||||
{{- .Date.Format "02.01.2006" -}}
|
||||
</time>
|
||||
{{/*
|
||||
Show "reading time" and "word count" but only if one of the following are true:
|
||||
1) A global config `params` value is set `show_reading_time = true`
|
||||
2) A section front matter value is set `show_reading_time = true`
|
||||
3) A page front matter value is set `show_reading_time = true`
|
||||
*/}}
|
||||
{{ if (or (eq (.Param "show_reading_time") true) (eq $section.Params.show_reading_time true) )}}
|
||||
<span class="f6 mv4 dib tracked"> - {{ .ReadingTime}} minutes read</span>
|
||||
<span class="f6 mv4 dib tracked"> - {{ .WordCount}} words</span>
|
||||
{{ end }}
|
||||
</header>
|
||||
|
||||
<section class="nested-copy-line-height lh-copy serif f4 nested-links nested-img mid-gray pr4-l w-two-thirds-l">
|
||||
|
|
Loading…
Add table
Reference in a new issue