Skip to content

Commit 3899d1d

Browse files
authored
Enable taxonomies and tagging (#120)
Render the "tags" page. Fix minor typo
1 parent 44137d0 commit 3899d1d

File tree

4 files changed

+59
-5
lines changed

4 files changed

+59
-5
lines changed

content/news/cfp_open.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Here are some ideas what you can talk about:
3434

3535
Please remember, you **DO NOT** have to be an expert to share your experience or stories with us. You can share what you learn, what challenge you have overcome, or any good use-case of any Python libraries or open source technology that you know.
3636

37-
For more details about how to write a CfP, you can see Cheuk’s blog post, in ([English](https://cheuk.dev/2023/06/06/how-to-be-speaker/)) and ([Spanish](https://cheuk.dev/2023/06/10/how-to-be-speaker-es/)).
37+
For more details about how to write a CfP, you can see Cheuk’s blog post, in [English](https://cheuk.dev/2023/06/06/how-to-be-speaker/) and [Spanish](https://cheuk.dev/2023/06/10/how-to-be-speaker-es/).
3838

3939
This year we accept talks in multiple languages:
4040

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{{ define "main" }}
2+
<section class="section">
3+
<div class="container">
4+
<div class="row gx-5">
5+
<!-- blog posts -->
6+
<div class="lg:col-8">
7+
<div class="row">
8+
{{ range .Data.Pages }}
9+
<div class="md:col-6 mb-14">
10+
{{ partial "components/blog-card" . }}
11+
</div>
12+
{{ end }}
13+
</div>
14+
</div>
15+
</div>
16+
</div>
17+
</section>
18+
{{ end }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{{ define "main" }}
2+
<section class="section">
3+
<div class="container">
4+
<ul>
5+
{{/* categories */}}
6+
{{ if eq .Permalink (`categories/` | absLangURL) }}
7+
{{ range site.Taxonomies.categories.ByCount }}
8+
<li>
9+
<a
10+
href="{{ .Page.Permalink }}"
11+
class="bg-theme-light text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark block rounded px-4 py-2 text-xl">
12+
{{ .Page.Title }}
13+
</a>
14+
<span class="bg-body dark:bg-darkmode-body ml-2 rounded px-2">
15+
{{ .Count }}
16+
</span>
17+
</li>
18+
{{ end }}
19+
{{ end }}
20+
{{/* tags */}}
21+
{{ if eq .Permalink (`tags/` | absLangURL) }}
22+
{{ range site.Taxonomies.tags.ByCount }}
23+
<li>
24+
<a
25+
href="{{ .Page.Permalink }}"
26+
class="bg-theme-light text-dark dark:bg-darkmode-theme-light dark:text-darkmode-dark block rounded px-4 py-2 text-xl">
27+
{{ .Page.Title }}
28+
</a>
29+
<span class="bg-body dark:bg-darkmode-body ml-2 rounded px-2">
30+
{{ .Count }}
31+
</span>
32+
</li>
33+
{{ end }}
34+
{{ end }}
35+
</ul>
36+
</div>
37+
</section>
38+
{{ end }}

themes/pyladies/layouts/news/single.html

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,13 @@
11
{{ define "main" }}
22

3-
{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
4-
{{ $dateHuman := .Date | time.Format ":date_long" }}
53
<div class="d-md-flex flex-md-equal my-md-3 ps-md-3">
6-
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>
4+
75
</div>
86
<h1 class="d-md-flex flex-md-equal my-md-3 ps-md-3 ">
97
{{ .Title }}
108
</h1>
119
<p class="d-md-flex flex-md-equal my-md-3 ps-md-3 mb-3 desc">
12-
written by {{ .Params.author }}
10+
written by {{ .Params.author }} on {{ .Date | time.Format ":date_long" }}
1311
</p>
1412
<div class="my-md-3 ps-md-3">
1513
{{ .Content }}

0 commit comments

Comments
 (0)