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" . }}
{{ if ne .Type "docs" }}
<div class="container">
{{ partial "site_footer.html" . }}
</div>
{{ end }}
{{ partial "citation.html" . }}
</body>
</html>
</html>
+3 -19
View File
@@ -1,19 +1,3 @@
<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default "en-us" }}">
{{ 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>
{{- define "main" -}}
{{ partial "docs_layout.html" . }}
{{- end -}}
+3 -19
View File
@@ -1,19 +1,3 @@
<!DOCTYPE html>
<html lang="{{ site.LanguageCode | default "en-us" }}">
{{ 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>
{{- define "main" -}}
{{ partial "docs_layout.html" . }}
{{- end -}}
+1 -3
View File
@@ -1,9 +1,7 @@
{{- define "main" -}}
{{ 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/" }}
{{ end }}
{{- define "main" -}}
{{ partial "widget_page.html" . }}
{{- end -}}
-1
View File
@@ -23,4 +23,3 @@
{{ end }}
</p>
</footer>
-2
View File
@@ -1,5 +1,3 @@
{{- define "main" -}}
{{ partial "widget_page.html" . }}
{{- end -}}