diff --git a/config.toml b/config.toml index 841d1ea..23d4e28 100644 --- a/config.toml +++ b/config.toml @@ -22,7 +22,7 @@ languageCode = "en-us" title = "Example Site" -baseurl = "http://arcusiridis.com" +baseurl = "https://arcusiridis.com" theme = "Midnight" ##themesDir = "../.." diff --git a/layouts/_default/list.html b/layouts/_default/list.html deleted file mode 100644 index 2fa8652..0000000 --- a/layouts/_default/list.html +++ /dev/null @@ -1,117 +0,0 @@ -{{ define "main_content" }} -
- {{ if or (not .IsHome) (ne .Title .Site.Title) }} - - {{ end }} - {{ with .Params.alert }} -
- {{ . | markdownify }} -
- {{ end }} - {{ partial "content.html" $ }} - {{ if and (not .Params.hide_list) (gt .WordCount 0) }} -
- {{ end }} - - {{ if not .Params.hide_list }} - {{/* If showing nested sections, show those first */}} - {{ if .Params.list_subsections }} - {{ $section := trim .URL "/" }} - {{ range (.Site.GetPage (add "/" $section)).Sections }} - {{ partial "list_item.html" (dict "Page" . "Root" $) }} - {{ end }} - {{ end }} - - {{/* Show normal pages */}} - {{ $index_only := default false .Params.index_only }} - {{ $pages := .Pages }} - - {{ if .IsHome }} - {{ if $.Site.Params.home_section }} - {{ $pages = strings.TrimPrefix "/" $.Site.Params.home_section | where $.Pages "Section" }} - {{ if eq (len $pages) 0 }} - {{ errorf "Section \"%s\" is empty or does not exist" .Site.Params.home_section }} - {{ end }} - {{ else if ($.Site.GetPage "/news") }} - {{ $pages = where .Pages "Section" "news" }} - {{ else if ($.Site.GetPage "/posts") }} - {{ $pages = where .Pages "Section" "posts" }} - {{ else if ($.Site.GetPage "/post") }} - {{ $pages = where .Pages "Section" "post" }} - {{ end }} - {{ end }} - - {{ if or .Params.sort_field .Params.sort_order }} - {{ if in .Params.sort_field "Params." }} - {{ $pages = $pages.ByParam (replace .Params.sort_field "Params." "") }} - {{ else }} - {{/* This long if-chain is necessary because Paginate wants type Pages, not []*Page */}} - {{ $order := lower (default "" .Params.sort_order) }} - {{ $field := lower (default "" .Params.sort_field) }} - {{ if ne $field "" }} - {{ if eq $field "weight" }} - {{ if eq $order "desc" }} - {{ $pages = $pages.ByWeight.Reverse }} - {{ else }} - {{ $pages = $pages.ByWeight }} - {{ end }} - {{ else if eq $field "date" }} - {{ if eq $order "asc" }} - {{ $pages = $pages.ByDate.Reverse }} - {{ else }} - {{ $pages = $pages.ByDate }} - {{ end }} - {{ else if eq $field "publishdate" }} - {{ if eq $order "asc" }} - {{ $pages = $pages.ByPublishDate.Reverse }} - {{ else }} - {{ $pages = $pages.ByPublishDate }} - {{ end }} - {{ else if eq $field "expirydate" }} - {{ if eq $order "asc" }} - {{ $pages = $pages.ByExpiryDate.Reverse }} - {{ else }} - {{ $pages = $pages.ByExpiryDate }} - {{ end }} - {{ else if eq $field "lastmod" }} - {{ if eq $order "asc" }} - {{ $pages = $pages.ByLastmod.Reverse }} - {{ else }} - {{ $pages = $pages.ByLastmod }} - {{ end }} - {{ else if eq $field "length" }} - {{ if eq $order "desc" }} - {{ $pages = $pages.ByLength.Reverse }} - {{ else }} - {{ $pages = $pages.ByLength }} - {{ end }} - {{ else if eq $field "title" }} - {{ if eq $order "desc" }} - {{ $pages = $pages.ByTitle.Reverse }} - {{ else }} - {{ $pages = $pages.ByTitle }} - {{ end }} - {{ else if eq $field "linktitle" }} - {{ if eq $order "desc" }} - {{ $pages = $pages.ByLinkTitle.Reverse }} - {{ else }} - {{ $pages = $pages.ByLinkTitle }} - {{ end }} - {{ end }} - {{ end }} - {{ end }} - {{ end }} - - {{ $paginator := .Paginate $pages }} - {{ range $paginator.Pages }} - {{ if or (not $index_only) (in .File.Path "index.md") }} - {{ partial "list_item.html" (dict "Page" . "Root" $) }} - {{ end }} - {{ end }} - - {{ partial "pagination.html" (dict "Paginator" $paginator "Root" $) }} - {{ end }} -
-{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index 7063c77..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,72 +0,0 @@ -{{ define "main_content" }} -
-
- - {{ with .Params.alert -}} -
- {{ . | markdownify }} -
- {{- end }} -
- {{- if .Params.thumbnail -}} -
- {{ .Title }} -
- {{- end -}} - {{- partial "toc.html" $ -}} - {{ partial "content.html" $ }} -
- {{- partial "pages/authorbox.html" . -}} -
- - {{ partial "next_prev_post.html" . }} - - {{ partial "pages/comments.html" . }} -
-{{ end }} diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html deleted file mode 100644 index 4e4d8f2..0000000 --- a/layouts/_default/taxonomy.html +++ /dev/null @@ -1,16 +0,0 @@ -{{ define "main_content" }} -
- {{- if not .IsHome -}} - - {{- end -}} - {{ partial "content.html" $ }} - {{- if (or (not (isset .Params "hide_list")) (not .Params.hide_list)) -}} - {{- range .Paginator.Pages -}} - {{ partial "list_item.html" (dict "Page" . "Root" $) }} - {{- end -}} - {{ partial "pagination.html" (dict "Paginator" .Paginator "Root" $) }} - {{- end -}} -
-{{- end -}} diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html deleted file mode 100644 index 5d414dd..0000000 --- a/layouts/_default/terms.html +++ /dev/null @@ -1,21 +0,0 @@ -{{ define "main_content" }} -
- - - {{ partial "content.html" $ }} - - -
-{{- end -}}