Extract more CSS/JS into static files on static.danilafe.com

This commit is contained in:
Danila Fedorin 2023-12-30 14:30:27 -08:00
parent 0d721d48a4
commit f5be44887b
3 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,6 @@
[params]
katexCssUrl = "//static.danilafe.com/katex/katex.min.css"
normalizeCssUrl = "//static.danilafe.com/normalize/normalize.min.css"
plausibleAnalyticsDomain = "danilafe.com"
siteSourceUrl = "https://dev.danilafe.com/Web-Projects/blog-static/src/branch/master"
visNetworkJsUrl = "//static.danilafe.com/vis-network/vis-network.min.js"

View File

@ -1,6 +1,6 @@
{{ define "main" }}
<h2>{{ .Title }} </h2>
<script src="//unpkg.com/vis-network@9.1.0/dist/vis-network.min.js"></script>
<script src="{{ .Site.Params.visNetworkJsUrl }}"></script>
<script type="module" src="{{ .Site.BaseURL }}/graph/graph.js"></script>
<style>
#graph-container {

View File

@ -11,7 +11,7 @@
{{ end }}
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Raleway&family=Lora&display=block" media="screen">
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css" media="screen">
<link rel="stylesheet" href="{{ .Site.Params.normalizeCssUrl }}" media="screen">
<link rel="stylesheet" href="{{ .Site.Params.katexCssUrl }}" crossorigin="anonymous">
{{ range .AlternativeOutputFormats -}}
<link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" href="{{ .Permalink | safeURL }}">