diff --git a/content/_index.md b/content/_index.md index 6df987e..85b2063 100644 --- a/content/_index.md +++ b/content/_index.md @@ -6,7 +6,7 @@ updated: 2021-02-20T14:40:00-06:00 draft: false extra: author: Your name here - imgPath: images/threefold_globe.png + imgPath: /images/threefold_globe.png #subtitle: --- diff --git a/content/blog/2019/03/post-4/index.md b/content/blog/2019/03/post-4/index.md index 3ef5b74..0a549f4 100644 --- a/content/blog/2019/03/post-4/index.md +++ b/content/blog/2019/03/post-4/index.md @@ -3,6 +3,7 @@ title: "Post 4 with its UNIQUE title" # Quotation marks allow colons, semicolons description: "The UNIQUE description for Post 4." # Quotation marks allow colons, semicolons, etc. date: 2019-03-02T10:00:00-06:00 updated: 2020-01-31T08:13:00-06:00 # Comment-out this line with a # if content is unchanged +template: blogPage.html extra: subtitle: "The UNIQUE Post 4 subtitle" # Quotation marks allow colons, semicolons, etc. author: Your name goes here diff --git a/content/blog/2019/03/post-5/index.md b/content/blog/2019/03/post-5/index.md index c292518..92fd8a7 100644 --- a/content/blog/2019/03/post-5/index.md +++ b/content/blog/2019/03/post-5/index.md @@ -7,10 +7,10 @@ draft: false # Make it "true" if you don't want Zola to "publish" yet template: blogPage.html extra: subtitle: "The UNIQUE Post 5 subtitle" # Quotation marks allow colons, semicolons, etc. - author: Your name goes here + author: Post Author category: "Engineering" - imgPath: images/threefold_blog2.png - date: 2018-10-17T14:40:00-05:00 + imgPath: images/ourworld_mycellium.png + isFeatured: "true" --- Your opening text goes here. diff --git a/content/blog/2020/02/post-7/index.md b/content/blog/2020/02/post-7/index.md index 21d33b8..b798ed5 100644 --- a/content/blog/2020/02/post-7/index.md +++ b/content/blog/2020/02/post-7/index.md @@ -1,7 +1,7 @@ --- title: "Bridges Connecting the ThreeFold Ecosystem to External Networks" # Quotation marks allow colons, semicolons, etc. description: "Since the launch of ThreeFold Grid 3.0, TFT is now available on three blockchains – Stellar, Binance Smart Chain and the Substrate-based ThreeFold Blockchain (aka TF Chain)." # Quotation marks allow colons, semicolons, etc. -date: 2018-10-17T14:40:00-05:00 +date: 2021-10-17T14:40:00-05:00 updated: 2019-04-11T20:33:00-05:00 # Comment-out this line with a # if content is unchanged draft: false # Make it "true" if you don't want Zola to "publish" yet template: blogPage.html @@ -11,7 +11,7 @@ extra: subtitle: "The UNIQUE Post 1 subtitle" # Quotation marks allow colons, semicolons, etc. author: HANNAH CORDES imgPath: images/ourworld_mycellium.png - date: 2018-10-17T14:40:00-05:00 + isFeatured: "true" --- ## In-article heading --- it's an H2 because your title is the H1 diff --git a/content/blog/featured/_index.md b/content/blog/featured/_index.md index 9bb6466..f09b247 100644 --- a/content/blog/featured/_index.md +++ b/content/blog/featured/_index.md @@ -1,20 +1,21 @@ -+++ -title = "Bridges Connecting the ThreeFold Ecosystem to External Networks" -description = "Sinces the launch of ThreeFold Grid 3.0, TFT is now available on three blockchains – Stellar, Binance Smart Chain and the Substrate-based ThreeFold Blockchain (aka TF Chain)." -date = 2018-10-17T19:40:00.000Z -updated = 2019-04-12T01:33:00.000Z -draft = false - -[taxonomies] -categories=["Engineering"] - -[extra] -subtitle = "The UNIQUE Post 1 subtitles" -author = "HANNAH CORDES" -imgPath = "images/ourworld_mycellium.png" -date = 2018-10-17T19:40:00.000Z - -+++ +--- +title: Bridges Connecting the ThreeFold Ecosystem to External Networks +description: Sinces the launch of ThreeFold Grid 3.0, TFT is now available on + three blockchains – Stellar, Binance Smart Chain and the Substrate-based + ThreeFold Blockchain (aka TF Chain). +date: 2021-10-17T19:40:00.000Z +updated: 2022-02-12T01:33:00.000Z +draft: false +taxonomies: + categories: + - Engineering +extra: + subtitle: The UNIQUE Post 1 subtitles + author: HANNAH CORDES + imgPath: /images/ourworld_mycellium.png + date: 2018-10-17T19:40:00.000Z + isFeatured: "true" +--- ![Image](images/threefold-blog.png) diff --git a/templates/blog/blog.html b/templates/blog/blog.html index 1eb6066..e480fee 100644 --- a/templates/blog/blog.html +++ b/templates/blog/blog.html @@ -1,9 +1,24 @@ {% extends "_default/base.html" %} + {% block content %}
- {%- set section = get_section(path="blog/featured/_index.md") %} + + + {%- set section = get_section(path="blog/_index.md") %} + {% for page in section.pages %} + {% if page.extra.isFeatured %} + {%- set_global featured = page %} + {% break %} + {% endif %} + {% endfor %} + {% include "partials/featuredBlog.html" %}
diff --git a/templates/blogPage.html b/templates/blogPage.html index 4e71edd..1c55f81 100644 --- a/templates/blogPage.html +++ b/templates/blogPage.html @@ -2,11 +2,13 @@ {% block content %} +
+
- +
-

{{ page.title }}

@@ -17,5 +19,6 @@
- +
+ {% endblock content %} \ No newline at end of file diff --git a/templates/partials/blogSidebar.html b/templates/partials/blogSidebar.html index 3e0fc52..66cdcfb 100644 --- a/templates/partials/blogSidebar.html +++ b/templates/partials/blogSidebar.html @@ -3,16 +3,25 @@

FILTER POSTS BY

All - Engineering - Community - Use Cases + {% set taxonomy = get_taxonomy(kind="categories") %} + {% set categories = taxonomy.items %} + {% for category in categories %} + {% set path = category.name | slugify %} + {% set fullpath = "/categories/" ~ path %} + {{category.name}} + {% endfor %}
- + +{% set section = get_section(path="blog/_index.md")%} +
-

POPULAR POSTS

- NEAR Launches Nightshade Sharding, Paving the Way for Mass Adoption - Engineering - Community - Use Cases +

FEATURED POSTS

+ + {% for page in section.pages %} + {% if page.extra.isFeatured %} + {{ page.title }} + {% endif %} + {% endfor %} +
\ No newline at end of file diff --git a/templates/partials/featuredBlog.html b/templates/partials/featuredBlog.html index 312d3b7..1874614 100644 --- a/templates/partials/featuredBlog.html +++ b/templates/partials/featuredBlog.html @@ -2,20 +2,22 @@
-

FEATURED POST

-

- {{ section.title }} - -

+

FEATURED POST

+ +

+ {{ featured.title }} +

+
+

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

- +