diff options
| author | triethyl <triethylammonium@pm.me> | 2025-10-13 12:00:03 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-10-13 12:00:03 -0400 |
| commit | 2496db965db4fa48197cb31c7750b2a16523ed32 (patch) | |
| tree | ce174f1f94426c8727a31680e0c8e415e998ba66 /site/themes/hugo-starter/layouts/partials | |
| parent | b2393801585b7e152ffbffb3226f720e66454ea6 (diff) | |
renamed theme and added content
Diffstat (limited to 'site/themes/hugo-starter/layouts/partials')
4 files changed, 0 insertions, 54 deletions
diff --git a/site/themes/hugo-starter/layouts/partials/footer.html b/site/themes/hugo-starter/layouts/partials/footer.html deleted file mode 100644 index 24373ca..0000000 --- a/site/themes/hugo-starter/layouts/partials/footer.html +++ /dev/null @@ -1 +0,0 @@ -<p>©{{ dateFormat "2006" now }} {{ .Site.Title }}</p> diff --git a/site/themes/hugo-starter/layouts/partials/head.html b/site/themes/hugo-starter/layouts/partials/head.html deleted file mode 100644 index e7c23e5..0000000 --- a/site/themes/hugo-starter/layouts/partials/head.html +++ /dev/null @@ -1,36 +0,0 @@ -<meta charset="UTF-8" /> -<meta name="viewport" content="width=device-width, initial-scale=1.0" /> - -<title>{{ if not .IsHome }}{{ .Title }} | {{ end }}{{ .Site.Title }}</title> - -<!-- Scuffed fix for theme change flash --> -<script> - // Run as early as possible - (function() { - const theme = localStorage.getItem("theme"); - const preloadClass = theme === "dark" ? "preload-dark" : "preload-light"; - - // Add preload class to <html> - document.documentElement.classList.add(preloadClass); - - // Wait for stylesheet(s) to load, then remove class - window.addEventListener("load", function() { - document.documentElement.classList.remove(preloadClass); - }); - })(); -</script> -<style> - /* Temporary background colors before stylesheet is fully loaded */ - .preload-light * { - background: #ffffff !important; - } - .preload-dark * { - background: #161616 !important; - } -</style> - -<link rel="stylesheet" href="/css/style.css" type="text/css" media="all" /> - -{{ with .OutputFormats.Get "rss" -}} - {{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }} -{{ end -}} diff --git a/site/themes/hugo-starter/layouts/partials/header.html b/site/themes/hugo-starter/layouts/partials/header.html deleted file mode 100644 index e69de29..0000000 --- a/site/themes/hugo-starter/layouts/partials/header.html +++ /dev/null diff --git a/site/themes/hugo-starter/layouts/partials/nav.html b/site/themes/hugo-starter/layouts/partials/nav.html deleted file mode 100644 index cef3405..0000000 --- a/site/themes/hugo-starter/layouts/partials/nav.html +++ /dev/null @@ -1,17 +0,0 @@ -<header class="site-header"> - <nav class="navbar"> - <div> - <a class="logo" href="{{ .Site.BaseURL }}"> - {{ .Site.Title }} - </a> - <button type="button" id="toggleTheme" data-theme-toggle aria-label="switch theme"></button> - </div> - <ul class="nav-links"> - {{ range.Site.Menus.main }} - <li> - <a href="{{ .URL }}">{{ .Name }}</a> - </li> - {{ end }} - </ul> - </nav> -</header> |
