mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-28 19:43:31 +08:00
Add style to the widget links
This commit is contained in:
parent
53cc81d76a
commit
b3c44144f9
@ -65,3 +65,11 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Color for widget titles */
|
||||
.widget-title a.widget-link {
|
||||
color: var(--accent-color);
|
||||
&:hover {
|
||||
color: var(--accent-color-darker);
|
||||
}
|
||||
}
|
||||
|
@ -7,7 +7,9 @@
|
||||
<div class="widget-icon">
|
||||
{{ partial "helper/icon" "infinity" }}
|
||||
</div>
|
||||
<h2 class="widget-title section-title"><a href="{{ $archivesPage.RelPermalink }}">{{ T "widget.archives.title" }}</a></h2>
|
||||
<h2 class="widget-title section-title">
|
||||
<a class="widget-link" href="{{ $archivesPage.RelPermalink }}">{{ T "widget.archives.title" }}</a>
|
||||
</h2>
|
||||
|
||||
{{ $pages := where $context.Site.RegularPages "Type" "in" $context.Site.Params.mainSections }}
|
||||
{{ $notHidden := where $context.Site.RegularPages "Params.hidden" "!=" true }}
|
||||
|
@ -7,7 +7,9 @@
|
||||
<div class="widget-icon">
|
||||
{{ partial "helper/icon" "categories" }}
|
||||
</div>
|
||||
<h2 class="widget-title section-title"><a href="{{ $categoriesPage.RelPermalink }}">{{ default "Categories" $categoriesPage.Title }}</a></h2>
|
||||
<h2 class="widget-title section-title">
|
||||
<a class="widget-link" href="{{ $categoriesPage.RelPermalink }}">{{ default "Categories" $categoriesPage.Title }}</a>
|
||||
</h2>
|
||||
|
||||
<div class="tagCloud-tags">
|
||||
{{ range first $limit $context.Site.Taxonomies.categories.ByCount }}
|
||||
|
@ -7,7 +7,9 @@
|
||||
<div class="widget-icon">
|
||||
{{ partial "helper/icon" "tag" }}
|
||||
</div>
|
||||
<h2 class="widget-title section-title"><a href="{{ $tagsPage.RelPermalink }}">{{ default "Tags" $tagsPage.Title }}</a></h2>
|
||||
<h2 class="widget-title section-title">
|
||||
<a class="widget-link" href="{{ $tagsPage.RelPermalink }}">{{ default "Tags" $tagsPage.Title }}</a>
|
||||
</h2>
|
||||
|
||||
<div class="tagCloud-tags">
|
||||
{{ range first $limit $context.Site.Taxonomies.tags.ByCount }}
|
||||
|
Loading…
Reference in New Issue
Block a user