Skip to content

Commit

Permalink
Unfuck hugo again
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarWatcher committed Jun 12, 2024
1 parent db61634 commit aa101d5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
7 changes: 3 additions & 4 deletions hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,6 @@ uglyurls: true
pygmentsUseClasses: true
enableEmoji: true

author:
name: Olivia
email: zoe.i2k1@gmail.com

#frontmatter:
#lastmod: ["lastmod"]

Expand Down Expand Up @@ -50,6 +46,9 @@ taxonomies:
series: series

params:
author:
name: Olivia
email: zoe.i2k1@gmail.com
discord: y3vd2vAYru
discord_user: oliviawolfie
github: LunarWatcher
Expand Down
9 changes: 4 additions & 5 deletions layouts/partials/series-list.html
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
{{ $taxonomy := "series" }}
{{ $currLink := .Permalink }}
{{ if isset .Params $taxonomy }}
{{ if isset .Params "series" }}
<div class="link-list container">
<!--
Pick the first series. There will only ever be one
if the series is set
-->
{{ $series := (index (.Param $taxonomy) 0) }}
{{ $series := (index (.Params.series) 0) }}

<div class="header">
<h2>{{ $series }} ({{ .Site.Taxonomies.series.Count ($series | urlize) }} part series)</h2>
<h2>{{ $series }} ({{ .Site.Taxonomies.series.Count ($series | lower) }} part series)</h2>
</div>
<div class="series-list flex-vertical">
{{ range $idx, $page := (sort (index .Site.Taxonomies.series ($series | urlize)) ".Date" "asc") }}
{{ range $idx, $page := (sort (index .Site.Taxonomies.series ($series | lower)) ".Date" "asc") }}
<a href="{{ $page.Permalink }}"
{{ if eq $page.Permalink $currLink }}
class = "active"
Expand Down

0 comments on commit aa101d5

Please sign in to comment.