From 5a7ee930247054fefa5498e07b33879e60735747 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Mon, 12 Feb 2024 19:20:51 +0100 Subject: [PATCH 1/3] make location pin feel clickable --- themes/hugo-theme-flat/static/css/style.css | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/hugo-theme-flat/static/css/style.css b/themes/hugo-theme-flat/static/css/style.css index 616b4fe..c3b89eb 100644 --- a/themes/hugo-theme-flat/static/css/style.css +++ b/themes/hugo-theme-flat/static/css/style.css @@ -218,6 +218,7 @@ a.external:after { #calendar .location{ margin-left: 0.25em; + cursor: pointer; } /********** set up break point **********/ From 1f08fb74b0a20de309163ce5e72f5d42bf65c943 Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Mon, 12 Feb 2024 19:23:55 +0100 Subject: [PATCH 2/3] add anreise link --- themes/hugo-theme-flat/layouts/partials/side-contact.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/themes/hugo-theme-flat/layouts/partials/side-contact.html b/themes/hugo-theme-flat/layouts/partials/side-contact.html index d0579b4..35d06b9 100644 --- a/themes/hugo-theme-flat/layouts/partials/side-contact.html +++ b/themes/hugo-theme-flat/layouts/partials/side-contact.html @@ -15,6 +15,9 @@
  • Github
  • +
  • + Anreise +
  • From 750388e67cd9fe7da240d76a8948db98910883bc Mon Sep 17 00:00:00 2001 From: Dirk Heilig Date: Mon, 12 Feb 2024 19:27:59 +0100 Subject: [PATCH 3/3] prevent non filles side from reaching anchor --- themes/hugo-theme-flat/layouts/partials/side-calendar.html | 2 +- themes/hugo-theme-flat/static/css/style.css | 4 ++++ themes/hugo-theme-flat/static/js/calendar.js | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/themes/hugo-theme-flat/layouts/partials/side-calendar.html b/themes/hugo-theme-flat/layouts/partials/side-calendar.html index 38fcd69..c6e84e4 100644 --- a/themes/hugo-theme-flat/layouts/partials/side-calendar.html +++ b/themes/hugo-theme-flat/layouts/partials/side-calendar.html @@ -1,6 +1,6 @@

    Termine

    -
      +

        Zum Kalender
        diff --git a/themes/hugo-theme-flat/static/css/style.css b/themes/hugo-theme-flat/static/css/style.css index c3b89eb..a8302dc 100644 --- a/themes/hugo-theme-flat/static/css/style.css +++ b/themes/hugo-theme-flat/static/css/style.css @@ -212,6 +212,10 @@ a.external:after { margin-bottom: 0; } +#calendar.loading{ + height: 100em; +} + #calendar .row { display: block; } diff --git a/themes/hugo-theme-flat/static/js/calendar.js b/themes/hugo-theme-flat/static/js/calendar.js index a407574..4fd0987 100644 --- a/themes/hugo-theme-flat/static/js/calendar.js +++ b/themes/hugo-theme-flat/static/js/calendar.js @@ -13,6 +13,8 @@ document.addEventListener("DOMContentLoaded", function () { let cal = JSON.parse(xmlHttp.responseText); let $ = jQuery; let box = $("#calendar"); + + box.removeClass("loading"); for (let item of cal) { let li = $("
      • "); //li.text(item.summary)