Теги в списке статей
All checks were successful
Build and deploy mmote.ru / Build-And-Deploy (push) Successful in 34s

This commit is contained in:
MultiMote 2024-08-16 15:14:36 +03:00
parent 23858b6d16
commit 200841a088
3 changed files with 15 additions and 2 deletions

View File

@ -7,7 +7,8 @@ $navbar-color: #404c5e;
$navbar-text-color: white; $navbar-text-color: white;
$link-color: #175eaf; $link-color: #175eaf;
$link-hover-color: #3ea7e4; $link-hover-color: #3ea7e4;
$tag-color: #728fb6; $category-color: #728fb6;
$tag-color: #af82b1;
$page-bg-color: #dfdfdf; $page-bg-color: #dfdfdf;
$page-bg-image: "/images/bg.jpg"; $page-bg-image: "/images/bg.jpg";

View File

@ -157,6 +157,7 @@ section.posts {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 0.5rem; gap: 0.5rem;
align-items: center;
} }
footer time { footer time {
@ -164,9 +165,16 @@ section.posts {
} }
footer .category { footer .category {
color: $category-color;
border: 1px solid $category-color;
padding: 0 0.5rem;
}
footer .tag {
color: $tag-color; color: $tag-color;
border: 1px solid $tag-color; border: 1px solid $tag-color;
padding: 0 0.5rem; padding: 0 0.5rem;
font-size: 0.8rem;
} }
} }
@ -205,7 +213,7 @@ section.posts {
.toc { .toc {
margin-top: 1em; margin-top: 1em;
ul { ul {
list-style-position: inside; list-style-position: inside;
margin: 0; margin: 0;

View File

@ -31,6 +31,10 @@
{{ range (.GetTerms "categories") }} {{ range (.GetTerms "categories") }}
<a class="category" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> <a class="category" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }} {{ end }}
{{ range (.GetTerms "tags") }}
<a class="tag" href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
{{ end }}
</footer> </footer>
</article> </article>
{{ end }} {{ end }}