summaryrefslogtreecommitdiffstats
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html6
-rw-r--r--layouts/_default/list.html16
-rw-r--r--layouts/_default/list.xml39
-rw-r--r--layouts/_default/single.html11
-rw-r--r--layouts/index.atom.xml36
-rw-r--r--layouts/index.html22
-rw-r--r--layouts/index.rss.xml39
-rw-r--r--layouts/partials/footer.html4
-rw-r--r--layouts/partials/head.html25
-rw-r--r--layouts/sitemap.xml22
10 files changed, 0 insertions, 220 deletions
diff --git a/layouts/404.html b/layouts/404.html
deleted file mode 100644
index f3419e9..0000000
--- a/layouts/404.html
+++ /dev/null
@@ -1,6 +0,0 @@
-{{ partial "head" . }}
-<br><br><br><br>
-<center><h1 style="font-size:10rem; margin-bottom: 0;">404</h1></center>
-<center><p>Page not found, dude.</p></center>
-<br><br><br><br>
-{{ partial "footer" . }}
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
deleted file mode 100644
index 7863d64..0000000
--- a/layouts/_default/list.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{{ partial "head" . }}
-<main>
-
- {{ .Content }}
- <ul class="contents">
- {{ range where .Paginator.Pages "Params.hidden" "ne" "true" }}
- <li>{{.Title}}
- <div>
- {{ .Summary }}
- </div>
- </li>
- {{ end }}
- </ul>
-
-</main>
-{{ partial "footer" . }}
diff --git a/layouts/_default/list.xml b/layouts/_default/list.xml
deleted file mode 100644
index 849e0f0..0000000
--- a/layouts/_default/list.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-{{- $pctx := . -}}
-{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
-{{- $pages := slice -}}
-{{- if or $.IsHome $.IsSection -}}
-{{- $pages = $pctx.RegularPages -}}
-{{- else -}}
-{{- $pages = $pctx.Pages -}}
-{{- end -}}
-{{- $limit := .Site.Config.Services.RSS.Limit -}}
-{{- if ge $limit 1 -}}
-{{- $pages = $pages | first $limit -}}
-{{- end -}}
-{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
-<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
- <channel>
- <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
- <link>{{ .Permalink }}</link>
- <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
- <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
- <language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
- <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
- <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
- <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
- <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
- {{ with .OutputFormats.Get "RSS" }}
- {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
- {{ end }}
- {{ range where $pages "Params.hidden" "ne" "true" }}
- <item>
- <title>{{ .Title }}</title>
- <link>{{ .Permalink }}</link>
- <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
- {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
- <guid>{{ .Permalink }}</guid>
- <description>{{ .Summary | html }}</description>
- </item>
- {{ end }}
- </channel>
-</rss>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
deleted file mode 100644
index 4d07a02..0000000
--- a/layouts/_default/single.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{{ partial "head" . }}
-<main>
- <article>
- <h1>{{ .Title }}</h1>
- <span class="single-date">{{ .Date.Format "January 2, 2006" }}</span>
-{{ if ne (.Lastmod.Format "January 2, 2006") (.Date.Format "January 2, 2006") }} <br><span class="single-date"><small>Last modified {{ .Lastmod.Format "January 2, 2006" }}</small></span>{{ end }}
-
-{{ .Content }}
- </article>
-</main>
-{{ partial "footer" . }}
diff --git a/layouts/index.atom.xml b/layouts/index.atom.xml
deleted file mode 100644
index 7443f34..0000000
--- a/layouts/index.atom.xml
+++ /dev/null
@@ -1,36 +0,0 @@
-{{- $pctx := . -}}
-{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
-{{- $pages := slice -}}
-{{- if or $.IsHome $.IsSection -}}
-{{- $pages = $pctx.RegularPages -}}
-{{- else -}}
-{{- $pages = $pctx.Pages -}}
-{{- end -}}
-{{- $limit := .Site.Config.Services.RSS.Limit -}}
-{{- if ge $limit 1 -}}
-{{- $pages = $pages | first $limit -}}
-{{- end -}}
-<feed xmlns="http://www.w3.org/2005/Atom">
- <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
- <link href="{{ .Permalink }}feed.xml" rel="self"/>
- <link href="{{ .Permalink }}"/>{{ if not .Date.IsZero }}
- <updated>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>{{end}}
- <id>{{ .Permalink }}</id>{{ with .Site.Author.name }}
- <author>
- <name>{{.}}</name>{{ with $.Site.Author.email }}
- <email>{{.}}</email>{{end}}
- </author>{{end}}
- <generator>Hugo -- gohugo.io</generator>
- {{ range where $pages "Params.hidden" "ne" "true" }}
- <entry>
- {{ `<title type="html"><![CDATA[` | safeHTML }}{{ .Title }}]]></title>
- <link href="{{ .Permalink }}"/>
- <id>{{ .Permalink }}</id>{{ with .Site.Params.Author }}
- <author>
- <name>{{.}}</name>
- </author>{{end}}
- <published>{{ .Date.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</published>
- <updated>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" | safeHTML }}</updated>
- {{ `<content type="html"><![CDATA[` | safeHTML }}{{ .Content }}]]></content>
- </entry>{{ end }}
-</feed>
diff --git a/layouts/index.html b/layouts/index.html
deleted file mode 100644
index 8a7cffa..0000000
--- a/layouts/index.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{{ partial "head" . }}
-
-<header>
- <a href="/"><img id="logo" src="{{ .Site.Params.logo }}" /></a>
- <h1>{{ .Title }}</h1>
-</header>
-<main>
-<p>{{ .Site.Params.intro }}</p>
-<div class="archive">
- <h2>Archive</h2>
- {{ range (where (where .Site.RegularPages "Params.hidden" "ne" "true") "Type" "post").GroupByDate "2006" }}
- <h3 class="archive-title">{{ .Key }}</h3>
- {{ range .Pages }}
- <article class="list-item">
- <a href="{{ .RelPermalink }}" class="list-item-link">{{ .Title }}</a>
- <span class="list-item-date">{{ .Date.Format "January 2, 2006" }}</span>
- </article>
- {{ end }}
- {{ end }}
-</div>
-</main>
-{{ partial "footer" . }}
diff --git a/layouts/index.rss.xml b/layouts/index.rss.xml
deleted file mode 100644
index 849e0f0..0000000
--- a/layouts/index.rss.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-{{- $pctx := . -}}
-{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
-{{- $pages := slice -}}
-{{- if or $.IsHome $.IsSection -}}
-{{- $pages = $pctx.RegularPages -}}
-{{- else -}}
-{{- $pages = $pctx.Pages -}}
-{{- end -}}
-{{- $limit := .Site.Config.Services.RSS.Limit -}}
-{{- if ge $limit 1 -}}
-{{- $pages = $pages | first $limit -}}
-{{- end -}}
-{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
-<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
- <channel>
- <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
- <link>{{ .Permalink }}</link>
- <description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
- <generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
- <language>{{.}}</language>{{end}}{{ with .Site.Author.email }}
- <managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
- <webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
- <copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
- <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
- {{ with .OutputFormats.Get "RSS" }}
- {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
- {{ end }}
- {{ range where $pages "Params.hidden" "ne" "true" }}
- <item>
- <title>{{ .Title }}</title>
- <link>{{ .Permalink }}</link>
- <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
- {{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
- <guid>{{ .Permalink }}</guid>
- <description>{{ .Summary | html }}</description>
- </item>
- {{ end }}
- </channel>
-</rss>
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
deleted file mode 100644
index d0757f3..0000000
--- a/layouts/partials/footer.html
+++ /dev/null
@@ -1,4 +0,0 @@
- <footer>
- {{ .Site.Copyright | safeHTML }}
- </footer>
-</html>
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
deleted file mode 100644
index 6f1549e..0000000
--- a/layouts/partials/head.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<!DOCTYPE html>
-
-<html class="no-js" lang="{{ $.Site.LanguageCode | default "en" }}">
-
-<head>
- <meta charset="utf-8">
- <meta http-equiv="x-ua-compatible" content="ie=edge">
- <title>{{ .Title }} {{ if ne .Title .Site.Title }} &middot; {{ .Site.Title }}{{ end }}</title>
- <meta name="description" content="">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
-
- <link rel="stylesheet" href="/css/normalize.css">
- <link rel="stylesheet" href="/css/main.css">
-{{ with .OutputFormats.Get "rss" -}}
-
-{{ printf ` <link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
-{{ end -}}
-</head>
-
-<body>
-{{ if not .IsHome }}
-<header>
- <a href="/"><img id="logofloat" src="{{ .Site.Params.logo }}" /></a>
-</header>
-{{ end }}
diff --git a/layouts/sitemap.xml b/layouts/sitemap.xml
deleted file mode 100644
index d5ae26e..0000000
--- a/layouts/sitemap.xml
+++ /dev/null
@@ -1,22 +0,0 @@
-{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\" ?>" | safeHTML }}
-<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
- xmlns:xhtml="http://www.w3.org/1999/xhtml">
- {{ range where .Data.Pages "Params.hidden" "ne" "true" }}
- <url>
- <loc>{{ .Permalink }}</loc>{{ if not .Lastmod.IsZero }}
- <lastmod>{{ safeHTML ( .Lastmod.Format "2006-01-02T15:04:05-07:00" ) }}</lastmod>{{ end }}{{ with .Sitemap.ChangeFreq }}
- <changefreq>{{ . }}</changefreq>{{ end }}{{ if ge .Sitemap.Priority 0.0 }}
- <priority>{{ .Sitemap.Priority }}</priority>{{ end }}{{ if .IsTranslated }}{{ range .Translations }}
- <xhtml:link
- rel="alternate"
- hreflang="{{ .Lang }}"
- href="{{ .Permalink }}"
- />{{ end }}
- <xhtml:link
- rel="alternate"
- hreflang="{{ .Lang }}"
- href="{{ .Permalink }}"
- />{{ end }}
- </url>
- {{ end }}
-</urlset>