show hashtags in social cards

This commit is contained in:
Aadil Ayub 2022-01-13 15:43:19 +05:00
parent eda7f484ae
commit 66afbb9bde
2 changed files with 10 additions and 1 deletions

View File

@ -2,7 +2,12 @@
<article class="h-entry shout"> <article class="h-entry shout">
<header> <header>
{{ $postPermalink := .Permalink}} {{ $postPermalink := .Permalink}}
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">{{ .Title }}</a></h2> <h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">
{{ range $i, $e := .Params.tags -}}
{{- if $i -}}, {{ end -}}
<a href='{{ "/tags/" | relLangURL }}{{ . | urlize }}'>#{{ $e | humanize }}</a>
{{- end -}}
</a></h2>
</header> </header>
{{ with (index (.Resources.ByType "image") 0) }} {{ with (index (.Resources.ByType "image") 0) }}

View File

@ -739,4 +739,8 @@ footer a:hover {
min-width: none; min-width: none;
max-width: 16ch; max-width: 16ch;
} }
.card.shout h2 a {
font-size: 26px;
}
} }