mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-09 22:16:07 +01:00
Fix hashtags
This commit is contained in:
parent
fd0850e8dc
commit
bd8abe3b31
3 changed files with 2 additions and 7 deletions
|
@ -93,10 +93,6 @@
|
|||
.tag {
|
||||
margin-right: 0.5em;
|
||||
a { text-decoration: none; }
|
||||
|
||||
&::before {
|
||||
content: "#";
|
||||
}
|
||||
}
|
||||
|
||||
.feather {
|
||||
|
|
|
@ -5,7 +5,6 @@ media:
|
|||
- media-1.mp4.jpg
|
||||
date: "2021-01-24T18:24:18Z"
|
||||
draft: false
|
||||
type: instagram-post
|
||||
tags:
|
||||
- imported
|
||||
- from-instagram
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Reference in a new issue