From d0eedee88eebbf0cd5cc5d1b96587acd748755ff Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Mon, 25 Jul 2022 08:43:06 -0500 Subject: [PATCH] remove theme customizations --- assets/js/custom.js | 13 --- assets/sass/_custom.sass | 72 --------------- assets/sass/_override.sass | 36 -------- layouts/.gitkeep | 0 layouts/_default/single.html | 74 --------------- layouts/partials/footer.html | 14 --- layouts/partials/header.html | 36 -------- layouts/partials/hooks/head-end.html | 9 -- layouts/partials/icons.html | 73 --------------- layouts/partials/post-meta.html | 41 --------- layouts/partials/related.html | 13 --- layouts/partials/sidebar.html | 129 --------------------------- 12 files changed, 510 deletions(-) delete mode 100644 assets/js/custom.js delete mode 100644 assets/sass/_custom.sass delete mode 100644 assets/sass/_override.sass delete mode 100644 layouts/.gitkeep delete mode 100644 layouts/_default/single.html delete mode 100644 layouts/partials/footer.html delete mode 100644 layouts/partials/header.html delete mode 100644 layouts/partials/hooks/head-end.html delete mode 100644 layouts/partials/icons.html delete mode 100644 layouts/partials/post-meta.html delete mode 100644 layouts/partials/related.html delete mode 100644 layouts/partials/sidebar.html diff --git a/assets/js/custom.js b/assets/js/custom.js deleted file mode 100644 index ccf9873..0000000 --- a/assets/js/custom.js +++ /dev/null @@ -1,13 +0,0 @@ -// Make the collapsible content accessible -let myLabels = document.querySelectorAll('.lbl-toggle'); - -Array.from(myLabels).forEach(label => { - label.addEventListener('keydown', e => { - // 32 === spacebar - // 13 === enter - if (e.which === 32 || e.which === 13) { - e.preventDefault(); - label.click(); - }; - }); -}); diff --git a/assets/sass/_custom.sass b/assets/sass/_custom.sass deleted file mode 100644 index 35c305c..0000000 --- a/assets/sass/_custom.sass +++ /dev/null @@ -1,72 +0,0 @@ -// Offset scrolling to compensate for navbar so anchors work correctly -html, body - scroll-padding-top: 4.5rem - -// Impose a max height on the site logo so it doesn't scale and look bad -.nav - &_brand - img - max-height: 2rem - -.sidebar - &_badge - max-height: 8rem - - -// Magic for collapsing content, borrowed from https://www.digitalocean.com/community/tutorials/css-collapsible -.lbl-toggle - display: block - font-size: 125% - cursor: pointer - transition: all 0.25s ease-out - -.lbl-toggle::before - content: ' ' - display: inline-block - border-top: 5px solid transparent - border-bottom: 5px solid transparent - border-left: 5px solid currentColor - verticale-align: middle - margin-right: .7rem - transform: translateY(-2px) - transition: transform .2s ease-out - -.collapsible-content .content-inner - border-bottom-left-radius: 7px - border-bottom-right-radius: 7px - padding: .5rem 1rem - -.collapsible-content - max-height: 0px - overflow: hidden - transition: max-height .25s ease-in-out - -.toggle:checked + .lbl-toggle + .collapsible-content - max-height: 100vh - -.toggle:checked + .lbl-toggle::before - transform: rotate(90deg) translateX(-3px) - -.toggle:checked + .lbl-toggle - border-bottom-right-radius: 0 - border-bottom-left-radius: 0 - -// Make the ToC a bit more compact than other lists -.post_toc - a - color: inherit - ul, ol - padding-top: 0.0rem - padding-left: 0.5rem - padding-bottom: 0.0rem - li - padding-top: 0.01rem - padding-left: 0.5rem - padding-bottom: 0.01rem - font-size: 1rem - -// code overrides -code - word-break: normal - &.noClass - line-break: normal diff --git a/assets/sass/_override.sass b/assets/sass/_override.sass deleted file mode 100644 index cae925a..0000000 --- a/assets/sass/_override.sass +++ /dev/null @@ -1,36 +0,0 @@ -html - code - &.noClass - --inlineColor: hsl(198, 100%, 24%) - background: hsl(198, 0%, 91%) - - .notices - border-radius: 0.5rem - - @mixin darkmode - - &[data-mode="dim"] - @include darkmode - code - &.noClass - --inlineColor: hsl(194, 57%, 71%) - background: hsl(198, 28%, 18%) - .post_content - a - color: hsl(198, 65%, 57%) - .notices - color: var(--light) - &.info - border-color: hsl(198, 100%, 32%) - background: hsl(198, 100%, 24%) - &.warning - border-color: hsl(9, 92%, 50%) - background: hsl(9, 100%, 38%) - &.note - border-color: hsl(46, 100%, 45%) - background: hsl(41, 100%, 36%) - &.tip - border-color: hsl(93, 85%, 32%) - background: hsl(93, 100%, 21%) - - diff --git a/layouts/.gitkeep b/layouts/.gitkeep deleted file mode 100644 index e69de29..0000000 diff --git a/layouts/_default/single.html b/layouts/_default/single.html deleted file mode 100644 index ff49214..0000000 --- a/layouts/_default/single.html +++ /dev/null @@ -1,74 +0,0 @@ -{{- define "main" }} -{{- $s := .Site.Params }} -{{- $p := .Params }} -{{- $ageDays := div (sub now.Unix .Date.Unix) 86400 -}} -{{- $scratch := newScratch }} -{{- if isset $p "image" }} - {{- $scratch.Set "image" $p.image }} -{{- else }} - {{ $scratch.Set "image" $s.fallBackOgImage }} -{{- end }} -{{- $image := $scratch.Get "image" }} -{{- $bg := absLangURL (path.Join "images" $image) }} -
-
- {{- $t := .Title }} -

{{ $t | markdownify }}

- {{- partial "post-meta" . }} - {{- with .Param "lastmod" -}} - {{- $ageDays = div (sub now.Unix .Unix) 86400 -}} - {{- end -}} - {{- if and (gt $ageDays 365) (not $p.timeless) -}} -
{{- T "old_content_label" -}}
- {{- T "old_content_note" -}} -
- {{- end -}} - {{- with .Params.featureImage -}} -
- {{- partial "image" (dict "file" $p.featureImage "alt" $p.featureImageAlt "cap" $p.featureImageCap "type" "featured" "Page" $.Page) }} -
- {{- end -}} - {{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) ($s.toc) }} -
-
- - -
-
- {{ .TableOfContents }} -
-
-
-
- {{ end }} -
- {{- .Content }} -
- - {{- $showRelatedInArticle := true }} - {{- if eq $s.showRelatedInArticle false }} - {{- $showRelatedInArticle = false }} - {{- else if eq $p.showRelatedInArticle false }} - {{- $showRelatedInArticle = false }} - {{- end }} - {{- if ne $showRelatedInArticle false }} - {{- partial "related" . }} - {{- end }} - - {{- $showComments := true }} - {{- if eq $s.comments false }} - {{- $showComments = false }} - {{- else if eq $p.comments false }} - {{- $showComments = false }} - {{- end }} - {{- if ne $showComments false }} - {{- partial "comments" . }} - {{- end }} - {{- partial "i18nlist" . }} - -
- {{- if ( ne $p.sidebar false ) }} - {{- partial "sidebar" . }} - {{ end }} -
-{{- end }} diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html deleted file mode 100644 index 5246027..0000000 --- a/layouts/partials/footer.html +++ /dev/null @@ -1,14 +0,0 @@ -{{- $s := .Site.Params }} -{{ $t := .Site.Title }} -{{- if or .Params.enableMathNotation $s.enableMathNotation }} - {{ partialCached "math" . }} -{{- end }} -{{- $iconsDir := default "icons/" .Site.Params.iconsDir }} -{{- $defaultFooterLogo := printf "%s%s" $iconsDir "apple-touch-icon.png"}} - diff --git a/layouts/partials/header.html b/layouts/partials/header.html deleted file mode 100644 index a348b6e..0000000 --- a/layouts/partials/header.html +++ /dev/null @@ -1,36 +0,0 @@ -{{- $params := .Site.Params }} -{{- $centerLogo := $params.centerLogo }} -{{ $logo := $params.logo }} - diff --git a/layouts/partials/hooks/head-end.html b/layouts/partials/hooks/head-end.html deleted file mode 100644 index 3251b47..0000000 --- a/layouts/partials/hooks/head-end.html +++ /dev/null @@ -1,9 +0,0 @@ - - - \ No newline at end of file diff --git a/layouts/partials/icons.html b/layouts/partials/icons.html deleted file mode 100644 index 749fec3..0000000 --- a/layouts/partials/icons.html +++ /dev/null @@ -1,73 +0,0 @@ - diff --git a/layouts/partials/post-meta.html b/layouts/partials/post-meta.html deleted file mode 100644 index 1b707e9..0000000 --- a/layouts/partials/post-meta.html +++ /dev/null @@ -1,41 +0,0 @@ -{{- $showShare := ne (.Param "showshare") false }} -{{- $showDate := ne (.Param "showdate") false }} -{{- $postDate := .Date.Format (default "Jan 2, 2006" $.Site.Params.dateFormat) }} -{{- $updateDate := .Lastmod.Format (default "Jan 2, 2006" $.Site.Params.dateFormat) }} -{{- $showReadTime := ne (.Param "showreadtime") false }} -{{- $showPostMeta := or ($showShare) ($showDate) ($showReadTime) (isset .Params "tags") }} -{{- $scratch := newScratch }} -{{- $scratch.Set "writeSeparator" false }} -{{- if $showPostMeta }} -
-{{- end }} - {{- if $showDate }} - {{ partial "sprite" (dict "icon" "calendar") }} - - {{- $scratch.Set "writeSeparator" true }} - {{- end }} - {{- if $showReadTime }} - {{ if ($scratch.Get "writeSeparator") }} · {{ end }}{{ T "reading_time" . }} - {{- $scratch.Set "writeSeparator" true }} - {{- end }} - {{- with .Params.tags -}} - - {{- if ($scratch.Get "writeSeparator") }} · {{ end }} - {{- range . }} - {{- $tag := urlize . -}} - - {{- end }} - - {{- $scratch.Set "writeSeparator" true }} - {{- end }} - {{- if $showShare }} - {{ if ($scratch.Get "writeSeparator") }} ·{{ end }}{{ partial "share" . }} - {{- $scratch.Set "writeSeparator" true }} - {{- end }} -{{- if $showPostMeta }} -
-{{- end }} diff --git a/layouts/partials/related.html b/layouts/partials/related.html deleted file mode 100644 index 817047b..0000000 --- a/layouts/partials/related.html +++ /dev/null @@ -1,13 +0,0 @@ -{{ if isset .Params "series" }} -{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }} -{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }} -

{{ T "series_posts" }} {{ .Params.series }}

- -{{ end }} diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html deleted file mode 100644 index cc775e9..0000000 --- a/layouts/partials/sidebar.html +++ /dev/null @@ -1,129 +0,0 @@ -{{ $s := site.Params }} -