-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Render the "tags" page. Fix minor typo
- Loading branch information
Showing
4 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{{ define "main" }} | ||
<section class="section"> | ||
<div class="container"> | ||
<div class="row gx-5"> | ||
<!-- blog posts --> | ||
<div class="lg:col-8"> | ||
<div class="row"> | ||
{{ range .Data.Pages }} | ||
<div class="md:col-6 mb-14"> | ||
{{ partial "components/blog-card" . }} | ||
</div> | ||
{{ end }} | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{{ define "main" }} | ||
<section class="section"> | ||
<div class="container"> | ||
<ul> | ||
{{/* categories */}} | ||
{{ if eq .Permalink (`categories/` | absLangURL) }} | ||
{{ range site.Taxonomies.categories.ByCount }} | ||
<li> | ||
<a | ||
href="{{ .Page.Permalink }}" | ||
class="bg-theme-light text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark block rounded px-4 py-2 text-xl"> | ||
{{ .Page.Title }} | ||
</a> | ||
<span class="bg-body dark:bg-darkmode-body ml-2 rounded px-2"> | ||
{{ .Count }} | ||
</span> | ||
</li> | ||
{{ end }} | ||
{{ end }} | ||
{{/* tags */}} | ||
{{ if eq .Permalink (`tags/` | absLangURL) }} | ||
{{ range site.Taxonomies.tags.ByCount }} | ||
<li> | ||
<a | ||
href="{{ .Page.Permalink }}" | ||
class="bg-theme-light text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark block rounded px-4 py-2 text-xl"> | ||
{{ .Page.Title }} | ||
</a> | ||
<span class="bg-body dark:bg-darkmode-body ml-2 rounded px-2"> | ||
{{ .Count }} | ||
</span> | ||
</li> | ||
{{ end }} | ||
{{ end }} | ||
</ul> | ||
</div> | ||
</section> | ||
{{ end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters