diff options
Diffstat (limited to 'themes/CodeIT/layouts/_default')
-rw-r--r-- | themes/CodeIT/layouts/_default/_markup/render-image.html | 10 | ||||
-rw-r--r-- | themes/CodeIT/layouts/_default/_markup/render-link.html | 6 | ||||
-rw-r--r-- | themes/CodeIT/layouts/_default/baseof.html | 52 | ||||
-rw-r--r-- | themes/CodeIT/layouts/_default/section.html | 36 | ||||
-rw-r--r-- | themes/CodeIT/layouts/_default/single.html | 53 | ||||
-rw-r--r-- | themes/CodeIT/layouts/_default/single.md | 3 | ||||
-rw-r--r-- | themes/CodeIT/layouts/_default/summary.html | 75 |
7 files changed, 0 insertions, 235 deletions
diff --git a/themes/CodeIT/layouts/_default/_markup/render-image.html b/themes/CodeIT/layouts/_default/_markup/render-image.html deleted file mode 100644 index a79cddf..0000000 --- a/themes/CodeIT/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/image.html" -}} - <figcaption class="image-caption"> - {{- .Title | safeHTML -}} - </figcaption> - </figure> -{{- else -}} - {{- dict "Src" .Destination "Title" .Text "Resources" .Page.Resources | partial "plugin/image.html" -}} -{{- end -}} diff --git a/themes/CodeIT/layouts/_default/_markup/render-link.html b/themes/CodeIT/layouts/_default/_markup/render-link.html deleted file mode 100644 index 0c05396..0000000 --- a/themes/CodeIT/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/link.html" $options -}} diff --git a/themes/CodeIT/layouts/_default/baseof.html b/themes/CodeIT/layouts/_default/baseof.html deleted file mode 100644 index 804bb28..0000000 --- a/themes/CodeIT/layouts/_default/baseof.html +++ /dev/null @@ -1,52 +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" /> - <meta http-equiv="X-UA-Compatible" content="IE=edge, chrome=1"> - <title> - {{- block "title" . }}{{ .Site.Title }}{{ end -}} - </title> - - {{- partial "head/meta.html" . -}} - {{- partial "head/link.html" . -}} - {{- partial "head/seo.html" . -}} - </head> - <body header-desktop="{{ .Site.Params.header.desktopMode }}" header-mobile="{{ .Site.Params.header.mobileMode }}"> - {{- /* Check theme isDark before body rendering */ -}} - {{- $theme := .Site.Params.defaulttheme -}} - {{- $cookieConsentEnabled := .Site.Params.cookieconsent.enable -}} - <script type="text/javascript">('{{ $cookieConsentEnabled }}' === 'true' && 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"></i> - </a> - - {{- /* comment button */ -}} - <a href="#" id="view-comments" class="fixed-button" title="{{ T `viewComments` }}"> - <i class="fas fa-comment fa-fw"></i> - </a> - </div> - - {{- /* Load JavaScript scripts and CSS */ -}} - {{- partial "assets.html" . -}} - </body> -</html> diff --git a/themes/CodeIT/layouts/_default/section.html b/themes/CodeIT/layouts/_default/section.html deleted file mode 100644 index 5694317..0000000 --- a/themes/CodeIT/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 animated pulse 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 -}} - </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/CodeIT/layouts/_default/single.html b/themes/CodeIT/layouts/_default/single.html deleted file mode 100644 index 8861185..0000000 --- a/themes/CodeIT/layouts/_default/single.html +++ /dev/null @@ -1,53 +0,0 @@ -{{- define "title" }}{{ .Title }} - {{ .Site.Title }}{{ end -}} - -{{- define "content" -}} - {{- $params := .Scratch.Get "params" -}} - - {{- $toc := $params.toc -}} - {{- if eq $toc true -}} - {{- $toc = .Site.Params.page.toc | default dict -}} - {{- else if eq $toc false -}} - {{- $toc = dict "enable" false -}} - {{- end -}} - - {{- /* Auto TOC */ -}} - {{- if ne $toc.enable false -}} - <div class="toc" id="toc-auto"> - <h2 class="toc-title">{{ T "contents" }}</h2> - <div class="toc-content{{ if eq $toc.auto false }} always-active{{ end }}" id="toc-content-auto"></div> - </div> - {{- end -}} - - <div class="page single special"> - {{- /* Title */ -}} - <h1 class="single-title animated pulse faster"> - {{- .Title -}} - </h1> - - {{- /* Subtitle */ -}} - {{- with $params.subtitle -}} - <h2 class="single-subtitle">{{ . }}</h2> - {{- end -}} - - {{- /* Static TOC */ -}} - {{- if ne $toc.enable false -}} - <div class="details toc" id="toc-static" kept="{{ if $toc.keepStatic }}true{{ end }}"> - <div class="details-summary toc-title"> - <span>{{ T "contents" }}</span> - <span><i class="details-icon fas fa-angle-right"></i></span> - </div> - <div class="details-content toc-content" id="toc-content-static"> - {{- dict "Content" .TableOfContents "Ruby" $params.ruby "Fraction" $params.fraction "Fontawesome" $params.fontawesome | partial "function/content.html" | safeHTML -}} - </div> - </div> - {{- 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/CodeIT/layouts/_default/single.md b/themes/CodeIT/layouts/_default/single.md deleted file mode 100644 index e34c2d4..0000000 --- a/themes/CodeIT/layouts/_default/single.md +++ /dev/null @@ -1,3 +0,0 @@ -# {{ .Title }} - -{{ .RawContent }} diff --git a/themes/CodeIT/layouts/_default/summary.html b/themes/CodeIT/layouts/_default/summary.html deleted file mode 100644 index 990b6a9..0000000 --- a/themes/CodeIT/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/image.html" -}} - </a> - </div> - {{- end -}} - - {{- /* Title */ -}} - <h1 class="single-title" itemprop="name headline"> - <a href="{{ .RelPermalink }}">{{ .Title }}</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/link.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"></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"></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 |