Skip to content

Commit

Permalink
Enable taxonomies and tagging
Browse files Browse the repository at this point in the history
Render the "tags" page.
Fix minor typo
  • Loading branch information
Mariatta committed Aug 14, 2024
1 parent 44137d0 commit 60e3355
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 5 deletions.
2 changes: 1 addition & 1 deletion content/news/cfp_open.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Here are some ideas what you can talk about:

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.

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/)).
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/).

This year we accept talks in multiple languages:

Expand Down
18 changes: 18 additions & 0 deletions themes/pyladies/layouts/_default/taxonomy.html
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 }}
38 changes: 38 additions & 0 deletions themes/pyladies/layouts/_default/terms.html
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 }}
6 changes: 2 additions & 4 deletions themes/pyladies/layouts/news/single.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
{{ define "main" }}

{{ $dateMachine := .Date | time.Format "2006-01-02T15:04:05-07:00" }}
{{ $dateHuman := .Date | time.Format ":date_long" }}
<div class="d-md-flex flex-md-equal my-md-3 ps-md-3">
<time datetime="{{ $dateMachine }}">{{ $dateHuman }}</time>

</div>
<h1 class="d-md-flex flex-md-equal my-md-3 ps-md-3 ">
{{ .Title }}
</h1>
<p class="d-md-flex flex-md-equal my-md-3 ps-md-3 mb-3 desc">
written by {{ .Params.author }}
written by {{ .Params.author }} on {{ .Date | time.Format ":date_long" }}
</p>
<div class="my-md-3 ps-md-3">
{{ .Content }}
Expand Down

0 comments on commit 60e3355

Please sign in to comment.