repair the theme toggle, some cleanup
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
720c64a9e4
commit
8835de07aa
49
config.yml
49
config.yml
@ -26,22 +26,21 @@ params:
|
||||
env: production # to enable google analytics, opengraph, twitter-cards and schema.
|
||||
title: Agile Führung von Engineering Teams
|
||||
description: "Agile Führung von Engineering Teams"
|
||||
keywords: [Blog, Portfolio, PaperMod]
|
||||
keywords: [Agilität, Führung, Portfolio, Leadership, Engineering, Engineering Management, Engineering Teams]
|
||||
author: Stan Nowogrudski
|
||||
# author: ["Me", "You"] # multiple authors
|
||||
images: ["/favicon-32x32.png", "/apple-icon-60x60.png"]
|
||||
DateFormat: "2 January, 2006"
|
||||
defaultTheme: auto # dark, light
|
||||
disableThemeToggle: false
|
||||
|
||||
ShowReadingTime: true
|
||||
ShowShareButtons: false
|
||||
ShowShareButtons: true
|
||||
ShowPostNavLinks: true
|
||||
ShowBreadCrumbs: true
|
||||
ShowCodeCopyButtons: false
|
||||
disableSpecial1stPost: false
|
||||
ShowCodeCopyButtons: true
|
||||
disableSpecial1stPost: true
|
||||
disableScrollToTop: false
|
||||
comments: true
|
||||
comments: false
|
||||
hidemeta: false
|
||||
hideSummary: false
|
||||
showtoc: false
|
||||
@ -61,21 +60,6 @@ params:
|
||||
icon: /IMG_6308_510px.png
|
||||
iconHeight: 36
|
||||
|
||||
# profile-mode
|
||||
profileMode:
|
||||
enabled: false # needs to be explicitly set
|
||||
title: ExampleSite
|
||||
subtitle: "This is subtitle"
|
||||
imageUrl: "<img location>"
|
||||
imageWidth: 120
|
||||
imageHeight: 120
|
||||
imageTitle: my image
|
||||
buttons:
|
||||
- name: Posts
|
||||
url: posts
|
||||
- name: Tags
|
||||
url: tags
|
||||
|
||||
# home-info mode
|
||||
homeInfoParams:
|
||||
Title: "Agile Führung von Engineering Teams \U0001F44B"
|
||||
@ -85,15 +69,7 @@ params:
|
||||
- name: github
|
||||
url: "https://github.com/poweronoff"
|
||||
- name: linkedin
|
||||
url: "https://www.linkedin.com/in/stan-nowogrudski-53aab1169/"
|
||||
|
||||
analytics:
|
||||
google:
|
||||
SiteVerificationTag: "XYZabc"
|
||||
bing:
|
||||
SiteVerificationTag: "XYZabc"
|
||||
yandex:
|
||||
SiteVerificationTag: "XYZabc"
|
||||
url: "https://www.linkedin.com/in/stan-nowogrudski-53aab1169/"
|
||||
|
||||
cover:
|
||||
hidden: false # hide everywhere but not in structured data
|
||||
@ -101,6 +77,15 @@ params:
|
||||
hiddenInSingle: false # hide on single page
|
||||
responsiveImages: true
|
||||
linkFullImages: false
|
||||
|
||||
fuseOpts:
|
||||
isCaseSensitive: false
|
||||
shouldSort: true
|
||||
location: 0
|
||||
distance: 1000
|
||||
threshold: 0.4
|
||||
minMatchCharLength: 0
|
||||
keys: ["title", "permalink", "summary", "content"]
|
||||
|
||||
menu:
|
||||
main:
|
||||
@ -113,13 +98,13 @@ menu:
|
||||
url: /tags/
|
||||
weight: 20
|
||||
- identified: about
|
||||
name: über mich
|
||||
name: Über mich
|
||||
url: /about/
|
||||
weight: 25
|
||||
|
||||
# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
|
||||
# pygmentsUseClasses: true
|
||||
# markup:
|
||||
#markup:
|
||||
# highlight:
|
||||
# # anchorLineNos: true
|
||||
# codeFences: true
|
||||
|
@ -30,3 +30,9 @@ dass die neuen Führungskräfte aus dem Unternehmen kommen - sie kennen bereits
|
||||
Außerdem ist es eine Geiste der Wertschätzung - man gibt den treusten Mitarbeitern die Chance sich weiter zu entwickeln.
|
||||
Das sind die absolut berechtigte Gedanken einer Führungskraft, die ernsthaft überlegt eine neue "Führungsetage" zu kreieren.
|
||||
Dabei werden viele wichtigen Aspekte nicht beachtet und man macht bei der Planung von neuen Führungsstrukturen einige Fehler.
|
||||
|
||||
``` Java
|
||||
for int i < 1; i=10; i++ {
|
||||
doSomething();
|
||||
}
|
||||
```
|
@ -1,3 +1,4 @@
|
||||
{{- if not (.Param "hideFooter") }}
|
||||
<footer class="footer">
|
||||
{{- if .Site.Copyright }}
|
||||
<span>{{ .Site.Copyright | markdownify }}</span>
|
||||
@ -11,4 +12,124 @@
|
||||
<a href=/data_protection/ rel="noopener" target="_blank">Datenschutzerklärung</a>
|
||||
<a href=/impressum/ rel="noopener" target="_blank">Impressum</a>
|
||||
</span>
|
||||
</footer>
|
||||
</footer>
|
||||
{{- end }}
|
||||
|
||||
{{- if (not .Site.Params.disableScrollToTop) }}
|
||||
<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)" class="top-link" id="top-link" accesskey="g">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor">
|
||||
<path d="M12 6H0l6-6z" />
|
||||
</svg>
|
||||
</a>
|
||||
{{- end }}
|
||||
|
||||
{{- partial "extend_footer.html" . }}
|
||||
|
||||
<script>
|
||||
let menu = document.getElementById('menu')
|
||||
menu.scrollLeft = localStorage.getItem("menu-scroll-position");
|
||||
menu.onscroll = function () {
|
||||
localStorage.setItem("menu-scroll-position", menu.scrollLeft);
|
||||
}
|
||||
|
||||
document.querySelectorAll('a[href^="#"]').forEach(anchor => {
|
||||
anchor.addEventListener("click", function (e) {
|
||||
e.preventDefault();
|
||||
var id = this.getAttribute("href").substr(1);
|
||||
if (!window.matchMedia('(prefers-reduced-motion: reduce)').matches) {
|
||||
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView({
|
||||
behavior: "smooth"
|
||||
});
|
||||
} else {
|
||||
document.querySelector(`[id='${decodeURIComponent(id)}']`).scrollIntoView();
|
||||
}
|
||||
if (id === "top") {
|
||||
history.replaceState(null, null, " ");
|
||||
} else {
|
||||
history.pushState(null, null, `#${id}`);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
{{- if (not .Site.Params.disableScrollToTop) }}
|
||||
<script>
|
||||
var mybutton = document.getElementById("top-link");
|
||||
window.onscroll = function () {
|
||||
if (document.body.scrollTop > 800 || document.documentElement.scrollTop > 800) {
|
||||
mybutton.style.visibility = "visible";
|
||||
mybutton.style.opacity = "1";
|
||||
} else {
|
||||
mybutton.style.visibility = "hidden";
|
||||
mybutton.style.opacity = "0";
|
||||
}
|
||||
};
|
||||
|
||||
</script>
|
||||
{{- end }}
|
||||
|
||||
{{- if (not .Site.Params.disableThemeToggle) }}
|
||||
<script>
|
||||
document.getElementById("theme-toggle").addEventListener("click", () => {
|
||||
if (document.body.className.includes("dark")) {
|
||||
document.body.classList.remove('dark');
|
||||
localStorage.setItem("pref-theme", 'light');
|
||||
} else {
|
||||
document.body.classList.add('dark');
|
||||
localStorage.setItem("pref-theme", 'dark');
|
||||
}
|
||||
})
|
||||
|
||||
</script>
|
||||
{{- end }}
|
||||
|
||||
{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (.Param "ShowCodeCopyButtons")) }}
|
||||
<script>
|
||||
document.querySelectorAll('pre > code').forEach((codeblock) => {
|
||||
const container = codeblock.parentNode.parentNode;
|
||||
|
||||
const copybutton = document.createElement('button');
|
||||
copybutton.classList.add('copy-code');
|
||||
copybutton.innerText = '{{- i18n "code_copy" | default "copy" }}';
|
||||
|
||||
function copyingDone() {
|
||||
copybutton.innerText = '{{- i18n "code_copied" | default "copied!" }}';
|
||||
setTimeout(() => {
|
||||
copybutton.innerText = '{{- i18n "code_copy" | default "copy" }}';
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
copybutton.addEventListener('click', (cb) => {
|
||||
if ('clipboard' in navigator) {
|
||||
navigator.clipboard.writeText(codeblock.textContent);
|
||||
copyingDone();
|
||||
return;
|
||||
}
|
||||
|
||||
const range = document.createRange();
|
||||
range.selectNodeContents(codeblock);
|
||||
const selection = window.getSelection();
|
||||
selection.removeAllRanges();
|
||||
selection.addRange(range);
|
||||
try {
|
||||
document.execCommand('copy');
|
||||
copyingDone();
|
||||
} catch (e) { };
|
||||
selection.removeRange(range);
|
||||
});
|
||||
|
||||
if (container.classList.contains("highlight")) {
|
||||
container.appendChild(copybutton);
|
||||
} else if (container.parentNode.firstChild == container) {
|
||||
// td containing LineNos
|
||||
} else if (codeblock.parentNode.parentNode.parentNode.parentNode.parentNode.nodeName == "TABLE") {
|
||||
// table containing LineNos and code
|
||||
codeblock.parentNode.parentNode.parentNode.parentNode.parentNode.appendChild(copybutton);
|
||||
} else {
|
||||
// code blocks not having highlight as parent class
|
||||
codeblock.parentNode.appendChild(copybutton);
|
||||
}
|
||||
});
|
||||
</script>
|
||||
{{- end }}
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 8c2f997ab398ad57d49c04ffbb6474c64adf2ec7
|
||||
Subproject commit 7c930ee4ea1b27ebdcb72ccb4c71656ecbde92b7
|
Loading…
Reference in New Issue
Block a user