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:
@@ -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
|
||||
|
||||
@@ -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})))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user