Add asset fingerprinting, build/dev scripts

Add fingerprinting for the CSS file, as well as npm scripts for all
common build and dev tasks.
This commit is contained in:
2022-06-04 11:09:00 +02:00
parent f0f7bfd190
commit 5a9ffaab62
15 changed files with 1686 additions and 723 deletions

View File

@@ -4,7 +4,8 @@
{{ partial "meta.html" . }}
<title>{{ block "title" . }}{{ .Title }} | {{ .Site.Title }}{{ end }}</title>
<link href='https://assets.kosmos.org/fonts/open-sans/open-sans.css' rel='stylesheet'>
<link href="/css/main.css" rel="stylesheet" />
{{ $css := resources.Get "css/main.css" | resources.Fingerprint }}
<link rel="stylesheet" href="{{ $css.Permalink }}" />
</head>
<body class="text-center">
{{ partial "topnav" . }}