aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/partials')
-rw-r--r--layouts/partials/head.html4
-rw-r--r--layouts/partials/scripts.html4
2 files changed, 6 insertions, 2 deletions
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index d7b2381..2106ef3 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,8 +1,8 @@
1<head> 1<head>
2 <title>{{ .Title }}</title> 2 <title>{{ .Title }}</title>
3 {{ with resources.Get "css/pico.min.css" }} 3 <!-- {{ with resources.Get "css/pico.min.css" }}
4 <link rel="stylesheet" href="{{ .RelPermalink }}"> 4 <link rel="stylesheet" href="{{ .RelPermalink }}">
5 {{ end }} 5 {{ end }} -->
6 {{ with resources.Get "css/main.css" }} 6 {{ with resources.Get "css/main.css" }}
7 <link rel="stylesheet" href="{{ .RelPermalink }}"> 7 <link rel="stylesheet" href="{{ .RelPermalink }}">
8 {{ end }} 8 {{ end }}
diff --git a/layouts/partials/scripts.html b/layouts/partials/scripts.html
new file mode 100644
index 0000000..152c32b
--- /dev/null
+++ b/layouts/partials/scripts.html
@@ -0,0 +1,4 @@
1{{ $scripts := resources.Match "js/*.js" }}
2{{ range $script := $scripts }}
3 <script src="{{ $script.RelPermalink }}" defer></script>
4{{ end }} \ No newline at end of file