diff --git a/posts.json b/posts.json index c832528..5675b5c 100644 --- a/posts.json +++ b/posts.json @@ -1,7 +1,7 @@ [ { "title": "Default post", - "content": "This is the first post, it was here since the beginning.\n\n\n(Remove the space after the '[' and before the ']')\n\n [ * [* text *] * ] [ ** [** text **] ** ] [ *** [*** text ***] *** ] [ _ [_ text _] _ ] [ *_ [*_ text _*] _* ] [ **_ [**_ text _**] _** ] [ ***_ [***_ text _***] _*** ] [ \" [\" text \"] \" ]", + "content": "This is the first post, it was here since the beginning.\n\n\n(Remove the space after the '[' and before the ']')\n\n [ * [* text *] * ] [ ** [** text **] ** ] [ *** [*** text ***] *** ] [ _ [_ text _] _ ] [ *_ [*_ text _*] _* ] [ **_ [**_ text _**] _** ] [ ***_ [***_ text _***] _*** ] [ \" [\" text \"] \" ] [ # image link # ]", "author": "root", "comments": [ { diff --git a/views/post.ejs b/views/post.ejs index c810634..e2005a6 100644 --- a/views/post.ejs +++ b/views/post.ejs @@ -91,6 +91,14 @@ block { display: block; } + + img { + display: block; + margin: auto; + margin-top: 10px; + margin-bottom: 10px; + max-width: 90%; + }
@@ -108,7 +116,8 @@ ret += `