mirror of
https://github.com/hazemKrimi/personal-website.git
synced 2026-05-01 18:00:26 +00:00
Assets and sample color theme switcher
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
{{ $styles := resources.Get "css/baseof.css" | toCSS | minify | fingerprint }}
|
||||
{{ $scripts := resources.Get "js/baseof.js" | minify | fingerprint }}
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<link rel="stylesheet" href="{{ $styles.Permalink }}">
|
||||
{{ block "styles" . }}{{ end }}
|
||||
<title>
|
||||
{{ block "title" . }}
|
||||
{{ .Site.Title }}
|
||||
{{ end }}
|
||||
</title>
|
||||
<script defer src="{{ $scripts.Permalink }}"></script>
|
||||
</head>
|
||||
<body>
|
||||
<main>
|
||||
{{ block "main" . }}{{ end }}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,4 @@
|
||||
{{ define "main" }}
|
||||
{{ partial "theme-switch.html" . }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
@@ -0,0 +1 @@
|
||||
<button id="switch-theme">Switch theme</button>
|
||||
Reference in New Issue
Block a user