Updating blog tags to link everywhere

This commit is contained in:
Dan 2026-01-04 10:08:00 +00:00
parent 1997156c18
commit 0788ab8896
3 changed files with 20 additions and 10 deletions

View file

@ -228,6 +228,13 @@
padding: 15px; padding: 15px;
} }
.blog-tags-filter {
border: 0;
background: transparent;
padding: 0;
margin-bottom: 0px;
}
&:hover { &:hover {
background: rgba(0, 255, 0, 0.1); background: rgba(0, 255, 0, 0.1);
border-color: rgba(0, 255, 0, 0.6); border-color: rgba(0, 255, 0, 0.6);
@ -264,12 +271,14 @@
} }
} }
.blog-tags .tag {
.tag-filter-link {
background: rgba(255, 153, 0, 0.2); background: rgba(255, 153, 0, 0.2);
border-color: rgba(255, 153, 0, 0.5); border-color: rgba(255, 153, 0, 0.5);
color: #ff9900; color: #ff9900;
text-shadow: 0 0 5px rgba(255, 153, 0, 0.5); text-shadow: 0 0 5px rgba(255, 153, 0, 0.5);
} }
} }
// Post title // Post title

View file

@ -19,7 +19,7 @@ fi
API_BASE="http://ws.audioscrobbler.com/2.0/" API_BASE="http://ws.audioscrobbler.com/2.0/"
# Get current Unix timestamp # Get current timestamp
NOW=$(date +%s) NOW=$(date +%s)
# Get timestamp from 7 days ago # Get timestamp from 7 days ago
WEEK_AGO=$((NOW - 604800)) WEEK_AGO=$((NOW - 604800))

View file

@ -1,22 +1,23 @@
<div class="blog-post-card{{ if not (in .Params.tags "weeknote") }} non-weekly{{ end }}"> <div class="blog-post-card{{ if not (in .Params.tags "weeknote") }} non-weekly{{ end }}">
<h1 class="blog-title"> <h1 class="blog-title">
{{ if in .Params.tags "weeknote" }}
{{ .Title }}
{{ else }}
<a href="{{ .Permalink }}"> <a href="{{ .Permalink }}">
{{ .Title }} {{ .Title }}
</a> </a>
{{ end }}
{{ if .Date }} {{ if .Date }}
<span class="blog-date">{{ .Date.Format "02-01-2006" }}</span> <span class="blog-date">{{ .Date.Format "02-01-2006" }}</span>
{{ end }} {{ end }}
</h1> </h1>
{{ if .Params.tags }} {{ if .Params.tags }}
<div class="blog-tags"> <div class="blog-tags-filter">
<div class="tag-links">
{{ range .Params.tags }} {{ range .Params.tags }}
<span class="tag">{{ . }}</span> {{ $tagURL := printf "/tags/%s/" (. | urlize) }}
<a href="{{ $tagURL }}" class="tag-filter-link">{{ . }}</a>
{{ end }} {{ end }}
</div> </div>
</div>
{{ end }} {{ end }}
{{ if in .Params.tags "weeknote" }} {{ if in .Params.tags "weeknote" }}
<div class="blog-summary"> <div class="blog-summary">