Whitespace and meta tags.
This commit is contained in:
parent
0299c650d5
commit
cf5d447b87
6 changed files with 54 additions and 50 deletions
|
|
@ -5,15 +5,15 @@
|
|||
<h2 class="visually-hidden">Main menu</h2>
|
||||
<ul class="navbar clearfix">
|
||||
<li><a class="{{ if .IsHome }}active{{ end }}" href="/">Home</a></li>
|
||||
{{ range $section, $taxonomy := .Site.Sections }}
|
||||
{{ if eq $section "" }}
|
||||
{{ range $taxonomy.Pages }}
|
||||
{{ range $section, $taxonomy := .Site.Sections -}}
|
||||
{{ if eq $section "" -}}
|
||||
{{ range $taxonomy.Pages -}}
|
||||
<li><a class="{{ if eq $currentID .UniqueID }}active{{ end }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
{{ end -}}
|
||||
{{ else -}}
|
||||
<li><a class="{{ if eq $currentSection $section }}active{{ end }}" href="/{{ urlize $section }}">{{ humanize $section }}</a></li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -6,5 +6,8 @@
|
|||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<link rel="shortcut icon" href="/favicon.ico" type="image/vnd.microsoft.icon">
|
||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
|
||||
{{ if and (.Site.RSSLink) (not ($.Param "supressRSSLink")) }}<link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ .Site.RSSLink }}">{{ end }}
|
||||
{{ with $.Param "contact" }}<meta name="contact" content="{{ . }}">{{ end }}
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" title="{{ .Name }}" href="{{ .Permalink | safeURL }}">
|
||||
{{ end -}}
|
||||
{{ with $.Param "contact" }}<meta name="contact" content="{{ . }}">{{ end -}}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,11 @@
|
|||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) }}
|
||||
{{ if or (.Paginator.HasPrev) (.Paginator.HasNext) -}}
|
||||
<nav class="pager">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
{{ if .Paginator.HasPrev -}}
|
||||
<a href="{{ .Paginator.Prev.URL }}" rel="prev" class="pager-item pager-prev">Prev</a>
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
|
||||
{{ if .Paginator.HasNext }}
|
||||
{{ if .Paginator.HasNext -}}
|
||||
<a href="{{ .Paginator.Next.URL }}" rel="next" class="pager-item pager-next">Next</a>
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
</nav>
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
|
|
|
|||
|
|
@ -1 +1,3 @@
|
|||
{{ if and (.RSSLink) (not ($.Param "supressRSSLink")) }}<link rel="alternate" type="application/rss+xml" title="{{ .Title }} - {{ .Site.Title }}" href="{{ .RSSLink }}">{{ end }}
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type }}" title="{{ .Name }}" href="{{ .Permalink | safeURL }}">
|
||||
{{ end -}}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
{{ $currentSection := .Section }}
|
||||
{{ $currentID := .UniqueID }}
|
||||
<aside class="layout-3col__right-sidebar" role="complementary">
|
||||
{{ range $section, $taxonomy := .Site.Sections }}
|
||||
{{ if ne $section "" }}
|
||||
{{ range $section, $taxonomy := .Site.Sections -}}
|
||||
{{ if ne $section "" -}}
|
||||
<h4 class="menu"><a class="{{ if eq $currentSection $section }}active{{ end }}" href="/{{ urlize $section }}">{{ humanize $section }}</a></h4>
|
||||
<ul class="menu">
|
||||
{{ range $taxonomy.Pages }}
|
||||
{{ range $taxonomy.Pages -}}
|
||||
<li><a class="{{ if eq $currentID .UniqueID }}active{{ end }}" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></li>
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end -}}
|
||||
{{ end -}}
|
||||
</aside>
|
||||
|
|
|
|||
|
|
@ -1,8 +1,3 @@
|
|||
<meta name="description" content="{{ replaceRE "\n" "" (.Description | default .Summary) }}">
|
||||
<meta property="og:title" content="{{ .Title }} - {{ .Site.Title }}">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:url" content="{{ .Permalink }}">
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}">
|
||||
<meta property="og:description" content="{{ replaceRE "\n" "" (.Description | default .Summary) }}">
|
||||
<meta property="og:locale" content="{{ .Lang }}">
|
||||
{{ with $.Param "thumbnail" }}<meta property="og:image" content="{{ .Site.BaseURL }}{{ . }}">{{ end }}
|
||||
<meta name="created" content="{{ .Date.Format "2006-01-02T15:04:05-0700" }}">
|
||||
{{ with $.Param "author" }}<meta name="author" content="{{ . }}">{{ end -}}
|
||||
|
|
|
|||
Loading…
Reference in a new issue