This commit is contained in:
mark committed 2026-09-09 12:36:47 -04:00
1 parent b1f54e2030
commit 251548eb8d
2 files changed
+6 -2

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@
<meta name="apple-mobile-web-app-title" content="Bible"> <meta name="apple-mobile-web-app-title" content="Bible">
</head> </head>
<body class="{% block body_class %}{% endblock %} bg-body-tertiary" <body class="{% block body_class %}{% endblock %} bg-body-tertiary"
hx-boost="true" hx-target="#content" hx-swap="innerHTML"> hx-boost="true" hx-target="#content" hx-swap="innerHTML show:window:top">
<nav class="site-header navbar navbar-expand-lg bg-dark sticky-top" <nav class="site-header navbar navbar-expand-lg bg-dark sticky-top"
data-bs-theme="dark"> data-bs-theme="dark">
+5 -1
View File
@@ -471,7 +471,11 @@ def render_inline(nodes, book, chapter, out):
elif kind == "br": elif kind == "br":
out.append("<br>") out.append("<br>")
elif kind == "ref": elif kind == "ref":
out.append('<a class="ref" href="%s">' % ref_href(node, book, chapter)) # htmx does not scroll to a fragment, so a reference into another
# book has to be a real navigation for the browser to do it.
href = ref_href(node, book, chapter)
boost = "" if href.startswith("#") else ' hx-boost="false"'
out.append('<a class="ref" href="%s"%s>' % (href, boost))
render_inline(node.get("c", []), book, chapter, out) render_inline(node.get("c", []), book, chapter, out)
out.append("</a>") out.append("</a>")
elif kind in INLINE_TAGS: elif kind in INLINE_TAGS: