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,4 +1,4 @@
<footer class="common-footer">
<footer class="common-footer noselect">
{{ $languagesCount := $.Site.Home.AllTranslations }}
{{ if gt $languagesCount 1 }}
{{ partial "language-switcher.html" . }}

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>

View file

@ -1,7 +1,7 @@
{{ if or ( .Paginator.HasPrev ) ( .Paginator.HasNext ) }}
{{ $toNewPostsMessage := i18n "toNewPosts" }}
{{ $toOldPostsMessage := i18n "toOldPosts" }}
<div class="pagination">
<div class="pagination noselect">
<div class="left pagination-item {{ if not .Paginator.HasPrev }}disabled{{ end }}">
{{ if .Paginator.HasPrev }}
<a href="{{ .Paginator.Prev.URL }}">{{ $toNewPostsMessage }}</a>

View file

@ -4,7 +4,7 @@
{{ end }}
{{ $machineDateFormat := "2006-01-02" }}
<div class="post-info">
<div class="post-info noselect">
{{ if .Params.date }}
<div class="post-date dt-published">
<a class="u-url" href="{{ .RelPermalink }}"><time datetime="{{ .Params.date.Format $machineDateFormat }}">