1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2025-12-15 10:55:07 +00:00

Add remove hashtags setting

This commit is contained in:
Cadence Ember
2020-05-30 23:04:06 +12:00
parent ba5a5a7653
commit ea81b945ce
7 changed files with 180 additions and 6 deletions

View File

@@ -28,7 +28,10 @@ mixin post(post, headerWithNavigation)
div
if post.getCaption()
p.structured-text.description
+display_structured(post.getStructuredCaption())
if settings.remove_trailing_hashtags
+display_structured(post.getStructuredCaptionWithoutTrailingHashtags())
else
+display_structured(post.getStructuredCaption())
footer
if willDisplayAltInDescription

View File

@@ -61,12 +61,20 @@ html
+input("rewrite_twitter", "Rewrite Twitter domain", "twitter.com", true)
+checkbox("show_comments", "Display comments", "Display", true)
+checkbox("remove_trailing_hashtags", "Hide trailing hashtags", false)
+checkbox("link_hashtags", "Clickable hashtags", "Clickable", true)
+checkbox("show_comments", "Display comments", "Display", true)
+checkbox("spa", "Fast navigation", "Enabled", false)
+select("infinite_scroll", "Infinite scroll", true, [
{value: "normal", text: "Normal"},
{value: "eager", text: "Eager"},
{value: "off", text: "Manual"}
])
+fieldset("Appearance")
+select("theme", "Theme", false, constants.themes.collated.map(entry => ({value: entry.file, text: entry.name})))