Hermit-V2 Theme Update

This commit is contained in:
GitHub Action
2023-12-22 16:07:33 +00:00
parent e9423cda01
commit d6361ce459
2 changed files with 14 additions and 13 deletions

View File

@ -39,7 +39,7 @@ To update submodule and to have latest version of the theme with your project, r
git submodule update --remote git submodule update --remote
``` ```
## GOOD-TO-KNOW LIST ## First Use Knowledge
### Features Inherited from Original Theme ### Features Inherited from Original Theme
@ -96,6 +96,7 @@ The following icons are supported, please make sure the `name` filed is exactly
| `shutterstock` | `freepik` | `adobestock` | `123rf` | | `shutterstock` | `freepik` | `adobestock` | `123rf` |
| `dreamstime` | `dribbble` | `behance` | `paypal` | | `dreamstime` | `dribbble` | `behance` | `paypal` |
| `twitch` | `qq` | `mastodon` | `discord` | | `twitch` | `qq` | `mastodon` | `discord` |
| `etsy` | `tiktok` | | |
If that's not enough, you can see [Overriding templates](#overriding-templates) section. If that's not enough, you can see [Overriding templates](#overriding-templates) section.

View File

@ -1,12 +1,12 @@
{{- range .Site.Menus.main }} {{- range .Site.Menus.main -}}
{{- if .HasChildren }} {{- if .HasChildren -}}
<a href="{{ .URL | absLangURL }}" class="has-children">{{ .Name }}</a> <a href="{{ .URL | absLangURL }}" class="has-children">{{ .Name }}</a>
<span class="sub-menu"> <span class="sub-menu">
{{- range .Children }} {{- range .Children -}}
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a> <a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{- end }} {{- end -}}
</span> </span>
{{- else }} {{- else -}}
<a href="{{ .URL | absLangURL }}">{{ .Name }}</a> <a href="{{ .URL | absLangURL }}">{{ .Name }}</a>
{{- end }} {{- end -}}
{{- end }} {{- end -}}