update header and breadcrumb
This commit is contained in:
parent
ab25a29fb8
commit
8ee57a7ff5
@ -10,9 +10,10 @@
|
|||||||
href="{{ $base | relLangURL }}">
|
href="{{ $base | relLangURL }}">
|
||||||
{{ i18n "home" | default "Home" }}
|
{{ i18n "home" | default "Home" }}
|
||||||
</a>
|
</a>
|
||||||
|
<span class="inlin-block mr-1">/</span>
|
||||||
</li>
|
</li>
|
||||||
{{ range $i, $e:= $context.Ancestors.Reverse }}
|
{{ range $i, $e:= $context.Ancestors.Reverse }}
|
||||||
{{ if ne .Title "Pages" }}
|
{{ if and (not .IsHome) (ne .Title "Pages") }}
|
||||||
<li>
|
<li>
|
||||||
<a
|
<a
|
||||||
class="text-primary dark:text-darkmode-primary"
|
class="text-primary dark:text-darkmode-primary"
|
||||||
|
@ -12,8 +12,7 @@
|
|||||||
<input id="nav-toggle" type="checkbox" class="hidden" />
|
<input id="nav-toggle" type="checkbox" class="hidden" />
|
||||||
<label
|
<label
|
||||||
for="nav-toggle"
|
for="nav-toggle"
|
||||||
class="order-3 cursor-pointer text-dark dark:text-white lg:order-1"
|
class="order-3 cursor-pointer text-dark dark:text-white lg:order-1">
|
||||||
>
|
|
||||||
<span id="show-button" class="flex items-center lg:order-1 lg:hidden">
|
<span id="show-button" class="flex items-center lg:order-1 lg:hidden">
|
||||||
<svg class="h-6 fill-current" viewBox="0 0 20 20">
|
<svg class="h-6 fill-current" viewBox="0 0 20 20">
|
||||||
<title>Menu Open</title>
|
<title>Menu Open</title>
|
||||||
@ -23,14 +22,12 @@
|
|||||||
<span
|
<span
|
||||||
id="hide-button"
|
id="hide-button"
|
||||||
for="nav-toggle"
|
for="nav-toggle"
|
||||||
class="hidden items-center lg:order-1"
|
class="hidden items-center lg:order-1">
|
||||||
>
|
|
||||||
<svg class="h-6 fill-current" viewBox="0 0 20 20">
|
<svg class="h-6 fill-current" viewBox="0 0 20 20">
|
||||||
<title>Menu Close</title>
|
<title>Menu Close</title>
|
||||||
<polygon
|
<polygon
|
||||||
points="11 9 22 9 22 11 11 11 11 22 9 22 9 11 -2 11 -2 9 9 9 9 -2 11 -2"
|
points="11 9 22 9 22 11 11 11 11 22 9 22 9 11 -2 11 -2 9 9 9 9 -2 11 -2"
|
||||||
transform="rotate(45 10 10)"
|
transform="rotate(45 10 10)"></polygon>
|
||||||
></polygon>
|
|
||||||
</svg>
|
</svg>
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
@ -68,17 +65,18 @@
|
|||||||
<a
|
<a
|
||||||
class="nav-dropdown-link {{ if $active }}
|
class="nav-dropdown-link {{ if $active }}
|
||||||
active
|
active
|
||||||
{{ end }}"
|
{{- end -}}"
|
||||||
{{ if findRE `^http` .URL }}
|
{{ if findRE `^http` .URL }}
|
||||||
target="_blank" rel="noopener"
|
target="_blank" rel="noopener"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
href="{{ if findRE `^#` .URL }}
|
href="{{- if findRE `^#` .URL -}}
|
||||||
{{ if not $.IsHome }}
|
{{- if not $.IsHome -}}
|
||||||
{{ site.BaseURL | relLangURL }}
|
{{- site.BaseURL | relLangURL -}}
|
||||||
{{ end }}{{ .URL }}
|
{{- end }}
|
||||||
{{ else }}
|
{{- .URL -}}
|
||||||
{{ .URL | relLangURL }}
|
{{- else -}}
|
||||||
{{ end }}">
|
{{- .URL | relLangURL -}}
|
||||||
|
{{- end -}}">
|
||||||
{{ .Name }}
|
{{ .Name }}
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
@ -88,17 +86,17 @@
|
|||||||
{{ else }}
|
{{ else }}
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a
|
<a
|
||||||
class="nav-link {{ if $active }}active{{ end }}"
|
class="nav-link {{ if $active }}active{{- end -}}"
|
||||||
{{ if findRE `^http` .URL }}
|
{{ if findRE `^http` .URL }}
|
||||||
target="_blank" rel="noopener"
|
target="_blank" rel="noopener"
|
||||||
{{ end }}
|
{{ end }}
|
||||||
href="{{ if findRE `^#` .URL }}
|
href="{{- if findRE `^#` .URL -}}
|
||||||
{{ if not $.IsHome }}
|
{{- if not $.IsHome -}}
|
||||||
{{ site.BaseURL | relLangURL }}
|
{{- site.BaseURL | relLangURL -}}
|
||||||
{{ end }}{{ .URL }}
|
{{- end }}{{- .URL -}}
|
||||||
{{ else }}
|
{{- else -}}
|
||||||
{{ .URL | relLangURL }}
|
{{- .URL | relLangURL -}}
|
||||||
{{ end }}"
|
{{- end -}}"
|
||||||
>{{ .Name }}</a
|
>{{ .Name }}</a
|
||||||
>
|
>
|
||||||
</li>
|
</li>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "hugoplate",
|
"name": "hugoplate",
|
||||||
"description": "hugo tailwindcss boilerplate",
|
"description": "hugo tailwindcss boilerplate",
|
||||||
"version": "1.6.0",
|
"version": "1.6.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "zeon.studio",
|
"author": "zeon.studio",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user