Extract more CSS/JS into static files on static.danilafe.com
This commit is contained in:
parent
0d721d48a4
commit
f5be44887b
|
@ -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"
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -10,8 +10,8 @@
|
|||
<meta name="matrix-highlight-comments" content="{{ . }}">
|
||||
{{ 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="https://fonts.googleapis.com/css2?family=Inconsolata:wght@400;700&family=Raleway&family=Lora&display=block" 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 }}">
|
||||
|
|
Loading…
Reference in New Issue
Block a user