added year to context
This commit is contained in:
parent
258d062ff4
commit
a1900a77e4
@ -96,7 +96,7 @@
|
|||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="content has-text-centered">
|
<div class="content has-text-centered">
|
||||||
<p><strong>{{name}}</strong> by {{author}}. © 2025</p>
|
<p><strong>{{name}}</strong> by {{author}}. © {{year}}</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
@ -72,7 +72,7 @@
|
|||||||
<!-- Footer -->
|
<!-- Footer -->
|
||||||
<footer class="footer">
|
<footer class="footer">
|
||||||
<div class="content has-text-centered">
|
<div class="content has-text-centered">
|
||||||
<p><strong>{{name}}</strong> by {{author}}. © 2025</p>
|
<p><strong>{{name}}</strong> by {{author}}. © {{year}}</p>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
</body>
|
</body>
|
||||||
|
@ -238,6 +238,7 @@ class ArticleTranslation:
|
|||||||
self.context["url"] = self.url
|
self.context["url"] = self.url
|
||||||
add_html_link(self.context)
|
add_html_link(self.context)
|
||||||
self.context["date"] = self.article.modified_at.strftime(config.formatting.datetime_format)
|
self.context["date"] = self.article.modified_at.strftime(config.formatting.datetime_format)
|
||||||
|
self.context["year"] = str(self.article.modified_at.year)
|
||||||
self.context["iso_date"] = self.article.modified_at.isoformat()
|
self.context["iso_date"] = self.article.modified_at.isoformat()
|
||||||
self.context["author"] = self.article.author
|
self.context["author"] = self.article.author
|
||||||
|
|
||||||
@ -383,6 +384,7 @@ class Article:
|
|||||||
self.context["url"] = self.url
|
self.context["url"] = self.url
|
||||||
add_html_link(self.context)
|
add_html_link(self.context)
|
||||||
self.context["date"] = self.modified_at.strftime(config.formatting.datetime_format)
|
self.context["date"] = self.modified_at.strftime(config.formatting.datetime_format)
|
||||||
|
self.context["year"] = str(self.modified_at.year)
|
||||||
self.context["iso_date"] = self.modified_at.isoformat()
|
self.context["iso_date"] = self.modified_at.isoformat()
|
||||||
self.context["author"] = self.author
|
self.context["author"] = self.author
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ class ArticleContext(TypedDict):
|
|||||||
url: str
|
url: str
|
||||||
link: str
|
link: str
|
||||||
date: str
|
date: str
|
||||||
|
year: str
|
||||||
iso_date: str
|
iso_date: str
|
||||||
author: str
|
author: str
|
||||||
|
|
||||||
@ -39,6 +40,7 @@ class ArticleTranslationContext(TypedDict):
|
|||||||
url: str
|
url: str
|
||||||
link: str
|
link: str
|
||||||
date: str
|
date: str
|
||||||
|
year: str
|
||||||
iso_date: str
|
iso_date: str
|
||||||
author: str
|
author: str
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user