Whitespace and meta tags.
This commit is contained in:
parent
0299c650d5
commit
cf5d447b87
3 changed files with 54 additions and 50 deletions
|
|
@ -3,14 +3,14 @@
|
|||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
|
||||
{{ partialCached "meta.html" . }}
|
||||
{{ block "meta" . }}{{ end }}
|
||||
{{ partialCached "meta.html" . -}}
|
||||
{{ block "meta" . }}{{ end -}}
|
||||
</head>
|
||||
|
||||
<body class="{{ if $.Param "sidebar" | default true }}one-sidebar sidebar-second{{ else }}no-sidebars{{ end }}">
|
||||
<div class="layout-center">
|
||||
<header class="header" role="banner">
|
||||
{{ if $.Param "logo" | default true }}<a href="{{ .Site.BaseURL }}" title="Home" rel="home" class="header__logo"><img src="/images/logo.png" alt="Home" class="header__logo-image" /></a>{{ end }}
|
||||
{{ if $.Param "logo" | default true }}<a href="{{ .Site.BaseURL }}" title="Home" rel="home" class="header__logo"><img src="/images/logo.png" alt="Home" class="header__logo-image" /></a>{{ end -}}
|
||||
<h1 class="header__site-name">
|
||||
<a href="{{ .Site.BaseURL }}" title="Home" class="header__site-link" rel="home"><span>{{ .Site.Title }}</span></a>
|
||||
</h1>
|
||||
|
|
@ -18,13 +18,13 @@
|
|||
</header>
|
||||
|
||||
<div class="layout-3col layout-swap">
|
||||
{{ block "main" . }}{{ end }}
|
||||
{{ block "main" . }}{{ end -}}
|
||||
</div>
|
||||
|
||||
<footer class="footer" role="contentinfo">
|
||||
<p>{{ with $.Param "copyright" }}{{ . | markdownify }}{{ else }}<span>© {{ .Site.Title }}</span>{{ end }}</p>
|
||||
{{ with $.Param "footer" }}<p>{{ . | markdownify }}</p>{{ end }}
|
||||
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a></p>{{ end }}
|
||||
{{ with $.Param "footer" }}<p>{{ . | markdownify }}</p>{{ end -}}
|
||||
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a></p>{{ end -}}
|
||||
</footer>
|
||||
</div>
|
||||
{{ partialCached "scripts.html" . }}
|
||||
|
|
|
|||
|
|
@ -1,19 +1,19 @@
|
|||
{{ define "title" }}{{ if not .IsHome }}{{ .Title }} - {{ .Site.Title }}{{ end }}{{ end }}
|
||||
|
||||
{{ define "meta" }}
|
||||
{{ partial "section_meta.html" . }}
|
||||
{{ partial "section_meta.html" . -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ define "main" -}}
|
||||
<main class="{{ if $.Param "sidebar" | default true }}layout-3col__left-content{{ else }}layout-3col__full{{ end }}" role="main">
|
||||
{{ $paginator := .Paginate (.Data.Pages) }}
|
||||
{{ range $paginator.Pages }}
|
||||
{{ $paginator := .Paginate (.Data.Pages) -}}
|
||||
{{ range $paginator.Pages -}}
|
||||
{{ .Render "summary"}}
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
||||
</main>
|
||||
|
||||
{{ partial "menu.html" . }}
|
||||
{{ if $.Param "sidebar" | default true }}{{ partial "sidebar.html" . }}{{ end }}
|
||||
{{ partial "menu.html" . -}}
|
||||
{{ if $.Param "sidebar" | default true }}{{ partial "sidebar.html" . -}}{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,18 @@
|
|||
{{ define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end }}
|
||||
|
||||
{{ define "meta" }}
|
||||
{{ partial "single_meta.html" . }}
|
||||
{{ partial "single_meta.html" . -}}
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
{{ define "main" -}}
|
||||
<main class="{{ if $.Param "sidebar" | default true }}layout-3col__left-content{{ else }}layout-3col__full{{ end }}" role="main">
|
||||
<h1>{{ .Title }}</h1>
|
||||
<article class="{{ with .Section }}section-{{ . | urlize }}{{ end }} single-view">
|
||||
<header>
|
||||
<p class="submitted">
|
||||
{{ with $.Param "author" }}<span class="author">{{ . }}</span> – {{ end -}}
|
||||
<span class="created-date">{{ .Date.Format "2 January, 2006" }}</span>
|
||||
</p>
|
||||
</header>
|
||||
<div>
|
||||
{{ .Content }}
|
||||
|
|
@ -16,6 +20,6 @@
|
|||
</article>
|
||||
</main>
|
||||
|
||||
{{ partial "menu.html" . }}
|
||||
{{ if $.Param "sidebar" | default true }}{{ partial "sidebar.html" . }}{{ end }}
|
||||
{{ partial "menu.html" . -}}
|
||||
{{ if $.Param "sidebar" | default true }}{{ partial "sidebar.html" . -}}{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue