Skip to content

Commit

Permalink
fix tags url
Browse files Browse the repository at this point in the history
  • Loading branch information
suihan74 committed Dec 20, 2020
1 parent 7e90814 commit 66ebceb
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion layouts/partials/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ <h2 class="f4 mb-2 text-normal">
<div class="mb-0 f6 text-gray">
{{- with .Params.tags }}
{{ range . }}
<a class="muted-link mr-3 d-inline-block" href="/tags/{{ lower . }}">
<a class="muted-link mr-3 d-inline-block" href="/tags/{{ . | urlize }}">
{{ partial "octicon-tag.html" . }}
{{ . }}
</a>
Expand Down
14 changes: 10 additions & 4 deletions layouts/partials/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,16 @@ <h1 class="public css-truncate float-none flex-auto width-fit pl-0">

<!-- display tags -->
<div class="text-small text-gray">
{{ with .Params.tags }}
{{ partial "octicon-tag.html" . }}
{{ range . }} <a href="/tags/{{ lower . }}/">{{ . }}</a>{{ end }}
{{ end }}
{{- with .Params.tags }}
<div class="f6 text-gray mt-1">
{{ range . }}
<a class="muted-link mr-3 d-inline-block" href="/tags/{{ . | urlize }}">
{{ partial "octicon-tag.html" . }}
{{ . }}
</a>
{{ end }}
</div>
{{- end }}
</div>

<!-- display timestamp -->
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ <h3>
{{- with .Params.tags }}
<div class="f6 text-gray mt-1">
{{ range . }}
<a class="muted-link mr-3 d-inline-block" href="/tags/{{ lower . }}">
<a class="muted-link mr-3 d-inline-block" href="/tags/{{ . | urlize }}">
{{ partial "octicon-tag.html" . }}
{{ . }}
</a>
Expand Down

0 comments on commit 66ebceb

Please sign in to comment.