website

My personal website www.ortlepp.eu
git clone https://git.ortlepp.eu/website.git/
Log | Files | Refs

commit 581515645c5d8ea06b97ded49bce7eab6dfa3db9
parent 5367ddb6f8a28d099eb7d6e6abfa74718e7a8e31
Author: Thorsten Ortlepp <post@ortlepp.eu>
Date:   Sat,  8 Jan 2022 15:59:57 +0100

Basic configuration done

Diffstat:
Mconfig.yml | 99+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----
Acontent/de/impressum_datenschutz.md | 8++++++++
Acontent/de/projekte.md | 10++++++++++
Acontent/de/projekte/feedgenerator.md | 8++++++++
Acontent/en/legal_notice.md | 8++++++++
Acontent/en/projects.md | 10++++++++++
Acontent/en/projects/feedgenerator.md | 8++++++++
Dcontent/posts/my-first-post.md | 8--------
Alayouts/partials/footer.html | 90+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alayouts/partials/post_meta.html | 17+++++++++++++++++
Alayouts/partials/svg.html | 16++++++++++++++++
Rlayouts/.gitkeep -> public/.gitkeep | 0
12 files changed, 270 insertions(+), 12 deletions(-)

diff --git a/config.yml b/config.yml @@ -1,4 +1,95 @@ -baseURL: http://example.org/ -languageCode: en-us -title: My New Hugo Site -theme: "PaperMod" +baseURL: https://test.ortlepp.eu/ +title: Thorsten Ortlepp +theme: PaperMod + +buildDrafts: false +buildFuture: false +buildExpired: false + +disableKinds: + - section + +params: +# env: production + author: Thorsten Ortlepp + defaultTheme: auto + disableThemeToggle: false + + ShowReadingTime: false + ShowShareButtons: false + ShowPostNavLinks: true + ShowBreadCrumbs: false + ShowCodeCopyButtons: false + disableSpecial1stPost: false + disableScrollToTop: false + comments: false + hidemeta: false + hideSummary: false + showtoc: false + tocopen: false + + profileMode: + enabled: true +# imageUrl: "<img location>" +# imageWidth: 120 +# imageHeight: 120 +# imageTitle: my image + socialIcons: + - name: xing + url: "https://www.xing.com/profile/Thorsten_Ortlepp3" + - name: git + url: "https://git.ortlepp.eu/web/" + +defaultContentLanguage: de + +languages: + de: + weight: 1 + contentDir: content/de + title: Thorsten Ortlepp + description: "Die private Website von Thorsten Ortlepp" + params: + profileMode: + enabled: true + title: "Willkommen" + subtitle: "Ein kurzer Text über mich" + buttons: + - name: Projekte + url: /projekte/ + xxCustomLegalText: "Impressum & Datenschutz" + xxCustomLegalLink: "/impressum_datenschutz/" + menu: + main: + - identifier: home + name: Start + url: / + weight: 10 + - identifier: projects + name: Projekte + url: /projekte/ + weight: 20 + en: + weight: 2 + contentDir: content/en + title: Thorsten Ortlepp + description: "The private website of Thorsten Ortlepp" + params: + profileMode: + enabled: true + title: "Welcome" + subtitle: "A short text about myself" + buttons: + - name: Projects + url: /en/projects/ + xxCustomLegalText: "Legal notice" + xxCustomLegalLink: "/en/legal_notice/" + menu: + main: + - identifier: home + name: Home + url: / + weight: 10 + - identifier: projects + name: Projects + url: /en/projects/ + weight: 20 diff --git a/content/de/impressum_datenschutz.md b/content/de/impressum_datenschutz.md @@ -0,0 +1,8 @@ +--- +title: "Impressum & Datenschutz" +date: 2022-01-08T00:01:00+01:00 +draft: false +translationKey: legalnotice +--- + +Impressum und Datenschutz diff --git a/content/de/projekte.md b/content/de/projekte.md @@ -0,0 +1,10 @@ +--- +title: "Projekte" +date: 2022-01-08T00:01:00+01:00 +draft: false +translationKey: projects +--- + +Etwas Text... Und noch etwas mehr Text... + +Mein erstes Projekt: [feedgenerator](/projekte/feedgenerator/) diff --git a/content/de/projekte/feedgenerator.md b/content/de/projekte/feedgenerator.md @@ -0,0 +1,8 @@ +--- +title: "feedgenerator" +date: 2022-01-08T00:02:00+01:00 +draft: false +translationKey: projects-feedgenerator +--- + +Ein einfaches Werkzeug um verschiedene Feeds zu erzeugen. diff --git a/content/en/legal_notice.md b/content/en/legal_notice.md @@ -0,0 +1,8 @@ +--- +title: "Legal notice" +date: 2022-01-08T00:01:00+01:00 +draft: false +translationKey: legalnotice +--- + +Legal notice diff --git a/content/en/projects.md b/content/en/projects.md @@ -0,0 +1,10 @@ +--- +title: "Projects" +date: 2022-01-08T00:01:00+01:00 +draft: false +translationKey: projects +--- + +Some text... And some more text... + +My first project: [feedgenerator](/en/projects/feedgenerator/) diff --git a/content/en/projects/feedgenerator.md b/content/en/projects/feedgenerator.md @@ -0,0 +1,8 @@ +--- +title: "feedgenerator" +date: 2022-01-08T00:02:00+01:00 +draft: false +translationKey: projects-feedgenerator +--- + +A simple tool to create various feeds. diff --git a/content/posts/my-first-post.md b/content/posts/my-first-post.md @@ -1,8 +0,0 @@ ---- -title: "My First Post" -date: 2022-01-06T00:49:57+01:00 -draft: false ---- - -Some Text more here - diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html @@ -0,0 +1,90 @@ +<footer class="footer"> + <span>Powered by <a href="https://gohugo.io/" rel="noopener noreferrer" target="_blank">Hugo</a></span> + <span>&middot;</span> + <span>Theme <a href="https://git.io/hugopapermod" rel="noopener" target="_blank">PaperMod</a></span> + <span>&middot;</span> + <span><a href="{{ .Site.Params.xxCustomLegalLink }}">{{ .Site.Params.xxCustomLegalText }}</a></span> +</footer> +{{- if (not .Site.Params.disableScrollToTop) }} +<a href="#top" aria-label="go to top" title="Go to Top (Alt + G)"> + <button class="top-link" id="top-link" type="button" accesskey="g"> + <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 6" fill="currentColor"> + <path d="M12 6H0l6-6z" /> + </svg> + </button> +</a> +{{- end }} +{{- partial "extend_footer.html" . -}} +{{- $isHLJSdisabled := (.Site.Params.assets.disableHLJS | default .Params.disableHLJS ) }} +{{- if (and (eq .Kind "page") (ne .Layout "archives") (ne .Layout "search") (not $isHLJSdisabled)) }} +{{- if not .Site.Params.assets.disableFingerprinting }} +{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify | fingerprint }} +<script defer src="{{ $highlight.RelPermalink }}" integrity="{{ $highlight.Data.Integrity }}" + onload="hljs.initHighlightingOnLoad();"></script> +{{- else}} +{{- $highlight := slice (resources.Get "js/highlight.min.js") | resources.Concat "assets/js/highlight.js" | minify }} +<script defer src="{{ $highlight.RelPermalink }}" onload="hljs.initHighlightingOnLoad();"></script> +{{- end}} +{{- end }} +<script> + window.onload = function () { + if (localStorage.getItem("menu-scroll-position")) { + document.getElementById('menu').scrollLeft = localStorage.getItem("menu-scroll-position"); + } + } + + function menu_on_scroll() { + localStorage.setItem("menu-scroll-position", document.getElementById('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 }} diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html @@ -0,0 +1,17 @@ +{{- $scratch := newScratch}} + +{{- if not .Date.IsZero -}} +{{- $scratch.Add "meta" (slice (.Date | time.Format ":date_long")) }} +{{- end -}} + +{{- if (.Param "ShowReadingTime") -}} +{{- $scratch.Add "meta" (slice (i18n "read_time" .ReadingTime | default (printf "%s min" .ReadingTime))) }} +{{- end -}} + +{{ with (partial "author.html" . ) }} +{{ $scratch.Add "meta" (slice .)}} +{{end}} + +{{- with ($scratch.Get "meta")}} +{{- delimit . "&nbsp;·&nbsp;"}} +{{- end }} diff --git a/layouts/partials/svg.html b/layouts/partials/svg.html @@ -0,0 +1,16 @@ +{{ $icon_name := ( trim .name " " | lower )}} +{{- if (eq $icon_name "git") -}} +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6.3499999 6.3500003" width="24" height="24"> + <path fill="currentColor" style="stroke-width:0.0141741" d="M 6.2261189,2.888135 3.4543819,0.11568906 a 0.40920502,0.40920502 0 0 0 -0.5784429,0 L 2.2996217,0.69158086 3.0298691,1.4218283 c 0.38355,-0.1295508 0.7466891,0.237699 0.615012,0.6191229 L 4.3487649,2.744835 C 4.8339427,2.577581 5.2159339,3.184231 4.8515185,3.548362 4.4760483,3.923833 3.8563584,3.507682 4.0577716,3.019103 L 3.4008041,2.3629857 V 4.090094 c 0.3586038,0.177743 0.3155145,0.593185 0.1287004,0.779573 a 0.48673712,0.48673712 0 0 1 -0.6881505,0 C 2.592316,4.620204 2.6844473,4.204763 3.0008123,4.07592 V 2.3325117 C 2.7059918,2.21189 2.6521306,1.8968007 2.7366078,1.6946786 L 2.0167075,0.97392836 0.11568311,2.875236 a 0.40906328,0.40906328 0 0 0 0,0.578443 L 2.8882701,6.226125 a 0.40906328,0.40906328 0 0 0 0.578302,0 L 6.2261189,3.466578 a 0.40906328,0.40906328 0 0 0 0,-0.578443 z"></path> +</svg> +{{- else if (eq $icon_name "xing") -}} +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 6.3499999 6.3500003" width="24" height="24"> + <path fill="currentColor" style="stroke-width:0.014171" d="M 2.735225,2.5241157 C 2.7097173,2.5708795 2.3781171,3.1533055 1.7418417,4.2742274 1.672404,4.391846 1.5887955,4.4513641 1.4910159,4.4513641 H 0.56848723 c -0.1091162,0 -0.1714684,-0.1062821 -0.120453,-0.2040615 L 1.4258296,2.5283668 c 0.00283,0 0.00283,-0.00143 0,-0.00425 L 0.80372493,1.4527921 C 0.74278993,1.3422587 0.80797653,1.2529817 0.92417805,1.2529817 H 1.8467066 c 0.103448,0 0.1884736,0.058101 0.2550771,0.1728856 z M 5.8514159,0.20149757 3.8107996,3.7867466 v 0.00425 l 1.2980586,2.3608793 c 0.055267,0.1006128 0.00284,0.1998096 -0.1204529,0.1998096 H 4.0644596 c -0.1076989,0 -0.1927248,-0.056684 -0.2550771,-0.1728853 L 2.4999873,3.7909982 C 2.5467513,3.7088062 3.2297908,2.5042762 4.5519402,0.17457277 4.6171262,0.05978805 4.6993181,0.00168714 4.7999317,0.00168714 h 0.9310312 c 0.113368,0 0.174303,0.09494547 0.120453,0.19981043 z"></path> +</svg> +{{- else if $icon_name -}} +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" + stroke-linecap="round" stroke-linejoin="round"> + <path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"></path> + <path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"></path> +</svg> +{{- end -}} diff --git a/layouts/.gitkeep b/public/.gitkeep