diff options
Diffstat (limited to 'themes/XMin/layouts')
-rw-r--r-- | themes/XMin/layouts/404.html | 5 | ||||
-rw-r--r-- | themes/XMin/layouts/_default/list.html | 20 | ||||
-rw-r--r-- | themes/XMin/layouts/_default/single.html | 10 | ||||
-rw-r--r-- | themes/XMin/layouts/_default/terms.html | 13 | ||||
-rw-r--r-- | themes/XMin/layouts/partials/foot_custom.html | 24 | ||||
-rw-r--r-- | themes/XMin/layouts/partials/footer.html | 16 | ||||
-rw-r--r-- | themes/XMin/layouts/partials/head_custom.html | 0 | ||||
-rw-r--r-- | themes/XMin/layouts/partials/header.html | 20 |
8 files changed, 0 insertions, 108 deletions
diff --git a/themes/XMin/layouts/404.html b/themes/XMin/layouts/404.html deleted file mode 100644 index c2e4e40..0000000 --- a/themes/XMin/layouts/404.html +++ /dev/null @@ -1,5 +0,0 @@ -{{ partial "header.html" . }} - -404 NOT FOUND - -{{ partial "footer.html" . }} diff --git a/themes/XMin/layouts/_default/list.html b/themes/XMin/layouts/_default/list.html deleted file mode 100644 index 2ab6958..0000000 --- a/themes/XMin/layouts/_default/list.html +++ /dev/null @@ -1,20 +0,0 @@ -{{ partial "header.html" . }} - -{{if not .IsHome }} -<h1>{{ .Title | markdownify }}</h1> -{{ end }} - -{{ .Content }} - -<ul> - {{ $pages := .Pages }} - {{ if .IsHome }}{{ $pages = .Site.RegularPages }}{{ end }} - {{ range (where $pages "Section" "!=" "") }} - <li> - <span class="date">{{ .Date.Format "2006/01/02" }}</span> - <a href="{{ .RelPermalink }}">{{ .Title | markdownify }}</a> - </li> - {{ end }} -</ul> - -{{ partial "footer.html" . }}
\ No newline at end of file diff --git a/themes/XMin/layouts/_default/single.html b/themes/XMin/layouts/_default/single.html deleted file mode 100644 index ed638ae..0000000 --- a/themes/XMin/layouts/_default/single.html +++ /dev/null @@ -1,10 +0,0 @@ -{{ partial "header.html" . }} -<div class="article-meta"> -<h1><span class="title">{{ .Title | markdownify }}</span></h1> -</div> - -<main> -{{ .Content }} -</main> - -{{ partial "footer.html" . }} diff --git a/themes/XMin/layouts/_default/terms.html b/themes/XMin/layouts/_default/terms.html deleted file mode 100644 index 71f47e7..0000000 --- a/themes/XMin/layouts/_default/terms.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ partial "header.html" . }} - -<h1>{{ .Title }}</h1> - -<ul class="terms"> - {{ range .Data.Terms }} - <li> - <a href="{{ .Page.RelPermalink }}">{{ .Page.Title }}</a> ({{ .Count }}) - </li> - {{ end }} -</ul> - -{{ partial "footer.html" . }} diff --git a/themes/XMin/layouts/partials/foot_custom.html b/themes/XMin/layouts/partials/foot_custom.html deleted file mode 100644 index 970c41c..0000000 --- a/themes/XMin/layouts/partials/foot_custom.html +++ /dev/null @@ -1,24 +0,0 @@ -{{ if .Param "comments" }} -<h2>comments</h2> -<div style="visibility: hidden" id="comments">comments go here</div> -<div style="visibility: hidden" id="comment_form">comment form goes here</div> -<script> - let comments = document.getElementById("comments"); - let urlParam = new URLSearchParams(); - urlParam.append("url", document.location.href); - fetch(document.location.origin + "/api/comment?" + urlParam.toString()) - .then((response) => response.text()) - .then((data) => { - comments.innerHTML = data; - comments.style.visibility = "visible"; - }); - let form = document.getElementById("comment_form"); - fetch(document.location.origin + "/api/form?" + urlParam.toString()) - .then((response) => response.text()) - .then((data) => { - form.innerHTML = data; - form.style.visibility = "visible"; - }); -</script> -<noscript>Comments disabled without javascript!</noscript> -{{ end }}
\ No newline at end of file diff --git a/themes/XMin/layouts/partials/footer.html b/themes/XMin/layouts/partials/footer.html deleted file mode 100644 index 082588d..0000000 --- a/themes/XMin/layouts/partials/footer.html +++ /dev/null @@ -1,16 +0,0 @@ - <footer> - {{ if or (.Params.author) (gt .Params.lastmod 0) }} - <div class="article-meta"> - {{ with .Params.author }}Author <span class="author">{{ . }}</span><br/>{{ end }} - {{ if (gt .Params.lastmod 0) }}Updated <span class="date">{{ .Lastmod.Format "2006/01/02" }}</span><br/>{{ end }} - </div> - {{ end }} - - {{ partial "foot_custom.html" . }} - {{ with .Site.Params.footer }} - <hr/> - {{ . | markdownify }} - {{ end }} - </footer> - </body> -</html> diff --git a/themes/XMin/layouts/partials/head_custom.html b/themes/XMin/layouts/partials/head_custom.html deleted file mode 100644 index e69de29..0000000 --- a/themes/XMin/layouts/partials/head_custom.html +++ /dev/null diff --git a/themes/XMin/layouts/partials/header.html b/themes/XMin/layouts/partials/header.html deleted file mode 100644 index 4f431eb..0000000 --- a/themes/XMin/layouts/partials/header.html +++ /dev/null @@ -1,20 +0,0 @@ -<!DOCTYPE html> -<html lang="{{ .Site.LanguageCode }}"> - <head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <title>{{ .Title }} | {{ .Site.Title }}</title> - <link rel="stylesheet" href="{{ "/css/style.css" | relURL }}" /> - <link rel="stylesheet" href="{{ "/css/fonts.css" | relURL }}" /> - {{ partial "head_custom.html" . }} - </head> - - <body> - <nav> - <ul class="menu"> - {{ range .Site.Menus.main }} - <li><a href="{{ .URL | relURL }}">{{ .Name }}</a></li> - {{ end }} - </ul> - <hr/> - </nav> |