From 847afe1bdd602ac47df23e2b99ae3023c451ea62 Mon Sep 17 00:00:00 2001 From: realaravinth Date: Tue, 2 Nov 2021 12:00:11 +0530 Subject: [PATCH] implement additional markup types on post --- templates/post.html | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/templates/post.html b/templates/post.html index ffdff6c..ea803eb 100644 --- a/templates/post.html +++ b/templates/post.html @@ -26,12 +26,22 @@ <. include!("./img.html"); .> <.} else if p.type_ == "P" {.> <. include!("./p.html"); .> + <.} else if p.type_ == "H2" {.> +

<.= p.text .>

+ <.} else if p.type_ == "H3" {.> +

<.= p.text .>

+ <.} else if p.type_ == "H4" {.> +

<.= p.text .>

+ <.} else if p.type_ == "H5" {.> +
<.= p.text .>
+ <.} else if p.type_ == "H6" {.> +
<.= p.text .>
<.}.> <.}.>