Merge pull request #268 from undergroundwires/tags

make tags partial reusable with different parameters
This commit is contained in:
Djordje Atlialp 2021-04-10 00:54:05 +02:00 committed by GitHub
commit 6ae53c937d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -41,7 +41,7 @@
<hr />
<div class="post-info">
{{ partial "tags.html" . }}
{{ partial "tags.html" .Params.tags }}
{{ partial "categories.html" . }}
{{- if .GitInfo }}

View file

@ -1,4 +1,4 @@
{{ with .Params.tags }}
{{ with . }}
<p>
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-tag meta-icon"><path d="M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z"></path><line x1="7" y1="7" x2="7" y2="7"></line></svg>

View file

@ -53,7 +53,7 @@
<hr />
<div class="post-info">
{{ partial "tags.html" . }}
{{ partial "tags.html" .Params.tags }}
{{ partial "categories.html" . }}
<p>