From bd8abe3b319db6288849018ae16f38ad003a366a Mon Sep 17 00:00:00 2001 From: JP Hastings-Spital Date: Tue, 12 Sep 2023 21:48:58 +0100 Subject: [PATCH] Fix hashtags --- assets/scss/_single.scss | 4 ---- content/photos/tu4sdgcvkcxdtydg725kynig74/index.md | 1 - layouts/memex/single.html | 4 ++-- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/assets/scss/_single.scss b/assets/scss/_single.scss index e4981d83..e524053c 100644 --- a/assets/scss/_single.scss +++ b/assets/scss/_single.scss @@ -93,10 +93,6 @@ .tag { margin-right: 0.5em; a { text-decoration: none; } - - &::before { - content: "#"; - } } .feather { diff --git a/content/photos/tu4sdgcvkcxdtydg725kynig74/index.md b/content/photos/tu4sdgcvkcxdtydg725kynig74/index.md index 7530cf0e..08821ff2 100644 --- a/content/photos/tu4sdgcvkcxdtydg725kynig74/index.md +++ b/content/photos/tu4sdgcvkcxdtydg725kynig74/index.md @@ -5,7 +5,6 @@ media: - media-1.mp4.jpg date: "2021-01-24T18:24:18Z" draft: false -type: instagram-post tags: - imported - from-instagram diff --git a/layouts/memex/single.html b/layouts/memex/single.html index 4fdfdaa7..11d40a24 100644 --- a/layouts/memex/single.html +++ b/layouts/memex/single.html @@ -34,8 +34,8 @@
{{- end }} -
- {{ .Content | replaceRE `(\w)#([\w-]+)(\w)` `$1$1$2` | safeHTML }} +
+ {{ .Content | replaceRE `(\s)#([\w-]+)(\s)` `$1$2$3` | safeHTML }}