implement additional markup types on post

This commit is contained in:
Aravinth Manivannan 2021-11-02 12:00:11 +05:30
parent 260dcb97e1
commit 847afe1bdd
Signed by untrusted user: realaravinth
GPG key ID: AD9F0F08E855ED88

View file

@ -26,12 +26,22 @@
<. include!("./img.html"); .> <. include!("./img.html"); .>
<.} else if p.type_ == "P" {.> <.} else if p.type_ == "P" {.>
<. include!("./p.html"); .> <. include!("./p.html"); .>
<.} else if p.type_ == "H2" {.>
<h2><.= p.text .></h2>
<.} else if p.type_ == "H3" {.>
<h3><.= p.text .></h3>
<.} else if p.type_ == "H4" {.>
<h4><.= p.text .></h4>
<.} else if p.type_ == "H5" {.>
<h5><.= p.text .></h5>
<.} else if p.type_ == "H6" {.>
<h6><.= p.text .></h6>
<.}.> <.}.>
<.}.> <.}.>
</article> </article>
</main> </main>
</body> </body>
<style> <style>
<. include!("./main.css"); .> <. include!("./main.css"); .>
</style> </style>
</html> </html>