Fix hashtags

This commit is contained in:
JP Hastings-Spital 2023-09-12 21:48:58 +01:00
parent fd0850e8dc
commit bd8abe3b31
3 changed files with 2 additions and 7 deletions

View file

@ -93,10 +93,6 @@
.tag {
margin-right: 0.5em;
a { text-decoration: none; }
&::before {
content: "#";
}
}
.feather {

View file

@ -5,7 +5,6 @@ media:
- media-1.mp4.jpg
date: "2021-01-24T18:24:18Z"
draft: false
type: instagram-post
tags:
- imported
- from-instagram

View file

@ -34,8 +34,8 @@
<hr />
{{- end }}
<div class="post-content e-content">
{{ .Content | replaceRE `(\w)#([\w-]+)(\w)` `$1<a href="/tags/$2">$1</a>$2` | safeHTML }}
<div class="post-content e-content" data-pagefind-body>
{{ .Content | replaceRE `(\s)#([\w-]+)(\s)` `$1<a href="/tags/$2">$2</a>$3` | safeHTML }}
</div>
</article>