main #3
1 changed files with 4 additions and 2 deletions
|
@ -3,8 +3,10 @@ import happyx, os
|
|||
component Read:
|
||||
title: string
|
||||
|
||||
if !fileExists("/public/Blog/{self.title}.html"):
|
||||
route "/404"
|
||||
# TODO: fix
|
||||
# if !fileExists("/public/Blog/{self.title}.html"):
|
||||
# route "/404"
|
||||
# else:
|
||||
|
||||
`template`:
|
||||
tIframe(src="/public/Blog/{self.title}.html", class="flex items-center flex-1 m-14 max-md:m-7 max-sm:m-0 rounded-3xl max-sm:rounded-none")
|
||||
|
|
Loading…
Add table
Reference in a new issue