Add new settings to extend layout #58

This commit is contained in:
Valvin
2019-10-07 13:32:31 +02:00
parent 156b1951e1
commit e4f4cb51a0
2 changed files with 10 additions and 2 deletions
+5 -1
View File
@@ -63,4 +63,8 @@
<script type="text/javascript"> <script type="text/javascript">
if (hljs) if (hljs)
hljs.initHighlightingOnLoad(); hljs.initHighlightingOnLoad();
</script> </script>
{{- $custom_js := $.Param "reveal_hugo.custom_js" -}}
{{- if $custom_js -}}
<script type="text/javascript" src="{{ $custom_js | relURL }}"></script>
{{- end -}}
+5 -1
View File
@@ -20,4 +20,8 @@
<!-- Theme used for syntax highlighting of code --> <!-- Theme used for syntax highlighting of code -->
{{- $highlight_theme := $.Param "reveal_hugo.highlight_theme" | default "default" -}} {{- $highlight_theme := $.Param "reveal_hugo.highlight_theme" | default "default" -}}
<link rel="stylesheet" href="{{ printf "%s/%s.min.css" $highlight_location $highlight_theme | relURL }}"> <link rel="stylesheet" href="{{ printf "%s/%s.min.css" $highlight_location $highlight_theme | relURL }}">
{{- end }} {{- end }}
{{- $custom_css := $.Param "reveal_hugo.custom_css" -}}
{{- if $custom_css -}}
<link rel="stylesheet" href="{{ $custom_css | relURL }}" id="custom_css">
{{- end -}}