Теги в списке статей
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;
$link-color: #175eaf;
$link-hover-color: #3ea7e4;
$tag-color: #728fb6;
$category-color: #728fb6;
$tag-color: #af82b1;
$page-bg-color: #dfdfdf;
$page-bg-image: "/images/bg.jpg";

View File

@ -157,6 +157,7 @@ section.posts {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: center;
}
footer time {
@ -164,9 +165,16 @@ section.posts {
}
footer .category {
color: $category-color;
border: 1px solid $category-color;
padding: 0 0.5rem;
}
footer .tag {
color: $tag-color;
border: 1px solid $tag-color;
padding: 0 0.5rem;
font-size: 0.8rem;
}
}

View File

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