mirror of
https://github.com/tiennm99/HugoBlox-kit.git
synced 2026-10-13 02:14:21 +00:00
feat: remove deprecated Docs layout - was replaced with Book in v5.0b0
This commit is contained in:
1 parent
3b4bcad8c6
commit
19ca4a39f2
6 files changed
-160
No files matched your search
@@ -1,23 +0,0 @@
|
|||||||
---
|
|
||||||
# Documentation: https://wowchemy.com/docs/managing-content/
|
|
||||||
|
|
||||||
title: "{{ replace .Name "-" " " | title }}"
|
|
||||||
linktitle: "{{ replace .Name "-" " " | title }}"
|
|
||||||
summary:
|
|
||||||
date: {{ .Date }}
|
|
||||||
lastmod: {{ .Date }}
|
|
||||||
draft: false # Is this a draft? true/false
|
|
||||||
toc: true # Show table of contents? true/false
|
|
||||||
type: docs # Do not modify.
|
|
||||||
|
|
||||||
# Add menu entry to sidebar.
|
|
||||||
# - Substitute `example` with the name of your course/documentation folder.
|
|
||||||
# - name: Declare this menu item as a parent with ID `name`.
|
|
||||||
# - parent: Reference a parent ID if this page is a child.
|
|
||||||
# - weight: Position of link in menu.
|
|
||||||
menu:
|
|
||||||
example:
|
|
||||||
name: YourParentID
|
|
||||||
# parent: YourParentID
|
|
||||||
weight: 1
|
|
||||||
---
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{{- define "main" -}}
|
|
||||||
{{ partial "docs_layout.html" . }}
|
|
||||||
{{- end -}}
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
{{- define "main" -}}
|
|
||||||
{{ partial "docs_layout.html" . }}
|
|
||||||
{{- end -}}
|
|
||||||
@@ -1,56 +0,0 @@
|
|||||||
{{ $current_page := . }}
|
|
||||||
|
|
||||||
<div class="container-fluid docs">
|
|
||||||
<div class="row flex-xl-nowrap">
|
|
||||||
<div class="col-12 col-md-3 col-xl-2 docs-sidebar">
|
|
||||||
{{ partial "docs_sidebar" . }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ if .Params.toc }}
|
|
||||||
<div class="d-none d-xl-block col-xl-2 docs-toc">
|
|
||||||
<ul class="nav toc-top">
|
|
||||||
<li><a href="#" id="back_to_top" class="docs-toc-title">{{ i18n "on_this_page" }}</a></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
{{ .TableOfContents }}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<main class="col-12 col-md-9 col-xl-8 py-md-3 pl-md-5 docs-content" role="main">
|
|
||||||
|
|
||||||
<article class="article">
|
|
||||||
|
|
||||||
<div class="docs-article-container">
|
|
||||||
<h1>{{ .Title }}</h1>
|
|
||||||
|
|
||||||
<div class="article-style">
|
|
||||||
{{ .Content }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{ partial "tags.html" . }}
|
|
||||||
|
|
||||||
{{ if site.Params.docs_section_pager }}
|
|
||||||
<div class="article-widget">
|
|
||||||
{{ partial "section_pager" . }}
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="body-footer">
|
|
||||||
<p>{{ i18n "last_updated" }} {{ $.Lastmod.Format site.Params.date_format }}</p>
|
|
||||||
|
|
||||||
{{ partial "page_edit" . }}
|
|
||||||
|
|
||||||
{{ partial "comments" . }}
|
|
||||||
|
|
||||||
{{ partial "page_related" . }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</article>
|
|
||||||
|
|
||||||
{{ partial "site_footer" . }}
|
|
||||||
|
|
||||||
</main>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
{{ $current_page := . }}
|
|
||||||
|
|
||||||
{{/* Dynamically load menu for this docs page. */}}
|
|
||||||
{{/* Attempt to get menu name from `menu_name` param, Hugo's front matter menu config, or the last dir of filepath. */}}
|
|
||||||
{{ $menu_name := "" }}
|
|
||||||
{{ if .Params.menu | and (not (reflect.IsMap .Params.menu)) | and (not (reflect.IsSlice .Params.menu)) }}
|
|
||||||
{{ $menu_name = .Params.menu }}
|
|
||||||
{{ else if .Params.menu | and (or (reflect.IsMap .Params.menu) (reflect.IsSlice .Params.menu)) }}
|
|
||||||
{{ range $k, $v := .Params.menu }}
|
|
||||||
{{ $menu_name = $k }}
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
{{ $menu_name = .Params.menu_name | default $menu_name | default (path.Base (path.Split .File).Dir) }}
|
|
||||||
{{ if not (index site.Menus $menu_name) }}
|
|
||||||
{{ errorf "Please define menu items named `menu: %s:` in your %s front matter or define `[[menu.%s]]` in `config/default/menus.toml`. See https://wowchemy.com/docs/managing-content/#menus" $menu_name .Path $menu_name }}
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
<form class="docs-search d-flex align-items-center">
|
|
||||||
<button class="btn docs-toggle d-md-none p-0 mr-3" type="button" data-toggle="collapse" data-target="#docs-nav" aria-controls="docs-nav" aria-expanded="false" aria-label="Toggle section navigation">
|
|
||||||
<span><i class="fas fa-bars"></i></span>
|
|
||||||
</button>
|
|
||||||
|
|
||||||
{{ if eq (lower site.Params.search.provider) "wowchemy" }}
|
|
||||||
<input name="q" type="search" class="form-control" placeholder="{{ i18n "search_placeholder" }}" autocomplete="off">
|
|
||||||
{{ end }}
|
|
||||||
</form>
|
|
||||||
|
|
||||||
<nav class="collapse docs-links" id="docs-nav">
|
|
||||||
{{ with (index site.Menus $menu_name) }}
|
|
||||||
|
|
||||||
{{/* Enable Updates layout to order by descending version name. */}}
|
|
||||||
{{ $menu := (index site.Menus $menu_name) }}
|
|
||||||
{{ if eq ($.Scratch.Get "docs_menu_sort" | default "weight") "name_reverse" }}
|
|
||||||
{{ $menu = sort $menu "Title" "desc" }}
|
|
||||||
{{ else }}
|
|
||||||
{{ $menu = $menu.ByWeight }}
|
|
||||||
{{end}}
|
|
||||||
|
|
||||||
{{ range $menu }}
|
|
||||||
<div class="docs-toc-item{{ if $current_page.IsMenuCurrent $menu_name . }} active{{ end }}">
|
|
||||||
<a class="docs-toc-link" {{ if .URL }}href="{{ .URL }}"{{else if .HasChildren }}href="{{ (index .Children 0).URL }}"{{end}}>{{ .Name }}</a>
|
|
||||||
|
|
||||||
{{- if .HasChildren }}
|
|
||||||
<ul class="nav docs-sidenav">
|
|
||||||
{{ range .Children }}
|
|
||||||
<li {{ if $current_page.IsMenuCurrent $menu_name . }}class="active"{{ end }}>
|
|
||||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
{{ end }}
|
|
||||||
</ul>
|
|
||||||
{{ end }}
|
|
||||||
|
|
||||||
</div>
|
|
||||||
{{ end }}
|
|
||||||
{{ end }}
|
|
||||||
</nav>
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
{{- define "main" -}}
|
|
||||||
|
|
||||||
{{ partial "page_header.html" . }}
|
|
||||||
|
|
||||||
<div class="universal-wrapper">
|
|
||||||
{{ with .Content }}
|
|
||||||
<div class="article-style">{{ . }}</div>
|
|
||||||
{{ end }}
|
|
||||||
<ul class="list-unstyled">
|
|
||||||
{{ if gt (len .Sections) 0}}
|
|
||||||
{{ range .Sections }}
|
|
||||||
<li><h5><a href="{{.RelPermalink}}">{{.LinkTitle}}</a></h5> {{with .Params.summary}}<p>{{. | plainify | emojify}}</p>{{end}}</li>
|
|
||||||
{{end}}
|
|
||||||
{{end}}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{{- end -}}
|
|
||||||
Reference in new issue
Block a user