mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-12-22 19:22:17 +00:00
remove theme customizations
This commit is contained in:
parent
a83bd37ba9
commit
d0eedee88e
12 changed files with 0 additions and 510 deletions
|
@ -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();
|
|
||||||
};
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -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
|
|
|
@ -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%)
|
|
||||||
|
|
||||||
|
|
|
@ -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) }}
|
|
||||||
<div class="{{ if ne $p.singleColumn true }}grid-inverse {{ end }}wrap content">
|
|
||||||
<article class="post_content">
|
|
||||||
{{- $t := .Title }}
|
|
||||||
<h1 class="post_title">{{ $t | markdownify }}</h1>
|
|
||||||
{{- partial "post-meta" . }}
|
|
||||||
{{- with .Param "lastmod" -}}
|
|
||||||
{{- $ageDays = div (sub now.Unix .Unix) 86400 -}}
|
|
||||||
{{- end -}}
|
|
||||||
{{- if and (gt $ageDays 365) (not $p.timeless) -}}
|
|
||||||
<div class="notices info"><div class="label">{{- T "old_content_label" -}}</div>
|
|
||||||
<i>{{- T "old_content_note" -}}</i>
|
|
||||||
</div>
|
|
||||||
{{- end -}}
|
|
||||||
{{- with .Params.featureImage -}}
|
|
||||||
<div class="post_featured">
|
|
||||||
{{- partial "image" (dict "file" $p.featureImage "alt" $p.featureImageAlt "cap" $p.featureImageCap "type" "featured" "Page" $.Page) }}
|
|
||||||
</div>
|
|
||||||
{{- end -}}
|
|
||||||
{{ if and (gt .WordCount 400 ) (gt (len .TableOfContents) 180) ($s.toc) }}
|
|
||||||
<div class="post_toc">
|
|
||||||
<div class="wrap-collapsible">
|
|
||||||
<input id="collapsible" class="toggle" type="checkbox">
|
|
||||||
<label for="collapsible" class="lbl-toggle" tabindex="0">{{ T "overview" }}...</label>
|
|
||||||
<div class="collapsible-content">
|
|
||||||
<div class="content-inner">
|
|
||||||
{{ .TableOfContents }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
<div class="post_body">
|
|
||||||
{{- .Content }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{- $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" . }}
|
|
||||||
|
|
||||||
</article>
|
|
||||||
{{- if ( ne $p.sidebar false ) }}
|
|
||||||
{{- partial "sidebar" . }}
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
|
@ -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"}}
|
|
||||||
<footer class="footer">
|
|
||||||
<div class="footer_inner wrap pale">
|
|
||||||
<img src='{{ absURL (default $defaultFooterLogo $s.footerLogo) }}' class="icon icon_2 transparent" alt="{{ $t }}">
|
|
||||||
<p>{{ T "copyright" | markdownify }}{{ with $s.since }} {{ . }}-{{ end }} <span class="year"></span> {{ $t }}<a rel="me" href="https://counter.social/@john_b">.</a> {{ T "all_rights" | markdownify }}. {{ T "powered_by" | markdownify }} <a href="https://gohugo.io/">Hugo</a>, <a href="https://github.com/chipzoller/hugo-clarity">Hugo Clarity theme</a>, {{ T "and" | markdownify }} <a href="https://www.netlify.com/">Netlify</a>. <a href="https://github.com/jbowdre/virtuallypotato">{{ T "view_source" | markdownify }}</a>.</p>
|
|
||||||
{{- partialCached "top" .}}
|
|
||||||
</div>
|
|
||||||
</footer>
|
|
|
@ -1,36 +0,0 @@
|
||||||
{{- $params := .Site.Params }}
|
|
||||||
{{- $centerLogo := $params.centerLogo }}
|
|
||||||
{{ $logo := $params.logo }}
|
|
||||||
<header class="nav_header" >
|
|
||||||
<nav class="nav">
|
|
||||||
{{- if $centerLogo }}
|
|
||||||
{{- partialCached "logo" (dict "logo" $logo "class" "nav_hide") }}
|
|
||||||
{{- else }}
|
|
||||||
{{- partialCached "logo" (dict "logo" $logo) }}
|
|
||||||
{{- end }}
|
|
||||||
<div class='nav_body nav_body_{{ default "left" $params.mobileNavigation }}'>
|
|
||||||
{{ $context := . }}
|
|
||||||
{{ $menuData := .Site.Data.menu }}
|
|
||||||
{{ with $menuData }}
|
|
||||||
{{ partial "nav" (dict "context" $context "menu" $menuData) }}
|
|
||||||
{{- else }}
|
|
||||||
{{ partial "nav" (dict "context" . "menu" .Site.Menus.main) }}
|
|
||||||
{{- end }}
|
|
||||||
{{ if .Site.IsMultiLingual }}
|
|
||||||
<div class="nav_parent">
|
|
||||||
<a href="#" class="nav_item">{{ $params.languageMenuName }}</a>
|
|
||||||
<div class="nav_sub">
|
|
||||||
<span class="nav_child"></span>
|
|
||||||
{{ range .Site.Home.AllTranslations }}
|
|
||||||
<a href="{{ .Permalink }}" class="nav_child nav_item">{{ .Language.LanguageName }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
||||||
{{- if $centerLogo }}
|
|
||||||
{{- partial "logo" (dict "logo" $logo "class" "nav_center") }}
|
|
||||||
{{- end }}
|
|
||||||
{{- partialCached "follow" . }}
|
|
||||||
</div>
|
|
||||||
</nav>
|
|
||||||
</header>
|
|
|
@ -1,9 +0,0 @@
|
||||||
<!-- Global site tag (gtag.js) - Google Analytics -->
|
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-9D6ZPFJ69V"></script>
|
|
||||||
<script>
|
|
||||||
window.dataLayer = window.dataLayer || [];
|
|
||||||
function gtag(){dataLayer.push(arguments);}
|
|
||||||
gtag('js', new Date());
|
|
||||||
|
|
||||||
gtag('config', 'G-9D6ZPFJ69V');
|
|
||||||
</script>
|
|
|
@ -1,73 +0,0 @@
|
||||||
<svg width="0" height="0" class="hidden">
|
|
||||||
<symbol viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" id="facebook">
|
|
||||||
<path d="M437 0H75C33.648 0 0 33.648 0 75v362c0 41.352 33.648 75 75 75h151V331h-60v-90h60v-61c0-49.629 40.371-90 90-90h91v90h-91v61h91l-15 90h-76v181h121c41.352 0 75-33.648 75-75V75c0-41.352-33.648-75-75-75zm0 0"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18.001 18.001" id="twitter">
|
|
||||||
<path d="M15.891 4.013c.808-.496 1.343-1.173 1.605-2.034a8.68 8.68 0 0 1-2.351.861c-.703-.756-1.593-1.14-2.66-1.14-1.043 0-1.924.366-2.643 1.078a3.56 3.56 0 0 0-1.076 2.605c0 .309.039.585.117.819-3.076-.105-5.622-1.381-7.628-3.837-.34.601-.51 1.213-.51 1.846 0 1.301.549 2.332 1.645 3.089-.625-.053-1.176-.211-1.645-.47 0 .929.273 1.705.82 2.388a3.623 3.623 0 0 0 2.115 1.291c-.312.08-.641.118-.979.118-.312 0-.533-.026-.664-.083.23.757.664 1.371 1.291 1.841a3.652 3.652 0 0 0 2.152.743C4.148 14.173 2.625 14.69.902 14.69c-.422 0-.721-.006-.902-.038 1.697 1.102 3.586 1.649 5.676 1.649 2.139 0 4.029-.542 5.674-1.626 1.645-1.078 2.859-2.408 3.639-3.974a10.77 10.77 0 0 0 1.172-4.892v-.468a7.788 7.788 0 0 0 1.84-1.921 8.142 8.142 0 0 1-2.11.593z"
|
|
||||||
></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol aria-hidden="true" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="mail">
|
|
||||||
<path d="M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="calendar">
|
|
||||||
<path d="M452 40h-24V0h-40v40H124V0H84v40H60C26.916 40 0 66.916 0 100v352c0 33.084 26.916 60 60 60h392c33.084 0 60-26.916 60-60V100c0-33.084-26.916-60-60-60zm20 412c0 11.028-8.972 20-20 20H60c-11.028 0-20-8.972-20-20V188h432v264zm0-304H40v-48c0-11.028 8.972-20 20-20h24v40h40V80h264v40h40V80h24c11.028 0 20 8.972 20 20v48z"></path>
|
|
||||||
<path d="M76 230h40v40H76zm80 0h40v40h-40zm80 0h40v40h-40zm80 0h40v40h-40zm80 0h40v40h-40zM76 310h40v40H76zm80 0h40v40h-40zm80 0h40v40h-40zm80 0h40v40h-40zM76 390h40v40H76zm80 0h40v40h-40zm80 0h40v40h-40zm80 0h40v40h-40zm80-80h40v40h-40z"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="github">
|
|
||||||
<path d="M255.968 5.329C114.624 5.329 0 120.401 0 262.353c0 113.536 73.344 209.856 175.104 243.872 12.8 2.368 17.472-5.568 17.472-12.384 0-6.112-.224-22.272-.352-43.712-71.2 15.52-86.24-34.464-86.24-34.464-11.616-29.696-28.416-37.6-28.416-37.6-23.264-15.936 1.728-15.616 1.728-15.616 25.696 1.824 39.2 26.496 39.2 26.496 22.848 39.264 59.936 27.936 74.528 21.344 2.304-16.608 8.928-27.936 16.256-34.368-56.832-6.496-116.608-28.544-116.608-127.008 0-28.064 9.984-51.008 26.368-68.992-2.656-6.496-11.424-32.64 2.496-68 0 0 21.504-6.912 70.4 26.336 20.416-5.696 42.304-8.544 64.096-8.64 21.728.128 43.648 2.944 64.096 8.672 48.864-33.248 70.336-26.336 70.336-26.336 13.952 35.392 5.184 61.504 2.56 68 16.416 17.984 26.304 40.928 26.304 68.992 0 98.72-59.84 120.448-116.864 126.816 9.184 7.936 17.376 23.616 17.376 47.584 0 34.368-.32 62.08-.32 70.496 0 6.88 4.608 14.88 17.6 12.352C438.72 472.145 512 375.857 512 262.353 512 120.401 397.376 5.329 255.968 5.329z"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 212 212" id="gitlab">
|
|
||||||
<path d="M12.3 74.7h54L43.3 3c-1-3.6-6.4-3.6-7.6 0L12.3 74.8z" />
|
|
||||||
<path d="M12.3 74.7L.5 111c-1 3.2 0 6.8 3 8.8l101.6 74-92.5-119z"/>
|
|
||||||
<path d="M105 193.7l-38.6-119h-54l92.7 119z"/>
|
|
||||||
<path d="M105 193.7l38.7-119H66.4l38.7 119z"/>
|
|
||||||
<path d="M105 193.7l38.7-119H198l-93 119z"/>
|
|
||||||
<path d="M198 74.7l11.6 36.2c1 3 0 6.6-3 8.6l-101.5 74 93-119z"/>
|
|
||||||
<path d="M198 74.7h-54.3L167 3c1.2-3.6 6.4-3.6 7.6 0L198 74.8z"/>
|
|
||||||
</symbol>
|
|
||||||
<symbol viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" id="rss">
|
|
||||||
<circle cx="3.429" cy="20.571" r="3.429"></circle>
|
|
||||||
<path d="M11.429 24h4.57C15.999 15.179 8.821 8.001 0 8v4.572c6.302.001 11.429 5.126 11.429 11.428z"></path>
|
|
||||||
<path d="M24 24C24 10.766 13.234 0 0 0v4.571c10.714 0 19.43 8.714 19.43 19.429z"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" id="linkedin">
|
|
||||||
<path d="M437 0H75C33.648 0 0 33.648 0 75v362c0 41.352 33.648 75 75 75h362c41.352 0 75-33.648 75-75V75c0-41.352-33.648-75-75-75zM181 406h-60V196h60zm0-240h-60v-60h60zm210 240h-60V286c0-16.54-13.46-30-30-30s-30 13.46-30 30v120h-60V196h60v11.309C286.719 202.422 296.93 196 316 196c40.691.043 75 36.547 75 79.688zm0 0"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 612 612" id="to-top">
|
|
||||||
<path d="M604.501 440.509L325.398 134.956c-5.331-5.357-12.423-7.627-19.386-7.27-6.989-.357-14.056 1.913-19.387 7.27L7.499 440.509c-9.999 10.024-9.999 26.298 0 36.323s26.223 10.024 36.222 0l262.293-287.164L568.28 476.832c9.999 10.024 26.222 10.024 36.221 0 9.999-10.023 9.999-26.298 0-36.323z"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg" id="carly">
|
|
||||||
<path d="M504.971 239.029L448 182.059V84c0-46.317-37.682-84-84-84h-44c-13.255 0-24 10.745-24 24s10.745 24 24 24h44c19.851 0 36 16.149 36 36v108c0 6.365 2.529 12.47 7.029 16.971L454.059 256l-47.029 47.029A24.002 24.002 0 0 0 400 320v108c0 19.851-16.149 36-36 36h-44c-13.255 0-24 10.745-24 24s10.745 24 24 24h44c46.318 0 84-37.683 84-84v-98.059l56.971-56.971c9.372-9.372 9.372-24.568 0-33.941zM112 192V84c0-19.851 16.149-36 36-36h44c13.255 0 24-10.745 24-24S205.255 0 192 0h-44c-46.318 0-84 37.683-84 84v98.059l-56.971 56.97c-9.373 9.373-9.373 24.568 0 33.941L64 329.941V428c0 46.317 37.682 84 84 84h44c13.255 0 24-10.745 24-24s-10.745-24-24-24h-44c-19.851 0-36-16.149-36-36V320c0-6.365-2.529-12.47-7.029-16.971L57.941 256l47.029-47.029A24.002 24.002 0 0 0 112 192z"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" id="copy">
|
|
||||||
<path d="M23 2.75A2.75 2.75 0 0 0 20.25 0H8.75A2.75 2.75 0 0 0 6 2.75v13.5A2.75 2.75 0 0 0 8.75 19h11.5A2.75 2.75 0 0 0 23 16.25zM18.25 14.5h-7.5a.75.75 0 0 1 0-1.5h7.5a.75.75 0 0 1 0 1.5zm0-3h-7.5a.75.75 0 0 1 0-1.5h7.5a.75.75 0 0 1 0 1.5zm0-3h-7.5a.75.75 0 0 1 0-1.5h7.5a.75.75 0 0 1 0 1.5z"></path>
|
|
||||||
<path d="M8.75 20.5a4.255 4.255 0 0 1-4.25-4.25V2.75c0-.086.02-.166.025-.25H3.75A2.752 2.752 0 0 0 1 5.25v16A2.752 2.752 0 0 0 3.75 24h12a2.752 2.752 0 0 0 2.75-2.75v-.75z"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512.001 512.001" id="closeme">
|
|
||||||
<path d="M284.286 256.002L506.143 34.144c7.811-7.811 7.811-20.475 0-28.285-7.811-7.81-20.475-7.811-28.285 0L256 227.717 34.143 5.859c-7.811-7.811-20.475-7.811-28.285 0-7.81 7.811-7.811 20.475 0 28.285l221.857 221.857L5.858 477.859c-7.811 7.811-7.811 20.475 0 28.285a19.938 19.938 0 0 0 14.143 5.857 19.94 19.94 0 0 0 14.143-5.857L256 284.287l221.857 221.857c3.905 3.905 9.024 5.857 14.143 5.857s10.237-1.952 14.143-5.857c7.811-7.811 7.811-20.475 0-28.285L284.286 256.002z"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" id="open-menu">
|
|
||||||
<path d="M492 236H20c-11.046 0-20 8.954-20 20s8.954 20 20 20h472c11.046 0 20-8.954 20-20s-8.954-20-20-20zm0-160H20C8.954 76 0 84.954 0 96s8.954 20 20 20h472c11.046 0 20-8.954 20-20s-8.954-20-20-20zm0 320H20c-11.046 0-20 8.954-20 20s8.954 20 20 20h472c11.046 0 20-8.954 20-20s-8.954-20-20-20z"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="instagram">
|
|
||||||
<path d="M12 2.163c3.204 0 3.584.012 4.85.07 3.252.148 4.771 1.691 4.919 4.919.058 1.265.069 1.645.069 4.849 0 3.205-.012 3.584-.069 4.849-.149 3.225-1.664 4.771-4.919 4.919-1.266.058-1.644.07-4.85.07-3.204 0-3.584-.012-4.849-.07-3.26-.149-4.771-1.699-4.919-4.92-.058-1.265-.07-1.644-.07-4.849 0-3.204.013-3.583.07-4.849.149-3.227 1.664-4.771 4.919-4.919 1.266-.057 1.645-.069 4.849-.069zm0-2.163c-3.259 0-3.667.014-4.947.072-4.358.2-6.78 2.618-6.98 6.98-.059 1.281-.073 1.689-.073 4.948 0 3.259.014 3.668.072 4.948.2 4.358 2.618 6.78 6.98 6.98 1.281.058 1.689.072 4.948.072 3.259 0 3.668-.014 4.948-.072 4.354-.2 6.782-2.618 6.979-6.98.059-1.28.073-1.689.073-4.948 0-3.259-.014-3.667-.072-4.947-.196-4.354-2.617-6.78-6.979-6.98-1.281-.059-1.69-.073-4.949-.073zm0 5.838c-3.403 0-6.162 2.759-6.162 6.162s2.759 6.163 6.162 6.163 6.162-2.759 6.162-6.163c0-3.403-2.759-6.162-6.162-6.162zm0 10.162c-2.209 0-4-1.79-4-4 0-2.209 1.791-4 4-4s4 1.791 4 4c0 2.21-1.791 4-4 4zm6.406-11.845c-.796 0-1.441.645-1.441 1.44s.645 1.44 1.441 1.44c.795 0 1.439-.645 1.439-1.44s-.644-1.44-1.439-1.44z"/>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id=youtube>
|
|
||||||
<path d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"/>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="stackoverflow">
|
|
||||||
<path d="M21 27v-8h3v11H0V19h3v8h18z"></path><path d="M17.1.2L15 1.8l7.9 10.6 2.1-1.6L17.1.2zm3.7 14.7L10.6 6.4l1.7-2 10.2 8.5-1.7 2zM7.2 12.3l12 5.6 1.1-2.4-12-5.6-1.1 2.4zm-1.8 6.8l13.56 1.96.17-2.38-13.26-2.55-.47 2.97zM19 25H5v-3h14v3z"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="edit">
|
|
||||||
<path d="M0 0h24v24H0V0z" fill="none"/><path d="m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83a.996.996 0 0 0 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"/>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 511.999 511.999" id="search">
|
|
||||||
<path d="M508.874 478.708L360.142 329.976c28.21-34.827 45.191-79.103 45.191-127.309C405.333 90.917 314.416 0 202.666 0S0 90.917 0 202.667s90.917 202.667 202.667 202.667c48.206 0 92.482-16.982 127.309-45.191l148.732 148.732c4.167 4.165 10.919 4.165 15.086 0l15.081-15.082c4.165-4.166 4.165-10.92-.001-15.085zM202.667 362.667c-88.229 0-160-71.771-160-160s71.771-160 160-160 160 71.771 160 160-71.771 160-160 160z"></path>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" id="xing">
|
|
||||||
<path d="M18.188 0c-.517 0-.741.325-.927.66 0 0-7.455 13.224-7.702 13.657.015.024 4.919 9.023 4.919 9.023.17.308.436.66.967.66h3.454c.211 0 .375-.078.463-.22.089-.151.089-.346-.009-.536l-4.879-8.916c-.004-.006-.004-.016 0-.022L22.139.756c.095-.191.097-.387.006-.535C22.056.078 21.894 0 21.686 0h-3.498zM3.648 4.74c-.211 0-.385.074-.473.216-.09.149-.078.339.02.531l2.34 4.05c.004.01.004.016 0 .021L1.86 16.051c-.099.188-.093.381 0 .529.085.142.239.234.45.234h3.461c.518 0 .766-.348.945-.667l3.734-6.609-2.378-4.155c-.172-.315-.434-.659-.962-.659H3.648v.016z"/>
|
|
||||||
</symbol>
|
|
||||||
<symbol xmlns="http://www.w3.org/2000/svg" viewBox="0 0 71 55" id="discord">
|
|
||||||
<path d="M60.1045 4.8978C55.5792 2.8214 50.7265 1.2916 45.6527 0.41542C45.5603 0.39851 45.468 0.440769 45.4204 0.525289C44.7963 1.6353 44.105 3.0834 43.6209 4.2216C38.1637 3.4046 32.7345 3.4046 27.3892 4.2216C26.905 3.0581 26.1886 1.6353 25.5617 0.525289C25.5141 0.443589 25.4218 0.40133 25.3294 0.41542C20.2584 1.2888 15.4057 2.8186 10.8776 4.8978C10.8384 4.9147 10.8048 4.9429 10.7825 4.9795C1.57795 18.7309 -0.943561 32.1443 0.293408 45.3914C0.299005 45.4562 0.335386 45.5182 0.385761 45.5576C6.45866 50.0174 12.3413 52.7249 18.1147 54.5195C18.2071 54.5477 18.305 54.5139 18.3638 54.4378C19.7295 52.5728 20.9469 50.6063 21.9907 48.5383C22.0523 48.4172 21.9935 48.2735 21.8676 48.2256C19.9366 47.4931 18.0979 46.6 16.3292 45.5858C16.1893 45.5041 16.1781 45.304 16.3068 45.2082C16.679 44.9293 17.0513 44.6391 17.4067 44.3461C17.471 44.2926 17.5606 44.2813 17.6362 44.3151C29.2558 49.6202 41.8354 49.6202 53.3179 44.3151C53.3935 44.2785 53.4831 44.2898 53.5502 44.3433C53.9057 44.6363 54.2779 44.9293 54.6529 45.2082C54.7816 45.304 54.7732 45.5041 54.6333 45.5858C52.8646 46.6197 51.0259 47.4931 49.0921 48.2228C48.9662 48.2707 48.9102 48.4172 48.9718 48.5383C50.038 50.6034 51.2554 52.5699 52.5959 54.435C52.6519 54.5139 52.7526 54.5477 52.845 54.5195C58.6464 52.7249 64.529 50.0174 70.6019 45.5576C70.6551 45.5182 70.6887 45.459 70.6943 45.3942C72.1747 30.0791 68.2147 16.7757 60.1968 4.9823C60.1772 4.9429 60.1437 4.9147 60.1045 4.8978ZM23.7259 37.3253C20.2276 37.3253 17.3451 34.1136 17.3451 30.1693C17.3451 26.225 20.1717 23.0133 23.7259 23.0133C27.308 23.0133 30.1626 26.2532 30.1066 30.1693C30.1066 34.1136 27.28 37.3253 23.7259 37.3253ZM47.3178 37.3253C43.8196 37.3253 40.9371 34.1136 40.9371 30.1693C40.9371 26.225 43.7636 23.0133 47.3178 23.0133C50.9 23.0133 53.7545 26.2532 53.6986 30.1693C53.6986 34.1136 50.9 37.3253 47.3178 37.3253Z"/>
|
|
||||||
</symbol>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 13 KiB |
|
@ -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 }}
|
|
||||||
<div class="post_meta">
|
|
||||||
{{- end }}
|
|
||||||
{{- if $showDate }}
|
|
||||||
<span>{{ partial "sprite" (dict "icon" "calendar") }}</span>
|
|
||||||
<span class="post_date">
|
|
||||||
{{ $postDate -}}{{- if ne $postDate $updateDate }} · <span>{{- partial "sprite" (dict "icon" "edit") -}}</span>{{- $updateDate -}}{{- end }}
|
|
||||||
</span>
|
|
||||||
{{- $scratch.Set "writeSeparator" true }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if $showReadTime }}
|
|
||||||
<span class="post_time">{{ if ($scratch.Get "writeSeparator") }} · {{ end }}{{ T "reading_time" . }}</span>
|
|
||||||
{{- $scratch.Set "writeSeparator" true }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Params.tags -}}
|
|
||||||
<span>
|
|
||||||
{{- if ($scratch.Get "writeSeparator") }} · {{ end }}
|
|
||||||
{{- range . }}
|
|
||||||
{{- $tag := urlize . -}}
|
|
||||||
<a href='{{ absLangURL (printf "tags/%s" $tag) }}' title="{{ . }}" class="post_tag button button_translucent">
|
|
||||||
{{- . }}
|
|
||||||
</a>
|
|
||||||
{{- end }}
|
|
||||||
</span>
|
|
||||||
{{- $scratch.Set "writeSeparator" true }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if $showShare }}
|
|
||||||
<span class="page_only">{{ if ($scratch.Get "writeSeparator") }} ·{{ end }}{{ partial "share" . }}</span>
|
|
||||||
{{- $scratch.Set "writeSeparator" true }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if $showPostMeta }}
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
|
@ -1,13 +0,0 @@
|
||||||
{{ if isset .Params "series" }}
|
|
||||||
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
|
|
||||||
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
|
|
||||||
<h2 class="post_related">{{ T "series_posts" }} {{ .Params.series }}</h2>
|
|
||||||
<ul>
|
|
||||||
{{ range first $relatedLimit $related }}
|
|
||||||
<li><a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a></li>
|
|
||||||
{{ end }}
|
|
||||||
{{ if gt (len $related) $relatedLimit }}
|
|
||||||
<li><a href="/series/{{ lower .Params.series }}/">See all {{ .Params.series }}</a></li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
{{ end }}
|
|
|
@ -1,129 +0,0 @@
|
||||||
{{ $s := site.Params }}
|
|
||||||
<aside class="sidebar">
|
|
||||||
<section class="sidebar_inner">
|
|
||||||
<br>
|
|
||||||
{{ partial "search/widget" . }}
|
|
||||||
{{- $introDescription := $s.introDescription }}
|
|
||||||
{{- with .Params.introDescription }}
|
|
||||||
{{- $introDescription = . }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if $introDescription }}
|
|
||||||
{{- $author := $s.Author }}
|
|
||||||
{{- $showAuthorPhoto := false }}
|
|
||||||
{{- $fullAuthor := reflect.IsMap $author }}
|
|
||||||
{{- if $fullAuthor }}
|
|
||||||
{{- if $author.photo }}
|
|
||||||
{{- $showAuthorPhoto = true }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- if $showAuthorPhoto }}
|
|
||||||
<div class="author_header">
|
|
||||||
<img src="{{ absURL $author.photo }}" alt="{{ $author.name }} photo">
|
|
||||||
<h2>{{ $author.name }}</h2>
|
|
||||||
</div>
|
|
||||||
{{- else }}
|
|
||||||
<h2>{{ if $fullAuthor }}{{ $author.name }}{{ else }}{{ $author }}{{ end }}</h2>
|
|
||||||
{{- end }}
|
|
||||||
<div class="author_bio">
|
|
||||||
{{ markdownify $introDescription }}
|
|
||||||
</div>
|
|
||||||
<div>
|
|
||||||
<a href="https://vexpert.vmware.com/directory/9430"><img class="sidebar_badge" src="/logos/vexpert.png" alt="VMware vExpert"></a>
|
|
||||||
</div>
|
|
||||||
{{- if ( ne $s.introURL false ) }}
|
|
||||||
{{- $r := T "read_more" }}
|
|
||||||
<a href='{{ absLangURL (default "about/" $s.introURL) }}' class="button mt-1" role="button" title='{{ $r }}'>{{ $r }}</a>
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
|
|
||||||
{{ if .Site.Params.sidebardisclaimer }}
|
|
||||||
<div class="sidebardisclaimer">
|
|
||||||
<h2 class="mt-4">Disclaimer</h2>
|
|
||||||
{{ .Site.Params.disclaimerText }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{- $relatedInSidebar := true }}
|
|
||||||
{{- if eq $s.showRelatedInSidebar false }}
|
|
||||||
{{ $relatedInSidebar = false }}
|
|
||||||
{{- end }}
|
|
||||||
{{ if (and ($relatedInSidebar) (isset .Params "series") ) }}
|
|
||||||
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
|
|
||||||
{{- $relatedLimit := default 8 $s.numberOfRelatedPosts }}
|
|
||||||
<h2 class="mt-4">{{ T "series_posts" }} {{ .Params.series }}</h2>
|
|
||||||
<ul>
|
|
||||||
{{ range first $relatedLimit $related }}
|
|
||||||
<li>
|
|
||||||
<a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a>
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
|
||||||
{{ if gt (len $related) $relatedLimit }}
|
|
||||||
<li>
|
|
||||||
<a href="/series/{{ lower .Params.series }}/">See all {{ .Params.series }}</a>
|
|
||||||
</li>
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
{{- $posts := where (where .Site.RegularPages "Permalink" "!=" .Permalink) "Type" "in" $s.mainSections }}
|
|
||||||
{{- $featured := default 8 $s.numberOfFeaturedPosts }}
|
|
||||||
{{- with first $featured (where $posts "Params.featured" true)}}
|
|
||||||
<h2 class="mt-4">{{ T "featured_posts" }}</h2>
|
|
||||||
<ul>
|
|
||||||
{{- range . }}
|
|
||||||
<li>
|
|
||||||
<a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title | markdownify }}</a>
|
|
||||||
</li>
|
|
||||||
{{- end }}
|
|
||||||
</ul>
|
|
||||||
{{- end }}
|
|
||||||
<h2 class="mt-4">{{ T "recent_posts" }}</h2>
|
|
||||||
<ul class="flex-column">
|
|
||||||
{{- $recent := default 8 $s.numberOfRecentPosts }}
|
|
||||||
{{- range first $recent $posts }}
|
|
||||||
<li>
|
|
||||||
<a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title | markdownify }}</a>
|
|
||||||
</li>
|
|
||||||
{{- end }}
|
|
||||||
</ul>
|
|
||||||
{{- $tagsLimit := (default 100 $s.numberOfTagsShown) }}
|
|
||||||
{{- range $key, $value := .Site.Taxonomies }}
|
|
||||||
{{- if gt $value 0 }}
|
|
||||||
<div>
|
|
||||||
<h2 class="mt-4 taxonomy" id="{{ $key }}-section">{{ T $key }}</h2>
|
|
||||||
<nav class="tags_nav">
|
|
||||||
{{- $onPageTags := $.Page.Params.tags }}
|
|
||||||
{{- $slicedTags := ($value.ByCount | first $tagsLimit) }}
|
|
||||||
{{- range $slicedTags }}
|
|
||||||
<a href='{{ absLangURL $key }}/{{ (replace .Name "#" "%23") | urlize }}/' class="post_tag button button_translucent" title="{{ .Name }}">
|
|
||||||
{{ upper .Name }}
|
|
||||||
<span class="button_tally">{{ .Count }}</span>
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
{{ if gt (len $value.ByCount) $tagsLimit }}
|
|
||||||
<br>
|
|
||||||
<div class="post_tags_toggle button">{{ T (printf "all_%s" (lower $key)) }}</div>
|
|
||||||
{{- $tagsInfo := newScratch }}
|
|
||||||
<div class="post_tags">
|
|
||||||
<div class="tags_list">
|
|
||||||
{{- range $value.Alphabetical }}
|
|
||||||
{{ $tagsInfo.Add "tagsInfo" (slice .Name .Count)}}
|
|
||||||
<a href='{{ absLangURL $key }}/{{ (replace .Name "#" "%23") | urlize }}/' class=" post_tag button button_translucent" data-position={{ .Count }} title="{{ .Name }}">
|
|
||||||
{{- upper .Name -}}
|
|
||||||
<span class="button_tally">{{ .Count }}</span>
|
|
||||||
</a>
|
|
||||||
{{ end }}
|
|
||||||
<div class="tags_sort"><span title="sort alphabetically">[A~Z]</span><span title="sort by count">[0~9]</span>
|
|
||||||
</div>
|
|
||||||
<span class="tags_hide"><svg class="icon">
|
|
||||||
<use xlink:href="#closeme"></use>
|
|
||||||
</svg></span>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
||||||
</nav>
|
|
||||||
</div>
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
</section>
|
|
||||||
</aside>
|
|
Loading…
Reference in a new issue