Skip to content

Commit

Permalink
Merge pull request #242 from mismith0227/develop
Browse files Browse the repository at this point in the history
Release
  • Loading branch information
mismith0227 authored Aug 28, 2024
2 parents 3ced739 + d653992 commit e54ae3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{{ partial "header.html" . }}
{{ $baseurl := .Site.BaseURL | urlize }}
<article class="p-article">
<header>
<h1>{{ .Title }}</h1>
Expand All @@ -20,7 +19,7 @@ <h1>{{ .Title }}</h1>
</div>
</div>
{{ range .Params.tags }}
<a href="{{ $baseurl }}/tags/{{ . | urlize }}" class="c-tag">{{ . }}</a>
<a href="{{ absURL "tags"}}/{{ . | urlize }}" class="c-tag">{{ . }}</a>
{{ end }}
</div>
{{ end }}
Expand Down
3 changes: 1 addition & 2 deletions layouts/_default/terms.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
{{ partial "header.html" . }}
{{ $baseurl := .Site.BaseURL | urlize }}
<section>
<h2>{{ .Title }}</h2>
<ul>
{{ $data := .Data }}
{{ range $key, $value := .Data.Terms }}
<li><a href="{{ $baseurl }}/{{ $data.Plural }}/{{ $key | urlize }}">{{ $key }}</a> ({{ len $value }})</li>
<li><a href="{{ absURL $data.Plural }}/{{ $key | urlize }}">{{ $key }}</a> ({{ len $value }})</li>
{{ end }}
</ul>
</section>
Expand Down

0 comments on commit e54ae3b

Please sign in to comment.