diff --git a/layouts/partials/sidebar.html b/layouts/partials/sidebar.html index 76c4e27..54cb8b9 100644 --- a/layouts/partials/sidebar.html +++ b/layouts/partials/sidebar.html @@ -1,14 +1,5 @@
- {{ range first 1 (where .Site.RegularPages.ByDate.Reverse "Section" "blog") }} - {{ $d1 := time.ParseDuration "-168h" }} - {{ $t1 := time.Now.Add $d1 }} - {{ $t2 := time.AsTime .PublishDate }} - {{ if $t2.After $t1 }} -
- {{ else }} -
- {{ end }} - {{ end }} +
diff --git a/themes/dreamcast/layouts/partials/footer.html b/themes/dreamcast/layouts/partials/footer.html index 97cd14a..cc867d6 100644 --- a/themes/dreamcast/layouts/partials/footer.html +++ b/themes/dreamcast/layouts/partials/footer.html @@ -1,3 +1,5 @@

- peanut butter in the internet vent. + {{ range first 1 (where .Site.RegularPages.ByDate.Reverse "Section" "blog") }} + Last updated . + {{ end }}

diff --git a/themes/dreamcast/layouts/partials/head.html b/themes/dreamcast/layouts/partials/head.html index dfdaa2c..dcb51ea 100644 --- a/themes/dreamcast/layouts/partials/head.html +++ b/themes/dreamcast/layouts/partials/head.html @@ -7,6 +7,7 @@ {{ .Page.Title }} + diff --git a/themes/dreamcast/static/css/main.css b/themes/dreamcast/static/css/main.css index b1da288..6a8376a 100644 --- a/themes/dreamcast/static/css/main.css +++ b/themes/dreamcast/static/css/main.css @@ -262,7 +262,7 @@ nav li a:hover, nav li a:active { .sidebar { flex: 0 1 20%; border-right: 1px solid; - border-image: linear-gradient(transparent 5vh, grey 5.1vh, grey 94%, transparent 95%) 1; + border-image: linear-gradient(transparent 30px, grey 31px, grey 97%, transparent 98%) 1; padding: 30px 15px; /* background: linear-gradient(aqua 0%, transparent 15%); */ /* border-radius: 15px 0 0 0; */ @@ -371,6 +371,7 @@ code { pre code{ padding: 15px; display: block; + max-width: 640px; } ul.pagination { diff --git a/themes/dreamcast/static/js/avatar.js b/themes/dreamcast/static/js/avatar.js new file mode 100644 index 0000000..a2a789b --- /dev/null +++ b/themes/dreamcast/static/js/avatar.js @@ -0,0 +1,14 @@ +let latest = document.querySelector('#last-update'); +let avatar = document.querySelector('#avatar-frame'); + +let latestDate = Date.parse(latest.attributes.getNamedItem('datetime').value); +let threshold = new Date(); +threshold.setDate(threshold.getDate() - 7); + +console.log(latestDate) + +if (latestDate < threshold) { + avatar.className = 'busy'; +} else { + avatar.className = 'online'; +}