diff options
Diffstat (limited to 'layouts/_default')
-rw-r--r-- | layouts/_default/baseof.html | 30 | ||||
-rw-r--r-- | layouts/_default/index.html | 27 | ||||
-rw-r--r-- | layouts/_default/list.html | 26 | ||||
-rw-r--r-- | layouts/_default/list.txt | 7 | ||||
-rw-r--r-- | layouts/_default/rss.xml | 73 | ||||
-rw-r--r-- | layouts/_default/single.html | 13 |
6 files changed, 0 insertions, 176 deletions
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html deleted file mode 100644 index e348fd5e..00000000 --- a/layouts/_default/baseof.html +++ /dev/null @@ -1,30 +0,0 @@ -<!DOCTYPE html> -<html lang="en"> - {{ partial "header/meta" . }} - - {{ $section_class := "mms"}} - {{ if in .Page.Params.categories "star-trek" }} - {{ $section_class = "star-trek" }} - {{ else if in .Page.Params.category "site-info" }} - {{ $section_class = "site-info" }} - {{ else if in .Page.Params.categories "bsd" }} - {{ $section_class = "bsd" }} - {{ else if in .Page.Params.categories "blog" }} - {{ $section_class = "blog" }} - {{ else if in .Page.Params.categories "article" }} - {{ $section_class = "article" }} - {{ else if in .Page.Params.categories "emacs" }} - {{ $section_class = "emacs" }} - {{ else if in .Page.Params.categories "brainrot" }} - {{ $section_class = "brain-rot" }} - {{ end }} - <body class="{{ $section_class }}"> - {{ partial "header/header" . }} - - <main class="right-column"> - {{ block "main" . }} - {{ end }} - </main> - {{ partial "footer/footer" . }} - </body> -</html> diff --git a/layouts/_default/index.html b/layouts/_default/index.html deleted file mode 100644 index dfda0d26..00000000 --- a/layouts/_default/index.html +++ /dev/null @@ -1,27 +0,0 @@ -{{ define "main" }} - -{{ partial "partials/homepage/nav" . }} - -<h2>Recent updates and publications </h2> - -{{ range first 10 -.Site.RegularPages.ByDate.Reverse -}} -{{ partial "partials/article_list_item.html" . }} -{{ end }} -<p> - <a href="/blog/">» Go to blog</a> -</p> - -{{ partial "partials/homepage/brainrot" . }} -{{ partial "partials/homepage/bsd.html" . }} -{{ partial "partials/homepage/emacs.html" . }} -{{ partial "partials/homepage/startrek.html" . }} -{{ partial "partials/homepage/omake.html" . }} -{{ partial "partials/homepage/buttons.html" . }} -{{ partial "partials/homepage/nameplate.html" . }} - -{{ end }} - - - diff --git a/layouts/_default/list.html b/layouts/_default/list.html deleted file mode 100644 index 2b045b82..00000000 --- a/layouts/_default/list.html +++ /dev/null @@ -1,26 +0,0 @@ -{{ define "main" }} - -{{if .Page.Content}} - {{ .Page.Content }} - {{- if .Params.primary_menu }} - {{ partial "single/bottom_nav.html" (dict "menuID" .Page.Params.primary_menu "page" .) }} - {{- end }} - - {{ partial "single/dates.html" . }} -{{ else }} - - {{ if in .Page.Params.Categories "blog" }} - {{ partial "partials/blog_index.html" . }} - {{ else if in .Page.Params.Categories "article" }} - {{ partial "partials/article_index.html" . }} - {{ else }} - - <h2>Articles</h2> - {{ range .Data.Pages }} - {{ partial "partials/article_list_item.html" . }} - {{ end }} - - {{ end }} -{{end}} - -{{ end }} diff --git a/layouts/_default/list.txt b/layouts/_default/list.txt deleted file mode 100644 index 430a2d25..00000000 --- a/layouts/_default/list.txt +++ /dev/null @@ -1,7 +0,0 @@ -{{- range .Pages.GroupBy "Section" }} - {{- with $.Site.GetPage "section" .Key }} - {{- range .Pages }} - {{ .Permalink }} - {{- end }} - {{- end }} -{{- end }} diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml deleted file mode 100644 index 99b99cd3..00000000 --- a/layouts/_default/rss.xml +++ /dev/null @@ -1,73 +0,0 @@ -{{- /* Deprecate site.Author.email in favor of site.Params.author.email */}} -{{- $authorEmail := "" }} -{{- with site.Params.author }} - {{- if reflect.IsMap . }} - {{- with .email }} - {{- $authorEmail = . }} - {{- end }} - {{- end }} -{{- else }} - {{- with site.Author.email }} - {{- $authorEmail = . }} - {{- warnf "The author key in site configuration is deprecated. Use params.author.email instead." }} - {{- end }} -{{- end }} - -{{- /* Deprecate site.Author.name in favor of site.Params.author.name */}} -{{- $authorName := "" }} -{{- with site.Params.author }} - {{- if reflect.IsMap . }} - {{- with .name }} - {{- $authorName = . }} - {{- end }} - {{- else }} - {{- $authorName = . }} - {{- end }} -{{- else }} - {{- with site.Author.name }} - {{- $authorName = . }} - {{- warnf "The author key in site configuration is deprecated. Use params.author.name instead." }} - {{- end }} -{{- end }} - -{{- $pctx := . }} -{{- if .IsHome }}{{ $pctx = .Site }}{{ end }} -{{- $pages := slice }} -{{- if $.IsHome }} -{{- $pages = $pctx.RegularPages}} -{{- else if $.IsSection }} -{{- $pages = $pctx.RegularPagesRecursive}} -{{- 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> - <language>{{ site.Language.LanguageCode }}</language>{{ with $authorEmail }} - <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }} - <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }} - <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }} - <lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.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 $pages.ByPublishDate.Reverse}} - <item> - <title>{{ .Title }}</title> - <link>{{ .Permalink }}</link> - <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> - {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }} - <guid>{{ crypto.MD5 .Date }}</guid> - <description>{{ safeHTML "<![CDATA[" }}{{ replace .Content "\n\n" "\n" | safeHTML }}<hr><p style="font-style:italic">Reply via <a href="https://michal.sapka.me/me/contact/">email</a></p>]]></description> - </item> - {{- end }} - </channel> -</rss> diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index bed5a61b..00000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ define "main" }} - -<article> - {{ .Page.Content }} -</article> - -{{- if .Params.primary_menu }} - {{ partial "single/bottom_nav.html" (dict "menuID" .Page.Params.primary_menu "page" .) }} -{{- end }} - -{{ partial "single/dates.html" . }} - -{{- end }} |