init
This commit is contained in:
commit
e3c43e06ff
120 changed files with 16894 additions and 0 deletions
23
themes/hugoplate/layouts/partials/widgets/categories.html
Executable file
23
themes/hugoplate/layouts/partials/widgets/categories.html
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
<!-- categories -->
|
||||
{{ if isset site.Taxonomies "categories" }}
|
||||
{{ if not (eq (len site.Taxonomies.categories) 0) }}
|
||||
<div class="mb-8">
|
||||
<h5 class="mb-6">{{ i18n "categories" }}</h5>
|
||||
<div class="bg-theme-light rounded p-8">
|
||||
<ul class="space-y-4">
|
||||
{{ range $name, $items := site.Taxonomies.categories }}
|
||||
<li>
|
||||
<a
|
||||
class="hover:text-primary {{ if (and (eq $.Page.Kind `term`) (eq $.Page.Type `categories`) (eq $.Page.Title .Page.Title)) }}
|
||||
active
|
||||
{{ end }} flex justify-between"
|
||||
href="{{ .Page.RelPermalink }}">
|
||||
{{ .Page.Title }} <span>( {{ len $items }} )</span>
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
23
themes/hugoplate/layouts/partials/widgets/tags.html
Executable file
23
themes/hugoplate/layouts/partials/widgets/tags.html
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
<!-- tags -->
|
||||
{{ if isset site.Taxonomies "tags" }}
|
||||
{{ if not (eq (len site.Taxonomies.tags) 0) }}
|
||||
<div class="mb-8">
|
||||
<h5 class="mb-6">Tags</h5>
|
||||
<div class="bg-theme-light rounded p-6">
|
||||
<ul>
|
||||
{{ range $name, $items := site.Taxonomies.tags }}
|
||||
<li class="inline-block">
|
||||
<a
|
||||
class="hover:bg-primary {{ if (and (eq $.Page.Kind `term`) (eq $.Page.Type `tags`) (eq $.Page.Title .Page.Title)) }}
|
||||
active
|
||||
{{ end }} m-1 block rounded bg-white px-3 py-1 hover:text-white"
|
||||
href="{{ .Page.RelPermalink }}">
|
||||
{{ .Page.Title }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
3
themes/hugoplate/layouts/partials/widgets/widget-wrapper.html
Executable file
3
themes/hugoplate/layouts/partials/widgets/widget-wrapper.html
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
{{ range .Widgets }}
|
||||
{{ partial ( print "widgets/" . ) $.Scope }}
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue