From 076b8399e7362fa9afb8a02d31b4b579f9c9a005 Mon Sep 17 00:00:00 2001 From: pcvonz Date: Fri, 22 Sep 2017 10:52:06 -0700 Subject: [PATCH] Removing the blogPost and blogPosts component, replace with template equivalent --- themes/godotengine/layouts/article.htm | 31 +++++++++++++++++++++++--- themes/godotengine/layouts/home.htm | 12 ++++++++-- 2 files changed, 38 insertions(+), 5 deletions(-) diff --git a/themes/godotengine/layouts/article.htm b/themes/godotengine/layouts/article.htm index 95325b8567..8964a02aec 100755 --- a/themes/godotengine/layouts/article.htm +++ b/themes/godotengine/layouts/article.htm @@ -11,9 +11,34 @@ categoryPage = "article"

- {% component 'blogPost' %} -
+
+ {{ post.published_at|date('d') }}
+ {{ post.published_at|date('M Y') }} +

+

+
{{ post.user.full_name }}

+
+
+

{{ post.title }}

+ {% if post.featured_images.count %} + + {% endif %} + {{ post.content_html|raw }} +
+
+
 
+ {% partial "footer" %} - \ No newline at end of file + diff --git a/themes/godotengine/layouts/home.htm b/themes/godotengine/layouts/home.htm index cf2c0b7c01..bc7e7ea2ef 100755 --- a/themes/godotengine/layouts/home.htm +++ b/themes/godotengine/layouts/home.htm @@ -13,6 +13,7 @@ postPage = "{{ :slug }}" {% partial "head" %} {% partial "header" %} +{% set posts = blogPosts.posts %}
@@ -32,7 +33,14 @@ postPage = "{{ :slug }}"

Latest news

- {% component 'blogPosts' %} + {% for post in posts %} + + {% endfor %} More news ยป
@@ -138,4 +146,4 @@ postPage = "{{ :slug }}" {% partial "footer" %} - \ No newline at end of file +