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]
|
[params]
|
||||||
katexCssUrl = "//static.danilafe.com/katex/katex.min.css"
|
katexCssUrl = "//static.danilafe.com/katex/katex.min.css"
|
||||||
|
normalizeCssUrl = "//static.danilafe.com/normalize/normalize.min.css"
|
||||||
plausibleAnalyticsDomain = "danilafe.com"
|
plausibleAnalyticsDomain = "danilafe.com"
|
||||||
siteSourceUrl = "https://dev.danilafe.com/Web-Projects/blog-static/src/branch/master"
|
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" }}
|
{{ define "main" }}
|
||||||
<h2>{{ .Title }} </h2>
|
<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>
|
<script type="module" src="{{ .Site.BaseURL }}/graph/graph.js"></script>
|
||||||
<style>
|
<style>
|
||||||
#graph-container {
|
#graph-container {
|
||||||
|
|
|
@ -10,8 +10,8 @@
|
||||||
<meta name="matrix-highlight-comments" content="{{ . }}">
|
<meta name="matrix-highlight-comments" content="{{ . }}">
|
||||||
{{ end }}
|
{{ 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="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">
|
<link rel="stylesheet" href="{{ .Site.Params.katexCssUrl }}" crossorigin="anonymous">
|
||||||
{{ range .AlternativeOutputFormats -}}
|
{{ range .AlternativeOutputFormats -}}
|
||||||
<link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" href="{{ .Permalink | safeURL }}">
|
<link rel="{{ .Rel }}" type="{{ .MediaType.Type | html }}" href="{{ .Permalink | safeURL }}">
|
||||||
|
|
Loading…
Reference in New Issue
Block a user