Compare commits

...

2 Commits

  1. 37
      layouts/_default/baseof.html
  2. 15
      layouts/_default/list.html
  3. 12
      layouts/_default/taxonomy.html
  4. 12
      layouts/_default/terms.html

37
layouts/_default/baseof.html

@ -3,28 +3,37 @@
<head> <head>
<link rel="shortcut icon" href="/images/favicon.ico"/> <link rel="shortcut icon" href="/images/favicon.ico"/>
{{ with .OutputFormats.Get "rss" -}} {{ with .OutputFormats.Get "rss" }}
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} {{- printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML -}}
{{ end -}} {{ end }}
<meta charset="utf-8"> <meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="description" content="{{ .Params.description | default .Site.Params.Description }}">
{{ $style := resources.Get "/sass/main.scss" | resources.ToCSS }} {{ if .Params.description -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" /> <meta name="description" content="{{ .Params.description }}">
<title> {{- end -}}
{{ block "title" . }} {{ .Site.Title }} {{ end }}
</title> {{ if .Params.keywords -}}
<meta name="description" content="{{ delimit .Params.keywords "," }}">
{{- end }}
{{ $style := resources.Get "/sass/main.scss" | resources.ToCSS -}}
<link rel="stylesheet" href="{{ $style.Permalink }}" />
<title>
{{- block "title" . }}{{ .Site.Title }}{{ end -}}
</title>
</head> </head>
<body> <body>
{{ partial "header.html" . }}
{{ block "headline" . }} {{ partial "header.html" . }}
{{ end }}
{{ block "main" . }} {{ block "main" . }}
{{ end }} {{ end }}
{{ partial "footer.html" . }} {{ partial "footer.html" . }}
{{ block "footer" . }}
{{ end }}
</body> </body>
</html> </html>

15
layouts/_default/list.html

@ -1,13 +1,22 @@
{{ define "main" }} {{ define "main" }}
{{ $pages := .Site.RegularPages }}
{{if not .IsHome }} {{if not .IsHome }}
<h1 class="center-text">{{ .Title | markdownify | lower }}</h1> <h1 class="center-text">{{ .Title | markdownify | lower }}</h1>
{{ $pages = .Pages }}
{{ end }} {{ end }}
{{ .Content }}
<section>{{ .Content }}</section>
<section class="article-list"> <section class="article-list">
{{ $pages := .Pages }} {{ range $pages }}
{{ range (where $pages "Section" "ne" "") }}
{{ partial "article-card.html" . }} {{ partial "article-card.html" . }}
{{ end }} {{ end }}
</section> </section>
{{ end }} {{ end }}

12
layouts/_default/taxonomy.html

@ -1,12 +0,0 @@
{{ define "main" }}
<h1 class="center-text">{{ .Title | markdownify | lower }} tag</h1>
<div class="content-wrapper">
{{ .Content }}
</div>
<section class="article-list">
{{ $pages := .Pages }}
{{ range (where $pages "Section" "ne" "") }}
{{ partial "article-card.html" . }}
{{ end }}
</section>
{{ end }}

12
layouts/_default/terms.html

@ -1,12 +0,0 @@
{{ define "main" }}
<h1 class="center-text">{{ .Title | markdownify | lower }}</h1>
<div class="content-wrapper">
{{ .Content }}
</div>
<section class="article-list">
{{ $pages := .Pages }}
{{ range (where $pages "Section" "ne" "") }}
{{ partial "article-card.html" . }}
{{ end }}
</section>
{{ end }}
Loading…
Cancel
Save