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
47
config.yml
47
config.yml
@ -26,22 +26,21 @@ params:
|
|||||||
env: production # to enable google analytics, opengraph, twitter-cards and schema.
|
env: production # to enable google analytics, opengraph, twitter-cards and schema.
|
||||||
title: Agile Führung von Engineering Teams
|
title: Agile Führung von Engineering Teams
|
||||||
description: "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: Stan Nowogrudski
|
||||||
# author: ["Me", "You"] # multiple authors
|
|
||||||
images: ["/favicon-32x32.png", "/apple-icon-60x60.png"]
|
images: ["/favicon-32x32.png", "/apple-icon-60x60.png"]
|
||||||
DateFormat: "2 January, 2006"
|
DateFormat: "2 January, 2006"
|
||||||
defaultTheme: auto # dark, light
|
defaultTheme: auto # dark, light
|
||||||
disableThemeToggle: false
|
disableThemeToggle: false
|
||||||
|
|
||||||
ShowReadingTime: true
|
ShowReadingTime: true
|
||||||
ShowShareButtons: false
|
ShowShareButtons: true
|
||||||
ShowPostNavLinks: true
|
ShowPostNavLinks: true
|
||||||
ShowBreadCrumbs: true
|
ShowBreadCrumbs: true
|
||||||
ShowCodeCopyButtons: false
|
ShowCodeCopyButtons: true
|
||||||
disableSpecial1stPost: false
|
disableSpecial1stPost: true
|
||||||
disableScrollToTop: false
|
disableScrollToTop: false
|
||||||
comments: true
|
comments: false
|
||||||
hidemeta: false
|
hidemeta: false
|
||||||
hideSummary: false
|
hideSummary: false
|
||||||
showtoc: false
|
showtoc: false
|
||||||
@ -61,21 +60,6 @@ params:
|
|||||||
icon: /IMG_6308_510px.png
|
icon: /IMG_6308_510px.png
|
||||||
iconHeight: 36
|
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
|
# home-info mode
|
||||||
homeInfoParams:
|
homeInfoParams:
|
||||||
Title: "Agile Führung von Engineering Teams \U0001F44B"
|
Title: "Agile Führung von Engineering Teams \U0001F44B"
|
||||||
@ -87,14 +71,6 @@ params:
|
|||||||
- name: linkedin
|
- name: linkedin
|
||||||
url: "https://www.linkedin.com/in/stan-nowogrudski-53aab1169/"
|
url: "https://www.linkedin.com/in/stan-nowogrudski-53aab1169/"
|
||||||
|
|
||||||
analytics:
|
|
||||||
google:
|
|
||||||
SiteVerificationTag: "XYZabc"
|
|
||||||
bing:
|
|
||||||
SiteVerificationTag: "XYZabc"
|
|
||||||
yandex:
|
|
||||||
SiteVerificationTag: "XYZabc"
|
|
||||||
|
|
||||||
cover:
|
cover:
|
||||||
hidden: false # hide everywhere but not in structured data
|
hidden: false # hide everywhere but not in structured data
|
||||||
hiddenInList: false # hide on list pages and home
|
hiddenInList: false # hide on list pages and home
|
||||||
@ -102,6 +78,15 @@ params:
|
|||||||
responsiveImages: true
|
responsiveImages: true
|
||||||
linkFullImages: false
|
linkFullImages: false
|
||||||
|
|
||||||
|
fuseOpts:
|
||||||
|
isCaseSensitive: false
|
||||||
|
shouldSort: true
|
||||||
|
location: 0
|
||||||
|
distance: 1000
|
||||||
|
threshold: 0.4
|
||||||
|
minMatchCharLength: 0
|
||||||
|
keys: ["title", "permalink", "summary", "content"]
|
||||||
|
|
||||||
menu:
|
menu:
|
||||||
main:
|
main:
|
||||||
- identifier: categories
|
- identifier: categories
|
||||||
@ -113,13 +98,13 @@ menu:
|
|||||||
url: /tags/
|
url: /tags/
|
||||||
weight: 20
|
weight: 20
|
||||||
- identified: about
|
- identified: about
|
||||||
name: über mich
|
name: Über mich
|
||||||
url: /about/
|
url: /about/
|
||||||
weight: 25
|
weight: 25
|
||||||
|
|
||||||
# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
|
# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
|
||||||
# pygmentsUseClasses: true
|
# pygmentsUseClasses: true
|
||||||
# markup:
|
#markup:
|
||||||
# highlight:
|
# highlight:
|
||||||
# # anchorLineNos: true
|
# # anchorLineNos: true
|
||||||
# codeFences: 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.
|
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.
|
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.
|
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">
|
<footer class="footer">
|
||||||
{{- if .Site.Copyright }}
|
{{- if .Site.Copyright }}
|
||||||
<span>{{ .Site.Copyright | markdownify }}</span>
|
<span>{{ .Site.Copyright | markdownify }}</span>
|
||||||
@ -12,3 +13,123 @@
|
|||||||
<a href=/impressum/ rel="noopener" target="_blank">Impressum</a>
|
<a href=/impressum/ rel="noopener" target="_blank">Impressum</a>
|
||||||
</span>
|
</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