diff --git a/static/src/scss/_content.scss b/static/src/scss/_content.scss index eb47936..4a557d9 100644 --- a/static/src/scss/_content.scss +++ b/static/src/scss/_content.scss @@ -23,6 +23,14 @@ section.content { margin-right: $icon-text-spacing * 3; align-items: center; + .icon a { + color: inherit; + + &:hover { + color: $link; + } + } + span:not(.icon) + span { margin-left: $icon-text-spacing; } diff --git a/website/blog/models.py b/website/blog/models.py index 9b41660..419797e 100644 --- a/website/blog/models.py +++ b/website/blog/models.py @@ -1,4 +1,4 @@ -from typing import Any, Type +from typing import Any, Optional, Type from django.db import models from django.db.models.functions import TruncMonth @@ -11,6 +11,7 @@ from wagtailautocomplete.edit_handlers import AutocompletePanel from website.common.models import BaseContentPage, BaseListingPage from website.common.utils import TocEntry, prefetch_for_listing from website.common.views import ContentPageFeed +from website.contrib.singleton_page.utils import SingletonPageCache class BlogPostListPage(BaseListingPage): @@ -66,6 +67,10 @@ class BlogPostPage(BaseContentPage): AutocompletePanel("tags"), ] + @cached_property + def tag_list_page_url(self) -> Optional[str]: + return SingletonPageCache.get_url(BlogPostTagListPage) + class BlogPostTagListPage(BaseListingPage): max_count = 1 diff --git a/website/common/templates/common/content-details.html b/website/common/templates/common/content-details.html index 94f0e88..60cac00 100644 --- a/website/common/templates/common/content-details.html +++ b/website/common/templates/common/content-details.html @@ -23,7 +23,9 @@ {% if page.tags.all %}
- + + + {% for tag in page.tags.all %} #{{ tag.slug }}