diff --git a/content/blog/realizing_the_promise.png b/content/blog/realizing_the_promise.png deleted file mode 100644 index b55df08..0000000 Binary files a/content/blog/realizing_the_promise.png and /dev/null differ diff --git a/content/blog/realizing_the_promise/blog2.png b/content/blog/realizing_the_promise/blog2.png deleted file mode 100644 index b55df08..0000000 Binary files a/content/blog/realizing_the_promise/blog2.png and /dev/null differ diff --git a/content/blog/realizing_the_promise/index.md b/content/blog/realizing_the_promise/index.md index 047ccc3..78db63e 100644 --- a/content/blog/realizing_the_promise/index.md +++ b/content/blog/realizing_the_promise/index.md @@ -8,7 +8,7 @@ taxonomies: extra: subtitle: "Together with our global community, we're realizing the initial promise of an open-source, peer-to-peer Internet owned by the people." author: "Sacha Obeegadoo" - imgPath: blog2.png + imgPath: realizing_the_promise.png isFeatured: "true" --- diff --git a/tailwindcss b/tailwindcss index 16e686d..284a8b5 100755 Binary files a/tailwindcss and b/tailwindcss differ diff --git a/templates/blogPage.html b/templates/blogPage.html index 9fafb30..81aca0f 100644 --- a/templates/blogPage.html +++ b/templates/blogPage.html @@ -3,9 +3,10 @@
+
-
- +
+

@@ -18,6 +19,7 @@

+
{% endblock content %} \ No newline at end of file diff --git a/templates/layouts/blog.html b/templates/layouts/blog.html index 4968811..b02cec1 100644 --- a/templates/layouts/blog.html +++ b/templates/layouts/blog.html @@ -8,7 +8,7 @@ and a side nav for category and featured post navigation {% block content %} -
+
{%- set section = get_section(path="blog/_index.md") %} @@ -17,14 +17,18 @@ and a side nav for category and featured post navigation {%- set_global featured = page %} {% break %} {% endif %} + {% if not featured %} + {%- set_global featured = section.pages[0] %} + {% endif %} {% endfor %} {% include "partials/featuredBlog.html" %} -
+
{% include "partials/blogPosts.html" %} {% include "partials/blogSidebar.html" %}
+
{% endblock content %} diff --git a/templates/partials/blogPosts.html b/templates/partials/blogPosts.html index a5b299a..3cac394 100644 --- a/templates/partials/blogPosts.html +++ b/templates/partials/blogPosts.html @@ -1,13 +1,13 @@ {% block content %} -
+

{% set path_array = current_path | split(pat="/") %} {% set taxonomy = path_array[1] %} {% set category = path_array[2] %} - The Latest from ThreeFold + The Latest from GoldFlow {% if taxonomy == "categories" %} - {{category | replace(from='-', to=' ' ) | title}} {% endif %} diff --git a/templates/partials/blogSidebar.html b/templates/partials/blogSidebar.html index 7c910c7..f2d70e8 100644 --- a/templates/partials/blogSidebar.html +++ b/templates/partials/blogSidebar.html @@ -1,6 +1,6 @@
-
+

FILTER POSTS BY

All {% set taxonomy = get_taxonomy(kind="categories") %} diff --git a/templates/partials/featuredBlog.html b/templates/partials/featuredBlog.html index 80d2320..20c91ed 100644 --- a/templates/partials/featuredBlog.html +++ b/templates/partials/featuredBlog.html @@ -1,29 +1,32 @@ +
+
+
+

FEATURED POST

+ +

+ {{ featured.title }} +

+
+

+ {{featured.description}} +

+ +

+ {{ featured.date | date(format="%B %e, %Y", timezone="America/Chicago")}} - + {{ featured.extra.author }} +

-
-
-

FEATURED POST

- -

- {{ featured.title }} -

-
-

- {{featured.description}} -

- -

- {{ featured.date | date(format="%B %e, %Y", timezone="America/Chicago")}} - - {{ featured.extra.author }} -

- -
- -
- -
-
+
+
+ {% set img_url = get_url(path='/' ~ featured.relative_path | replace(from='_', to='-') | replace(from='index.md', + to=featured.extra.imgPath)) %} +
+
+
+
+
\ No newline at end of file diff --git a/templates/partials/postCard.html b/templates/partials/postCard.html index 9cf0a57..c77e510 100644 --- a/templates/partials/postCard.html +++ b/templates/partials/postCard.html @@ -1,37 +1,39 @@
-
- +
+ {% set img_url = get_url(path='/' ~ post.relative_path | replace(from='_', to='-') | replace(from='index.md', + to=post.extra.imgPath)) %} + +
+
+ -
-
- -

- {{ post.title }} -

- {% if post.description %} -

- {{ post.description }} +

+ -
-
-

- {{ post.extra.author }} -

-
- - - · - - - 6 min read - -
+
+ + + · + + + 6 min read +
+