refactor docs to use baseof

This commit is contained in:
George Cushen committed 2019-06-01 15:15:19 +01:00
1 parent dcd3c05abd
commit 9263fcd3c9
6 files changed
+10 -46

No files matched your search

+3 -2
View File
@@ -13,12 +13,13 @@
{{ partial "site_js.html" . }} {{ partial "site_js.html" . }}
{{ if ne .Type "docs" }}
<div class="container"> <div class="container">
{{ partial "site_footer.html" . }} {{ partial "site_footer.html" . }}
</div> </div>
{{ end }}
{{ partial "citation.html" . }} {{ partial "citation.html" . }}
</body> </body>
</html>
</html>
+3 -19
View File
@@ -1,19 +1,3 @@
<!DOCTYPE html> {{- define "main" -}}
<html lang="{{ site.LanguageCode | default "en-us" }}"> {{ partial "docs_layout.html" . }}
{{- end -}}
{{ partial "site_head.html" . }}
<body id="top" data-spy="scroll" data-target="{{ if or .IsHome (eq .Type "widget_page") }}#navbar-main{{else}}#TableOfContents{{end}}" data-offset="71" {{ if not (.Scratch.Get "light") }}class="dark"{{end}}>
{{ partial "search" . }}
{{ partial "navbar.html" . }}
{{ partial "docs_layout.html" . }}
{{ partial "site_js.html" . }}
</body>
</html>
+3 -19
View File
@@ -1,19 +1,3 @@
<!DOCTYPE html> {{- define "main" -}}
<html lang="{{ site.LanguageCode | default "en-us" }}"> {{ partial "docs_layout.html" . }}
{{- end -}}
{{ partial "site_head.html" . }}
<body id="top" data-spy="scroll" data-target="{{ if or .IsHome (eq .Type "widget_page") }}#navbar-main{{else}}#TableOfContents{{end}}" data-offset="71" {{ if not (.Scratch.Get "light") }}class="dark"{{end}}>
{{ partial "search" . }}
{{ partial "navbar.html" . }}
{{ partial "docs_layout.html" . }}
{{ partial "site_js.html" . }}
</body>
</html>
+1 -3
View File
@@ -1,9 +1,7 @@
{{- define "main" -}}
{{ if not (isset site.Params "color_theme") }} {{ if not (isset site.Params "color_theme") }}
{{ errorf "Please complete the installation of Academic by following the steps at https://sourcethemes.com/academic/docs/install/" }} {{ errorf "Please complete the installation of Academic by following the steps at https://sourcethemes.com/academic/docs/install/" }}
{{ end }} {{ end }}
{{- define "main" -}}
{{ partial "widget_page.html" . }} {{ partial "widget_page.html" . }}
{{- end -}} {{- end -}}
-1
View File
@@ -23,4 +23,3 @@
{{ end }} {{ end }}
</p> </p>
</footer> </footer>
-2
View File
@@ -1,5 +1,3 @@
{{- define "main" -}} {{- define "main" -}}
{{ partial "widget_page.html" . }} {{ partial "widget_page.html" . }}
{{- end -}} {{- end -}}