add: disable select for some component.

This commit is contained in:
Junyi Hou 2023-11-18 19:54:41 +08:00
parent c9e7a81509
commit 879fab29eb
7 changed files with 31 additions and 8 deletions

View file

@ -1,9 +1,9 @@
<div class="header-top">
<div class="header-top noselect">
{{ partial "site-title.html" . }}
{{ partial "social.html" . }}
</div>
{{ if .Site.Menus.main }}
<nav>
<nav class="noselect">
{{ $currentPage := . }}
{{ range .Site.Menus.main }}
<a class="{{if or ($currentPage.IsMenuCurrent "main" .) ($currentPage.HasMenuCurrent "main" .) }} active{{end}}" href="{{ .URL | absLangURL }}" title="{{ .Title }}">{{ .Name }}</a>