mirror of
https://github.com/by-jp/www.byjp.me.git
synced 2025-08-10 02:26:08 +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 {
|
.tag {
|
||||||
margin-right: 0.5em;
|
margin-right: 0.5em;
|
||||||
a { text-decoration: none; }
|
a { text-decoration: none; }
|
||||||
|
|
||||||
&::before {
|
|
||||||
content: "#";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.feather {
|
.feather {
|
||||||
|
|
|
@ -5,7 +5,6 @@ media:
|
||||||
- media-1.mp4.jpg
|
- media-1.mp4.jpg
|
||||||
date: "2021-01-24T18:24:18Z"
|
date: "2021-01-24T18:24:18Z"
|
||||||
draft: false
|
draft: false
|
||||||
type: instagram-post
|
|
||||||
tags:
|
tags:
|
||||||
- imported
|
- imported
|
||||||
- from-instagram
|
- from-instagram
|
||||||
|
|
|
@ -34,8 +34,8 @@
|
||||||
<hr />
|
<hr />
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
<div class="post-content e-content">
|
<div class="post-content e-content" data-pagefind-body>
|
||||||
{{ .Content | replaceRE `(\w)#([\w-]+)(\w)` `$1<a href="/tags/$2">$1</a>$2` | safeHTML }}
|
{{ .Content | replaceRE `(\s)#([\w-]+)(\s)` `$1<a href="/tags/$2">$2</a>$3` | safeHTML }}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue