add post functionality this is not for real like blog posts, but for my telegram ones. they are small and may be just written in plain on one page. of course, it'll make this page too long, but to that time i'll find how to deal with it.
la-ninpre leobrekalini@gmail.com
Thu, 12 Nov 2020 02:14:04 +0300
4 files changed,
50 insertions(+),
0 deletions(-)
A
_layouts/post.html
@@ -0,0 +1,12 @@
+--- +layout: default +--- + +<div class="post"> +<h1>{{ page.title }}</h1> +<hr> +<i>{{ page.date | date: "%Y-%m-%d %H:%M" }}</i> + +{{ content }} + +</div>
A
_posts/2020-11-12-example.md
@@ -0,0 +1,11 @@
+--- +title: example post +date: 2020-11-12T02:11:45+03:00 +layout: post +--- + +this is an example post. + +i have plans on moving my posts from telegram channel here, +so they are not restricted. but the script to automate this +process is work in progress yet.
M
_sass/main.scss
→
_sass/main.scss
@@ -60,6 +60,24 @@ font: 200% $font-title;
color: $color-main-blue; } +.post { + padding: 1em; + margin: 1em; + background: #1f1f1f; + border-radius: 25px 25px 25px 0px; + word-wrap: break-word; + p { + img { + max-width: 100% + } + } +} + +audio { + width: 100%; + border-radius: 25px; +} + footer { border-top: $border-main; text-align: center;