mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-17 22:14:03 +00:00
refactor docs to use baseof
This commit is contained in:
1 parent
dcd3c05abd
commit
9263fcd3c9
6 files changed
+10
-46
No files matched your search
@@ -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
@@ -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,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
@@ -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 -}}
|
||||||
@@ -23,4 +23,3 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</p>
|
</p>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
@@ -1,5 +1,3 @@
|
|||||||
{{- define "main" -}}
|
{{- define "main" -}}
|
||||||
|
|
||||||
{{ partial "widget_page.html" . }}
|
{{ partial "widget_page.html" . }}
|
||||||
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
Reference in new issue
Block a user