summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2025-12-23 16:37:46 -0330
committerSam Anthony <sam@samanthony.xyz>2025-12-23 16:37:46 -0330
commit627cdfd418c6d55c4b8e130068aa34de23324c0d (patch)
treec121be899e2dae66e5baaff1fda73eb5b3269a79
parent55ed353216554d6327984fa8f1cf707b70e06ac1 (diff)
downloadsamanthony.xyz-627cdfd418c6d55c4b8e130068aa34de23324c0d.zip
theme: flatten partials and assets dirs
-rw-r--r--themes/aoidh/assets/aoidh.css (renamed from themes/aoidh/assets/css/aoidh.css)0
-rw-r--r--themes/aoidh/assets/js/main.js2
-rw-r--r--themes/aoidh/layouts/_partials/head.html5
-rw-r--r--themes/aoidh/layouts/_partials/head/css.html3
-rw-r--r--themes/aoidh/layouts/_partials/head/js.html16
5 files changed, 3 insertions, 23 deletions
diff --git a/themes/aoidh/assets/css/aoidh.css b/themes/aoidh/assets/aoidh.css
index 0b787b7..0b787b7 100644
--- a/themes/aoidh/assets/css/aoidh.css
+++ b/themes/aoidh/assets/aoidh.css
diff --git a/themes/aoidh/assets/js/main.js b/themes/aoidh/assets/js/main.js
deleted file mode 100644
index 1756afc..0000000
--- a/themes/aoidh/assets/js/main.js
+++ /dev/null
@@ -1,2 +0,0 @@
-console.log('This site was generated by Hugo.');
-console.log('Theme: Aoidh');
diff --git a/themes/aoidh/layouts/_partials/head.html b/themes/aoidh/layouts/_partials/head.html
index 02c2240..c72c8c5 100644
--- a/themes/aoidh/layouts/_partials/head.html
+++ b/themes/aoidh/layouts/_partials/head.html
@@ -1,5 +1,6 @@
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>{{ if .IsHome }}{{ site.Title }}{{ else }}{{ printf "%s | %s" .Title site.Title }}{{ end }}</title>
-{{ partialCached "head/css.html" . }}
-{{ partialCached "head/js.html" . }}
+{{- with resources.Get "aoidh.css" }}
+ <link rel="stylesheet" href="{{ .RelPermalink }}">
+{{- end }}
diff --git a/themes/aoidh/layouts/_partials/head/css.html b/themes/aoidh/layouts/_partials/head/css.html
deleted file mode 100644
index dec8013..0000000
--- a/themes/aoidh/layouts/_partials/head/css.html
+++ /dev/null
@@ -1,3 +0,0 @@
-{{- with resources.Get "css/aoidh.css" }}
- <link rel="stylesheet" href="{{ .RelPermalink }}">
-{{- end }}
diff --git a/themes/aoidh/layouts/_partials/head/js.html b/themes/aoidh/layouts/_partials/head/js.html
deleted file mode 100644
index 16ffbed..0000000
--- a/themes/aoidh/layouts/_partials/head/js.html
+++ /dev/null
@@ -1,16 +0,0 @@
-{{- with resources.Get "js/main.js" }}
- {{- $opts := dict
- "minify" (not hugo.IsDevelopment)
- "sourceMap" (cond hugo.IsDevelopment "external" "")
- "targetPath" "js/main.js"
- }}
- {{- with . | js.Build $opts }}
- {{- if hugo.IsDevelopment }}
- <script src="{{ .RelPermalink }}"></script>
- {{- else }}
- {{- with . | fingerprint }}
- <script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
- {{- end }}
- {{- end }}
- {{- end }}
-{{- end }}