Add syntax highlighting, edit theme, and revise AdvMake documentation
This commit is contained in:
@@ -24,7 +24,6 @@
|
||||
{{ if .Site.Params.editPage -}}
|
||||
{{ partial "main/edit-page.html" . }}
|
||||
{{ end -}}
|
||||
|
||||
</main>
|
||||
</div>
|
||||
{{ end }}
|
||||
@@ -8,4 +8,5 @@
|
||||
{{ block "head/seo" . }}{{ partial "head/seo.html" . }}{{ end }}
|
||||
{{ block "head/favicons" . }}{{ partial "head/favicons.html" . }}{{ end }}
|
||||
{{ block "head/script-header" . }}{{ partial "head/script-header.html" . }}{{ end }}
|
||||
{{ block "head/highlight" . }}{{ partial "head/highlight.html" . }}{{ end }}
|
||||
</head>
|
||||
3
layouts/partials/head/highlight.html
Normal file
3
layouts/partials/head/highlight.html
Normal file
@@ -0,0 +1,3 @@
|
||||
<link rel="stylesheet" href="/css/highlightjs/dracula.min.css">
|
||||
<script src="/js/highlightjs/highlight.min.js"></script>
|
||||
<script>hljs.initHighlightingOnLoad();</script>
|
||||
@@ -1,3 +1,6 @@
|
||||
<a class="f6 link dim ph3 pv2 mb2 dib white bg-{{ .Get "color" }}" style="color: white;" href="{{ .Get "link" }}">
|
||||
<a class="btn" style="color: {{ .Get "fgcolor" }}; background-color: {{ .Get "bgcolor" }};" href="{{ .Get "link" }}">
|
||||
{{if or (.Get "icon")}}
|
||||
<span class="iconify icon:{{.Get "icon"}}"></span>
|
||||
{{end}}
|
||||
{{ .Get "text" }}
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user