diff options
author | Christoph Cullmann <cullmann@kde.org> | 2022-10-21 21:01:11 +0200 |
---|---|---|
committer | Christoph Cullmann <cullmann@kde.org> | 2022-10-21 21:01:11 +0200 |
commit | 582a8a33aff644a6b07534aaf677973abc6f154c (patch) | |
tree | 069a34670b1b91041ef9f3fcb73192dd05c60963 /themes/LoveIt/layouts/_default | |
parent | 038eabdda56dbfdbbba4328ac035cc4d77e8d80d (diff) |
use different theme that is a lot slimer
Diffstat (limited to 'themes/LoveIt/layouts/_default')
-rw-r--r-- | themes/LoveIt/layouts/_default/_markup/render-image.html | 10 | ||||
-rw-r--r-- | themes/LoveIt/layouts/_default/_markup/render-link.html | 6 | ||||
-rw-r--r-- | themes/LoveIt/layouts/_default/baseof.html | 48 | ||||
-rw-r--r-- | themes/LoveIt/layouts/_default/section.html | 36 | ||||
-rw-r--r-- | themes/LoveIt/layouts/_default/single.html | 24 | ||||
-rw-r--r-- | themes/LoveIt/layouts/_default/single.md | 3 | ||||
-rw-r--r-- | themes/LoveIt/layouts/_default/summary.html | 75 |
7 files changed, 0 insertions, 202 deletions
diff --git a/themes/LoveIt/layouts/_default/_markup/render-image.html b/themes/LoveIt/layouts/_default/_markup/render-image.html deleted file mode 100644 index b92397e..0000000 --- a/themes/LoveIt/layouts/_default/_markup/render-image.html +++ /dev/null @@ -1,10 +0,0 @@ -{{- if .Title -}} - <figure> - {{- dict "Src" .Destination "Title" .Text "Caption" .Title "Linked" true "Resources" .Page.Resources | partial "plugin/img.html" -}} - <figcaption class="image-caption"> - {{- .Title | safeHTML -}} - </figcaption> - </figure> -{{- else -}} - {{- dict "Src" .Destination "Title" .Text "Resources" .Page.Resources | partial "plugin/img.html" -}} -{{- end -}} diff --git a/themes/LoveIt/layouts/_default/_markup/render-link.html b/themes/LoveIt/layouts/_default/_markup/render-link.html deleted file mode 100644 index f10d441..0000000 --- a/themes/LoveIt/layouts/_default/_markup/render-link.html +++ /dev/null @@ -1,6 +0,0 @@ -{{- $destination := .Destination -}} -{{- with dict "Path" $destination "Resources" .Page.Resources | partial "function/resource.html" -}} - {{- $destination = .RelPermalink -}} -{{- end -}} -{{- $options := dict "Destination" $destination "Title" .Title "Content" .Text -}} -{{- partial "plugin/a.html" $options -}} diff --git a/themes/LoveIt/layouts/_default/baseof.html b/themes/LoveIt/layouts/_default/baseof.html deleted file mode 100644 index 66a6c3c..0000000 --- a/themes/LoveIt/layouts/_default/baseof.html +++ /dev/null @@ -1,48 +0,0 @@ -{{- partial "init.html" . -}} - -<!DOCTYPE html> -<html lang="{{ .Site.LanguageCode }}"> - <head> - <meta charset="utf-8"> - <meta name="viewport" content="width=device-width, initial-scale=1"> - <meta name="robots" content="noodp" /> - <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title> - - {{- partial "head/meta.html" . -}} - {{- partial "head/link.html" . -}} - {{- partial "head/seo.html" . -}} - </head> - <body data-header-desktop="{{ .Site.Params.header.desktopMode }}" data-header-mobile="{{ .Site.Params.header.mobileMode }}"> - {{- /* Check theme isDark before body rendering */ -}} - {{- $theme := .Site.Params.defaulttheme -}} - <script type="text/javascript">(window.localStorage && localStorage.getItem('theme') ? localStorage.getItem('theme') === 'dark' : ('{{ $theme }}' === 'auto' ? window.matchMedia('(prefers-color-scheme: dark)').matches : '{{ $theme }}' === 'dark')) && document.body.setAttribute('theme', 'dark');</script> - - <div id="mask"></div> - - {{- /* Body wrapper */ -}} - <div class="wrapper"> - {{- partial "header.html" . -}} - <main class="main"> - <div class="container"> - {{- block "content" . }}{{ end -}} - </div> - </main> - {{- partial "footer.html" . -}} - </div> - - <div id="fixed-buttons"> - {{- /* top button */ -}} - <a href="#" id="back-to-top" class="fixed-button" title="{{ T `backToTop` }}"> - <i class="fas fa-arrow-up fa-fw" aria-hidden="true"></i> - </a> - - {{- /* comment button */ -}} - <a href="#" id="view-comments" class="fixed-button" title="{{ T `viewComments` }}"> - <i class="fas fa-comment fa-fw" aria-hidden="true"></i> - </a> - </div> - - {{- /* Load JavaScript scripts and CSS */ -}} - {{- partial "assets.html" . -}} - </body> -</html> diff --git a/themes/LoveIt/layouts/_default/section.html b/themes/LoveIt/layouts/_default/section.html deleted file mode 100644 index 2775891..0000000 --- a/themes/LoveIt/layouts/_default/section.html +++ /dev/null @@ -1,36 +0,0 @@ -{{- define "title" }} - {{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" }} - {{ .Site.Title -}} -{{- end -}} - -{{- define "content" -}} - <div class="page archive"> - {{- /* Title */ -}} - <h2 class="single-title animate__animated animate__pulse animate__faster"> - {{- .Params.Title | default (T .Section) | default .Section | dict "Some" | T "allSome" -}} - </h2> - - {{- /* Paginate */ -}} - {{- if .Pages -}} - {{- $pages := .Pages.GroupByDate "2006" -}} - {{- with .Site.Params.section.paginate | default .Site.Params.paginate -}} - {{- $pages = $.Paginate $pages . -}} - {{- else -}} - {{- $pages = .Paginate $pages -}} - {{- end -}} - {{- range $pages.PageGroups -}} - <h3 class="group-title">{{ .Key }}</h3> - {{- range .Pages -}} - <article class="archive-item"> - <a href="{{ .RelPermalink }}" class="archive-item-link"> - {{- .Title | emojify -}} - </a> - <span class="archive-item-date"> - {{- $.Site.Params.section.dateFormat | default "01-02" | .Date.Format -}} - </span> - </article> - {{- end -}} - {{- end -}} - {{- partial "paginator.html" . -}} - {{- end -}} - </div> -{{- end -}} diff --git a/themes/LoveIt/layouts/_default/single.html b/themes/LoveIt/layouts/_default/single.html deleted file mode 100644 index f8f72d7..0000000 --- a/themes/LoveIt/layouts/_default/single.html +++ /dev/null @@ -1,24 +0,0 @@ -{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}} - -{{- define "content" -}} - {{- $params := .Scratch.Get "params" -}} - <div class="page single special"> - {{- /* Title */ -}} - <h1 class="single-title animate__animated animate__pulse animate__faster"> - {{- .Title -}} - </h1> - - {{- /* Subtitle */ -}} - {{- with $params.subtitle -}} - <h2 class="single-subtitle">{{ . }}</h2> - {{- end -}} - - {{- /* Content */ -}} - <div class="content" id="content"> - {{- dict "Content" .Content "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}} - </div> - - {{- /* Comment */ -}} - {{- partial "comment.html" . -}} - </div> -{{- end -}} diff --git a/themes/LoveIt/layouts/_default/single.md b/themes/LoveIt/layouts/_default/single.md deleted file mode 100644 index e34c2d4..0000000 --- a/themes/LoveIt/layouts/_default/single.md +++ /dev/null @@ -1,3 +0,0 @@ -# {{ .Title }} - -{{ .RawContent }} diff --git a/themes/LoveIt/layouts/_default/summary.html b/themes/LoveIt/layouts/_default/summary.html deleted file mode 100644 index 7169220..0000000 --- a/themes/LoveIt/layouts/_default/summary.html +++ /dev/null @@ -1,75 +0,0 @@ -{{- $params := .Params | merge .Site.Params.page -}} - -<article class="single summary" itemscope itemtype="http://schema.org/Article"> - {{- /* Featured image */ -}} - {{- $image := $params.featuredimagepreview | default $params.featuredimage -}} - {{- with .Resources.GetMatch "featured-image" -}} - {{- $image = .RelPermalink -}} - {{- end -}} - {{- with .Resources.GetMatch "featured-image-preview" -}} - {{- $image = .RelPermalink -}} - {{- end -}} - {{- with $image -}} - <div class="featured-image-preview"> - <a href="{{ $.RelPermalink }}"> - {{- dict "Src" . "Title" $.Description "Resources" $.Resources | partial "plugin/img.html" -}} - </a> - </div> - {{- end -}} - - {{- /* Title */ -}} - <h1 class="single-title" itemprop="name headline"> - <a href="{{ .RelPermalink }}">{{ .Title | emojify }}</a> - </h1> - - {{- /* Meta */ -}} - <div class="post-meta"> - {{- $author := $params.author | default .Site.Author.name | default (T "author") -}} - {{- $authorLink := $params.authorlink | default .Site.Author.link | default .Site.Home.RelPermalink -}} - <span class="post-author"> - {{- $options := dict "Class" "author" "Destination" $authorLink "Title" "Author" "Rel" "author" "Icon" (dict "Class" "fas fa-user-circle fa-fw") "Content" $author -}} - {{- partial "plugin/a.html" $options -}} - </span> - - {{- with .Site.Params.dateFormat | default "2006-01-02" | .PublishDate.Format -}} - <span class="post-publish"> - {{- printf `<time datetime="%v">%v</time>` . . | dict "Date" | T "publishedOnDate" | safeHTML -}} - </span> - {{- end -}} - - {{- $categories := slice -}} - {{- range .Params.categories -}} - {{- $category := partialCached "function/path.html" . . | printf "/categories/%v" | $.Site.GetPage -}} - {{- $categories = $categories | append (printf `<a href="%v"><i class="far fa-folder fa-fw" aria-hidden="true"></i>%v</a>` $category.RelPermalink $category.Title) -}} - {{- end -}} - {{- with delimit $categories " " -}} - <span class="post-category"> - {{- dict "Categories" . | T "includedInCategories" | safeHTML -}} - </span> - {{- end -}} - </div> - - {{- /* Summary content */ -}} - <div class="content"> - {{- with .Summary -}} - {{- dict "Content" . "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}} - {{- else -}} - {{- .Description | safeHTML -}} - {{- end -}} - </div> - - {{- /* Footer */ -}} - <div class="post-footer"> - <a href="{{ .RelPermalink }}">{{ T "readMore" }}</a> - {{- with .Params.tags -}} - <div class="post-tags"> - <i class="fas fa-tags fa-fw" aria-hidden="true"></i> - {{- range $index, $value := . -}} - {{- if gt $index 0 }}, {{ end -}} - {{- $tag := partialCached "function/path.html" $value $value | printf "/tags/%v" | $.Site.GetPage -}} - <a href="{{ $tag.RelPermalink }}">{{ $tag.Title }}</a> - {{- end -}} - </div> - {{- end -}} - </div> -</article>
\ No newline at end of file |