From 785e5f25d76ba67d9e98937b35e5efb7a7a70470 Mon Sep 17 00:00:00 2001 From: timurgordon Date: Mon, 14 Mar 2022 11:20:24 +0300 Subject: [PATCH] added vertical template and dao dir --- content/apage.md | 2 - content/blog/_index.md | 2 +- content/ecosystem/_index.md | 13 +++++ content/ecosystem/daos/_index.md | 47 +++++++++++++++++++ content/ecosystem/daos/ourworld-dao/index.md | 20 ++++++++ css/index.css | 3 +- package-lock.json | 12 ++--- tailwind.config.js | 8 +--- templates/{blog => layouts}/blog.html | 0 templates/layouts/horizontal_section.html | 18 +++++++ templates/macros.html | 28 +++++++++++ .../{pageList.html => page_list.html} | 1 - templates/section.html | 2 +- templates/tags/single.html | 2 +- 14 files changed, 139 insertions(+), 19 deletions(-) create mode 100644 content/ecosystem/_index.md create mode 100644 content/ecosystem/daos/_index.md create mode 100644 content/ecosystem/daos/ourworld-dao/index.md rename templates/{blog => layouts}/blog.html (100%) create mode 100644 templates/layouts/horizontal_section.html create mode 100644 templates/macros.html rename templates/partials/{pageList.html => page_list.html} (98%) diff --git a/content/apage.md b/content/apage.md index d677c2d..60a2519 100644 --- a/content/apage.md +++ b/content/apage.md @@ -63,8 +63,6 @@ class Zebra{
-Its really cool how this has been done. - Finally a framework fun to be used. > Am super happy about it diff --git a/content/blog/_index.md b/content/blog/_index.md index 2f3a95b..6804c98 100644 --- a/content/blog/_index.md +++ b/content/blog/_index.md @@ -7,7 +7,7 @@ insert_anchor_links: "left" #base_url: "posts" #first: "first" #last: "last" -template: "blog/blog.html" +template: "layouts/blog.html" page_template: "blogPage.html" #transparent: true extra: diff --git a/content/ecosystem/_index.md b/content/ecosystem/_index.md new file mode 100644 index 0000000..9e85c59 --- /dev/null +++ b/content/ecosystem/_index.md @@ -0,0 +1,13 @@ +--- +title: "Blog" +# paginate_reversed: false +insert_anchor_links: "left" +#base_url: "posts" +#first: "first" +#last: "last" +template: "layouts/horizontal_section.html" +page_template: "blogPage.html" +#transparent: true +extra: + imgPath: /images/threefold_img2.png +--- diff --git a/content/ecosystem/daos/_index.md b/content/ecosystem/daos/_index.md new file mode 100644 index 0000000..b8d7665 --- /dev/null +++ b/content/ecosystem/daos/_index.md @@ -0,0 +1,47 @@ +--- +title: "DAO's" +# paginate_reversed: false +#base_url: "posts" +#first: "first" +#last: "last" +template: "layouts/horizontal_section.html" +page_template: "blogPage.html" +extra: + imgPath: /images/threefold_img2.png +--- + +## Decentralized Autonomous Organizations + +union tip gentle cup wide excitement of women indeed try movement by yes moving clearly string spent burst least at beside spin police several success + +### What are DAO's? + +month creature save power avoid threw perfect bill dirt wheel valley term flame hearing yes sail wolf ago sky fog principle printed probably month creature save power avoid threw perfect bill dirt wheel valley term flame hearing yes sail wolf ago sky fog principle printed probably + +{% row() %} + +#### Decentralized + +month creature save power avoid threw perfect bill dirt wheel valley term flame hearing yes sail wolf ago sky fog principle printed probably + +||| + +#### Autonomous + +month creature save power avoid threw perfect bill dirt wheel valley term flame hearing yes sail wolf ago sky fog principle printed probably + +||| + +#### Organization + +month creature save power avoid threw perfect bill dirt wheel valley term flame hearing yes sail wolf ago sky fog principle printed probably + +{% end %} + +{% admonition() %} + +!!! note + +OurWorld itself is governed by a DAO, learn more and participate at the OurWorld DAO page + +{% end %} diff --git a/content/ecosystem/daos/ourworld-dao/index.md b/content/ecosystem/daos/ourworld-dao/index.md new file mode 100644 index 0000000..8c6aa16 --- /dev/null +++ b/content/ecosystem/daos/ourworld-dao/index.md @@ -0,0 +1,20 @@ +--- +title: "Blockchain Engineer" +description: "Work with a team of engineers and build decentralized apps in Ourworld." +insert_anchor_links: "left" +updated: 2019-04-11T20:33:00-05:00 # Comment-out this line with a # if content is unchanged +template: "positionPage.html" +taxonomies: + roles: ["Develop"] + tags: ["DAPPs"] +--- + +## About the position + +Together we expand and create this OurWorld platform, with the purpose to give a better digital life to billions of people. Anyone is invited to build solutions and experiences. OurWorld can provide the alternative to the current too centralized, unsustainable and abused internet. + +## Requirements + +- Together we expand and create this OurWorld platform, with the purpose to give a better digital life to billions of people. +- Together we expand and create this OurWorld platform, with the purpose to give a better digital life to billions of people. + this OurWorld platform, with the purpose to give a better digital life to billions of people. diff --git a/css/index.css b/css/index.css index eb16bd2..eaba675 100644 --- a/css/index.css +++ b/css/index.css @@ -1,11 +1,12 @@ /*! purgecss start ignore */ @import "nav.css"; @import "code.css"; +/*! purgecss end ignore */ + @import "tailwindcss/base"; @import "layout.css"; @import "tailwindcss/components"; @import "admonition.css"; -/*! purgecss end ignore */ @import "tailwindcss/utilities"; @import url("https://fonts.googleapis.com/css2?family=Ubuntu&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Work+Sans:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap"); diff --git a/package-lock.json b/package-lock.json index ab851dc..3cb0377 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1119,9 +1119,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.14.7", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", - "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==", + "version": "1.14.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.9.tgz", + "integrity": "sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==", "dev": true, "funding": [ { @@ -4077,9 +4077,9 @@ } }, "follow-redirects": { - "version": "1.14.7", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.7.tgz", - "integrity": "sha512-+hbxoLbFMbRKDwohX8GkTataGqO6Jb7jGwpAlwgy2bIz25XtRm7KEzJM76R1WiNT5SwZkX4Y75SwBolkpmE7iQ==", + "version": "1.14.9", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.14.9.tgz", + "integrity": "sha512-MQDfihBQYMcyy5dhRDJUHcw7lb2Pv/TuE6xP1vyraLukNDHKbDxDNaOE3NbCAdKQApno+GPRyo1YAp89yCjK4w==", "dev": true }, "fraction.js": { diff --git a/tailwind.config.js b/tailwind.config.js index 443b458..e4569a9 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,12 +1,9 @@ const colors = require('tailwindcss/colors') module.exports = { - mode: 'jit', - purge: { - content: [ + content: [ './templates/**/*.html' - ], - }, + ], darkMode: false, theme: { fontSize: { @@ -55,6 +52,5 @@ module.exports = { }, }, }, - variants: {}, plugins: [], // if we add forms, do it here } diff --git a/templates/blog/blog.html b/templates/layouts/blog.html similarity index 100% rename from templates/blog/blog.html rename to templates/layouts/blog.html diff --git a/templates/layouts/horizontal_section.html b/templates/layouts/horizontal_section.html new file mode 100644 index 0000000..ca84bf8 --- /dev/null +++ b/templates/layouts/horizontal_section.html @@ -0,0 +1,18 @@ +{% extends "_default/base.html" %} +{% import "macros.html" as macros %} + +{% block content %} + +
+
+
+ {{ section.content | safe}} +
+
+ {{ macros::page_list(item_type="page-box", group=false) }} +
+
+
+
+ +{% endblock content %} diff --git a/templates/macros.html b/templates/macros.html new file mode 100644 index 0000000..c349733 --- /dev/null +++ b/templates/macros.html @@ -0,0 +1,28 @@ +{% macro page_list(type="text") %} +
+ {% if section.extra.group_pages_by %} +
+ {% set taxonomy = get_taxonomy(kind=section.extra.group_pages_by) %} + {% set roles = taxonomy.items %} + {% for role in roles %} +
+ {% set icon_path = config.extra.taxonomies["roles"][role.name].icon_path | as_str %} + role category icon + {% set path = role.name | slugify %} + {% set fullpath = "/roles/" ~ path %} + {{role.name}} + {% for page in role.pages %} + {% include "partials/pageBox.html"%} + {% endfor %} +
+ {% endfor %} +
+ {% else %} + {% for page in section.pages %} + {{page}} + {% include "partials/pageBox.html"%} + {% endfor %} + {% endif %} +{% endmacro page_list %} + + diff --git a/templates/partials/pageList.html b/templates/partials/page_list.html similarity index 98% rename from templates/partials/pageList.html rename to templates/partials/page_list.html index a1c28e4..b773a04 100644 --- a/templates/partials/pageList.html +++ b/templates/partials/page_list.html @@ -1,4 +1,3 @@ -
{% if section.extra.group_pages_by %}
diff --git a/templates/section.html b/templates/section.html index 6b844e9..0cf4801 100644 --- a/templates/section.html +++ b/templates/section.html @@ -5,7 +5,7 @@
{{ section.content | safe}}
- {% include "partials/pageList.html" %} + {% include "partials/page_list.html" %}
{% endblock content %} diff --git a/templates/tags/single.html b/templates/tags/single.html index 36d9a4d..655485f 100644 --- a/templates/tags/single.html +++ b/templates/tags/single.html @@ -6,7 +6,7 @@
{{ section.content | safe}}
- {% include "partials/pageList.html" %} + {% include "partials/page_list.html" %}
{% endblock content %}