Skip to content

Commit

Permalink
Update single.html with categories
Browse files Browse the repository at this point in the history
  • Loading branch information
mich-elle-luna authored May 29, 2024
1 parent d9faa8a commit 4643b17
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@
<section class="prose prose-slate w-full max-w-[51rem] py-12">
<h1>{{ .Title }}</h1>
{{ with .Params.description }}<p class="text-lg -mt-5 mb-10">{{ . | markdownify }}</p>{{ end }}
{{ if .Params.categories }}
<div class="post-categories">
<h3>Categories:</h3>
<ul>
{{ range .Params.categories }}
<li><a href="{{ "categories/" | relLangURL }}{{ . | urlize }}">{{ . }}</a></li>
{{ end }}
</ul>
</div>
{{ end }}
{{ .Content }}
</section>

</main>
{{ end }}
{{ end }}

0 comments on commit 4643b17

Please sign in to comment.