From 9ef7721b8c7b4ed2884ef7e8a855b04a43703f48 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 22 Mar 2020 18:53:55 +0100 Subject: [PATCH] improvement(blog): basic article theming --- src/blog/themes/blog/layout/_partial/article.ejs | 12 ++++++------ .../themes/blog/layout/_partial/post/title.ejs | 16 +--------------- 2 files changed, 7 insertions(+), 21 deletions(-) diff --git a/src/blog/themes/blog/layout/_partial/article.ejs b/src/blog/themes/blog/layout/_partial/article.ejs index 0f951a9..71ce27f 100644 --- a/src/blog/themes/blog/layout/_partial/article.ejs +++ b/src/blog/themes/blog/layout/_partial/article.ejs @@ -1,8 +1,4 @@ -
- +
<%- partial('post/gallery') %> <% if (post.link || post.title){ %> @@ -10,6 +6,10 @@ <%- partial('post/title', {class_name: 'article-title'}) %> <% } %> +
<% if (post.excerpt && index){ %> <%- post.excerpt %> @@ -41,4 +41,4 @@
-<% } %> \ No newline at end of file +<% } %> diff --git a/src/blog/themes/blog/layout/_partial/post/title.ejs b/src/blog/themes/blog/layout/_partial/post/title.ejs index 69d646f..3ea30af 100644 --- a/src/blog/themes/blog/layout/_partial/post/title.ejs +++ b/src/blog/themes/blog/layout/_partial/post/title.ejs @@ -1,15 +1 @@ -<% if (post.link){ %> -

- -

-<% } else if (post.title){ %> - <% if (index){ %> -

- <%= post.title %> -

- <% } else { %> -

- <%= post.title %> -

- <% } %> -<% } %> \ No newline at end of file +

<%= post.title %>