Compare commits

...

3 Commits

Author SHA1 Message Date
Zachary Cohen a85ecb5030
Merge bc4cc2a89d into 33e48f9892 2024-05-06 01:36:01 +02:00
Aditya Telange 33e48f9892
Add anchor link to archive layout headers 2024-05-01 13:56:39 +05:30
Zachary Cohen bc4cc2a89d
adding in the pinterest icon 2024-02-08 11:36:42 -05:00
2 changed files with 15 additions and 3 deletions

View File

@ -36,12 +36,21 @@
{{- range $pages.GroupByPublishDate "2006" }}
{{- if ne .Key "0001" }}
<div class="archive-year">
<h2 class="archive-year-header">
{{- replace .Key "0001" "" }}<sup class="archive-count">&nbsp;&nbsp;{{ len .Pages }}</sup>
{{- $year := replace .Key "0001" "" }}
<h2 class="archive-year-header" id="{{ $year }}">
<a class="archive-header-link" href="#{{ $year }}">
{{- $year -}}
</a>
<sup class="archive-count">&nbsp;{{ len .Pages }}</sup>
</h2>
{{- range .Pages.GroupByDate "January" }}
<div class="archive-month">
<h3 class="archive-month-header">{{- .Key }}<sup class="archive-count">&nbsp;&nbsp;{{ len .Pages }}</sup></h3>
<h3 class="archive-month-header" id="{{ $year }}-{{ .Key }}">
<a class="archive-header-link" href="#{{ $year }}-{{ .Key }}">
{{- .Key -}}
</a>
<sup class="archive-count">&nbsp;{{ len .Pages }}</sup>
</h3>
<div class="archive-posts">
{{- range .Pages }}
{{- if eq .Kind "page" }}

View File

@ -563,6 +563,9 @@
<path d="M12 20C12.2652 20 12.5196 19.8946 12.7071 19.7071C12.8946 19.5196 13 19.2652 13 19C13 18.7348 12.8946 18.4804 12.7071 18.2929C12.5196 18.1054 12.2652 18 12 18C11.7348 18 11.4804 18.1054 11.2929 18.2929C11.1054 18.4804 11 18.7348 11 19C11 19.2652 11.1054 19.5196 11.2929 19.7071C11.4804 19.8946 11.7348 20 12 20Z" fill="currentColor"/>
<rect x="5" y="1" width="14" height="22" rx="2" stroke="currentColor" stroke-width="2"/>
</svg>
{{- else if (eq $icon_name "pinterest") -}}
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 501 501" fill="currentColor" stroke="currentColor" stroke-width="2">
<path style="font-variation-settings:normal" d="M250.68 0.565186C112.465 0.565186 0.782593 112.453 0.782593 250.462C0.782593 356.386 66.5991 446.884 159.565 483.288C157.303 463.543 155.451 433.103 160.388 411.507C164.913 391.968 189.594 287.278 189.594 287.278C189.594 287.278 182.189 272.264 182.189 250.257C182.189 215.497 202.346 189.582 227.438 189.582C248.829 189.582 259.112 205.625 259.112 224.753C259.112 246.143 245.538 278.229 238.339 308.052C232.375 332.939 250.885 353.301 275.361 353.301C319.787 353.301 353.929 306.406 353.929 238.944C353.929 179.093 310.943 137.34 249.446 137.34C178.282 137.34 136.529 190.61 136.529 245.732C136.529 267.122 144.756 290.158 155.04 302.704C157.097 305.172 157.303 307.435 156.686 309.903C154.834 317.719 150.515 334.79 149.693 338.286C148.664 342.811 145.99 343.84 141.26 341.577C110.408 326.768 91.0746 281.108 91.0746 244.498C91.0746 165.724 148.253 93.3254 256.233 93.3254C342.823 93.3254 410.285 155.028 410.285 237.71C410.285 323.889 355.986 393.202 280.709 393.202C255.41 393.202 231.552 380.039 223.53 364.407C223.53 364.407 210.984 412.124 207.899 423.848C202.346 445.65 187.126 472.799 176.842 489.459C200.289 496.657 224.97 500.565 250.885 500.565C388.894 500.565 500.783 388.677 500.783 250.668C500.577 112.453 388.689 0.565186 250.68 0.565186Z" />
{{- else if (eq $icon_name "pocketcasts") -}}
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill="currentColor">
<path