updated theme, and bumped version

I made it easier for users to change 404, and 403 pages
along with making it so if projects or resources aren't used then they are removed from the menu.

This theme is now V2.1.1
This commit is contained in:
2024-08-21 00:31:35 -07:00
parent 0f90d0ec4b
commit 0ab11d6662
6 changed files with 45 additions and 30 deletions

View File

@ -1,3 +1,4 @@
{{- if .Site.Menus.projects }}
<li class="menu-item menu-item-has-children">
<button class="main-navigation-arrow-btn" aria-expanded="false">
<span class="screen-reader-text">{{ i18n "sub-menu-toggle" }}</span>
@ -11,20 +12,21 @@
<use xlink:href="#aXRKiF9KfND" mask="url(#f)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use1" />
<use xlink:href="#bEbTfLzOf3X" mask="url(#h)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use2" />
<use xlink:href="#cCW18mz3Gnz" mask="url(#j)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use3" />
</svg>
</svg>
</button>
<ul class="sub-menu">
{{ with .Site.Menus.projects }}
{{ with .Site.Menus.projects }}
{{ range sort . }}
<li class="menu-item menu-item-type-post_type menu-item-object-page">
<a href="{{ .URL }}" {{ if eq $.RelPermalink .URL }} class="active" {{ end }}>{{ .Name }}</a>
</li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</li>
{{- end }}
{{- if .Site.Menus.resources }}
<li class="menu-item menu-item-has-children">
<button class="main-navigation-arrow-btn" aria-expanded="false">
<span class="screen-reader-text">{{ i18n "sub-menu-toggle" }}</span>
@ -38,16 +40,16 @@
<use xlink:href="#aXRKiF9KfND" mask="url(#f)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use1" />
<use xlink:href="#bEbTfLzOf3X" mask="url(#h)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use2" />
<use xlink:href="#cCW18mz3Gnz" mask="url(#j)" transform="matrix(0.375,0,0,0.35897436,3,3.5192308)" id="use3" />
</svg>
</svg>
</button>
<ul class="sub-menu">
{{ with .Site.Menus.resources }}
{{ with .Site.Menus.resources }}
{{ range sort . }}
<li class="menu-item menu-item-type-post_type menu-item-object-page">
<a href="{{ .URL }}" {{ if eq $.RelPermalink .URL }} class="active" {{ end }}>{{ .Name }}</a>
</li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</li>
{{- end }}