feat: added article home overview
This commit is contained in:
parent
c36deab71a
commit
2dc1dfef98
@ -14,17 +14,14 @@
|
|||||||
aria-label="main navigation"
|
aria-label="main navigation"
|
||||||
>
|
>
|
||||||
<div class="navbar-brand">
|
<div class="navbar-brand">
|
||||||
<a class="navbar-item" href="#">
|
<a class="navbar-item" href="{article_overview_href}">
|
||||||
<strong>Static Translated Site Generator</strong>
|
<strong>{article_language_flag} Static Translated Site Generator</strong>
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<!-- Main Content -->
|
<!-- Main Content -->
|
||||||
<section class="section">
|
<section class="section">
|
||||||
<div class="content">
|
|
||||||
<a href="../">Go Back</a>
|
|
||||||
</div>
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
{article_content}
|
{article_content}
|
||||||
</div>
|
</div>
|
||||||
|
@ -143,6 +143,7 @@ class Article(CustomPath):
|
|||||||
return {
|
return {
|
||||||
"article_content": article_content,
|
"article_content": article_content,
|
||||||
"article_preview": article_content[:ARTICLE_PREVIEW_LENGTH],
|
"article_preview": article_content[:ARTICLE_PREVIEW_LENGTH],
|
||||||
|
"article_overview_href": "/" + str(self.path.parent),
|
||||||
"article_href": "/" + str(self.path.parent / self.stem),
|
"article_href": "/" + str(self.path.parent / self.stem),
|
||||||
"article_language_name": self.language_code.native_name,
|
"article_language_name": self.language_code.native_name,
|
||||||
"article_language_code": self.language_code.language_code,
|
"article_language_code": self.language_code.language_code,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user