aboutsummaryrefslogtreecommitdiff
path: root/www/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'www/layouts/partials')
-rw-r--r--www/layouts/partials/css-res.html9
-rw-r--r--www/layouts/partials/css.html1
-rw-r--r--www/layouts/partials/date.html1
-rw-r--r--www/layouts/partials/highlight.html6
-rw-r--r--www/layouts/partials/js.html11
-rw-r--r--www/layouts/partials/nav.html6
-rw-r--r--www/layouts/partials/preview/article.html10
-rw-r--r--www/layouts/partials/preview/post.html7
-rw-r--r--www/layouts/partials/preview/posts.html7
9 files changed, 0 insertions, 58 deletions
diff --git a/www/layouts/partials/css-res.html b/www/layouts/partials/css-res.html
deleted file mode 100644
index 6fabf67..0000000
--- a/www/layouts/partials/css-res.html
+++ /dev/null
@@ -1,9 +0,0 @@
-{{ with . | minify }}
- {{ if hugo.IsProduction }}
- {{ with . | fingerprint }}
- <link href="{{ .RelPermalink }}" rel="stylesheet" integrity="{{ .Data.Integrity }}">
- {{ end }}
- {{ else }}
- <link href="{{ .RelPermalink }}" rel="stylesheet">
- {{ end }}
-{{ end }}
diff --git a/www/layouts/partials/css.html b/www/layouts/partials/css.html
deleted file mode 100644
index 12d3353..0000000
--- a/www/layouts/partials/css.html
+++ /dev/null
@@ -1 +0,0 @@
-{{ partial "css-res.html" (resources.Get .) }} \ No newline at end of file
diff --git a/www/layouts/partials/date.html b/www/layouts/partials/date.html
deleted file mode 100644
index 9769e4e..0000000
--- a/www/layouts/partials/date.html
+++ /dev/null
@@ -1 +0,0 @@
-<time datetime="{{ . | time.Format "RFC3339"}}">{{ . | time.Format ":date_medium" }}</time> \ No newline at end of file
diff --git a/www/layouts/partials/highlight.html b/www/layouts/partials/highlight.html
deleted file mode 100644
index 28c510e..0000000
--- a/www/layouts/partials/highlight.html
+++ /dev/null
@@ -1,6 +0,0 @@
-{{ $light := resources.Get "res/css/catppuccin-latte.css" }}
-{{ $dark := resources.Get "res/css/catppuccin-mocha.css" }}
-{{ $dark_wrapper_before := resources.FromString "highlight-dark-wapper-before.css" `html[data-theme="dark"] {`}}}
-{{ $dark_wrapper_after := resources.FromString "highlight-dark-wapper-after.css" "}"}}
-{{ $highlight := slice $light $dark_wrapper_before $dark $dark_wrapper_after | resources.Concat "res/css/highlight.css" }}
-{{ return $highlight }}
diff --git a/www/layouts/partials/js.html b/www/layouts/partials/js.html
deleted file mode 100644
index 16dafa4..0000000
--- a/www/layouts/partials/js.html
+++ /dev/null
@@ -1,11 +0,0 @@
-{{ with resources.Get . }}
- {{ if hugo.IsProduction }}
- {{ with . | js.Build (dict "minify" true "sourceMap" "external") | fingerprint }}
- <script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}"></script>
- {{ end }}
- {{ else }}
- {{ with . | js.Build }}
- <script src="{{ .RelPermalink }}"></script>
- {{ end }}
- {{ end }}
-{{ end }}
diff --git a/www/layouts/partials/nav.html b/www/layouts/partials/nav.html
deleted file mode 100644
index 42c9ad1..0000000
--- a/www/layouts/partials/nav.html
+++ /dev/null
@@ -1,6 +0,0 @@
-<nav class="mono">
- {{ range .Ancestors.Reverse }}
- <a class="mono-link" href="{{ .RelPermalink }}">{{ lower .Title }}</a> >
- {{ end }}
- this
-</nav>
diff --git a/www/layouts/partials/preview/article.html b/www/layouts/partials/preview/article.html
deleted file mode 100644
index 6245434..0000000
--- a/www/layouts/partials/preview/article.html
+++ /dev/null
@@ -1,10 +0,0 @@
-<section class="article-preview">
- <span class="date">{{ .date | time.Format ":date_medium" }}</span>
- {{ (printf `<%[1]s class="title"><a href="%s">%s</a></%[1]s>` .h .link .title) | safeHTML }}
- <p class="content">
- {{ range split .content "\n" | first 5 }}
- {{ . | htmlUnescape }}<br/>
- {{ end }}
- </p>
- <p>... <a class="mono-link" href="{{ .link }}">Read more</a></p>
-</section>
diff --git a/www/layouts/partials/preview/post.html b/www/layouts/partials/preview/post.html
deleted file mode 100644
index f0c6fb5..0000000
--- a/www/layouts/partials/preview/post.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ partial "preview/article.html" (dict
- "h" .h
- "title" .page.Title
- "link" .page.RelPermalink
- "content" .page.Plain
- "date" .page.Date)
-}}
diff --git a/www/layouts/partials/preview/posts.html b/www/layouts/partials/preview/posts.html
deleted file mode 100644
index f2cb640..0000000
--- a/www/layouts/partials/preview/posts.html
+++ /dev/null
@@ -1,7 +0,0 @@
-{{ $h := .h }}
-{{ range .pages }}
- {{ partial "preview/post.html" (dict
- "h" $h
- "page" .)
- }}
-{{ end }} \ No newline at end of file