🎉 Hello World

This commit is contained in:
2020-03-03 18:56:59 +01:00
commit 94877013bd
55 changed files with 1479 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
{{- with site.Params.syntax -}}
{{- $use := "none" -}}
{{- if and (isset . "use") (ne .use "") -}}
{{- $use = .use | lower -}}
{{- end -}}
{{- $syntaxJS := "" -}}
{{- if eq $use "hljs" -}}
{{- $syntaxJS = "js/hljs.js" -}}
{{- else if eq $use "prismjs" -}}
{{- $syntaxJS = "js/prism.js" -}}
{{- end -}}
{{- if ne $syntaxJS "" -}}
{{- $js := resources.Get $syntaxJS | resources.Minify | resources.Fingerprint "sha384" -}}
<script src="{{- $js.RelPermalink -}}" integrity="{{- $js.Data.Integrity -}}"></script>
{{- if eq $use "hljs" -}}
<script>hljs.initHighlightingOnLoad();</script>
{{- end -}}
{{- end -}}
{{- end -}}