Skip to content

Commit 3e43199

Browse files
authored
Pass the actual document filename to flexdown render (#1216)
* Pass the actual document filename to flexdown render * Use the new version of flexgen
1 parent d3f037f commit 3e43199

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pcweb/pages/blog/page.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ def page(document, route) -> rx.Component:
9393
class_name="rounded-[1.125rem] w-auto object-cover max-w-full max-h-[25rem] aspect-[2/1]",
9494
),
9595
rx.box(
96-
xd.render(document, "blog.md"),
96+
xd.render(document, document.filename),
9797
class_name="flex flex-col gap-4 w-full max-w-2xl",
9898
),
9999
more_posts(meta),

pcweb/pages/customers/data/customers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
def content(document):
99
return rx.box(
10-
xd.render(document, "blog.md"),
10+
xd.render(document, document.filename),
1111
),
1212

1313
CUSTOMERS_PATH = "case-studies/"

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ googletrans-py==4.0.0
77
typesense==0.14.0
88
openai==1.13.3
99
pyyaml==6.0.1
10-
flexdown>=0.1.5a11
10+
flexdown>=0.1.5a12
1111
reflex @ git+https://github.com/reflex-dev/reflex@main
1212
mistletoe>=1.2.1
1313
reflex-image-zoom>=0.0.2
@@ -16,4 +16,4 @@ reflex_type_animation==0.0.1
1616
reflex-ag-grid==0.0.10
1717
replicate==0.32.1
1818
reflex-pyplot==0.1.3
19-
reflex-chakra==0.6.2
19+
reflex-chakra==0.6.2

0 commit comments

Comments
 (0)