Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable taxonomies and tagging #120

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading