diff --git a/README.md b/README.md index 21a88e6..59e9a10 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ # Fipamo Theme Kit So in the course of making [Fipamo](https://code.playvicio.us/Are0h/Fipamo), the need arose to make a thing that made making and editing themes a bit easier. HENCE THE CREATION OF FTK. -[WIP - DO NOT USE DEFAULT THEME YET] diff --git a/src/themes/theme-fipamo-default/fipamo-default/archive.twig b/src/themes/theme-fipamo-default/fipamo-default/archive.twig index 47a441f..681596e 100644 --- a/src/themes/theme-fipamo-default/fipamo-default/archive.twig +++ b/src/themes/theme-fipamo-default/fipamo-default/archive.twig @@ -23,7 +23,16 @@ {{data.full_month}} {% for page in data.pages %} - {{page.title}}
+ {% if dynamicRender is defined %} + {% if dynamicRender == 'true' %} + {{page.title}}
+ {% else %} + {{page.title}}
+ {% endif %} + + {% else %} + {{page.title}}
+ {% endif %} {% endfor %} diff --git a/src/themes/theme-fipamo-default/fipamo-default/frame.twig b/src/themes/theme-fipamo-default/fipamo-default/frame.twig index 3ff7818..65cde89 100644 --- a/src/themes/theme-fipamo-default/fipamo-default/frame.twig +++ b/src/themes/theme-fipamo-default/fipamo-default/frame.twig @@ -34,7 +34,15 @@
{% if menu is defined %} {% for link in menu %} - {{link.title}}
+ {% if dynamicRender is defined %} + {% if dynamicRender == 'true' %} + {{link.title}}
+ {% else %} + {{link.title}}
+ {% endif %} + {% else %} + {{link.title}}
+ {% endif %} {% endfor %} {% endif %}
@@ -50,7 +58,15 @@ diff --git a/src/themes/theme-fipamo-default/fipamo-default/index.twig b/src/themes/theme-fipamo-default/fipamo-default/index.twig index c4fe932..11cba2f 100644 --- a/src/themes/theme-fipamo-default/fipamo-default/index.twig +++ b/src/themes/theme-fipamo-default/fipamo-default/index.twig @@ -17,14 +17,32 @@
RECENT
{% for item in recent %} - {{item.title}}
+ {% if dynamicRender is defined %} + {% if dynamicRender == 'true' %} + {{item.title}}
+ {% else %} + {{item.title}}
+ {% endif %} + + {% else %} + {{item.title}}
+ {% endif %} {% endfor %}
diff --git a/src/themes/theme-fipamo-default/fipamo-default/page.twig b/src/themes/theme-fipamo-default/fipamo-default/page.twig index 31c323e..36c9b07 100644 --- a/src/themes/theme-fipamo-default/fipamo-default/page.twig +++ b/src/themes/theme-fipamo-default/fipamo-default/page.twig @@ -18,7 +18,15 @@ {{meta['who']}} dropped this {{ meta['when'] }}
tags: {% for tag in meta['tags'] %} - {{ tag.label }} + {% if dynamicRender is defined %} + {% if dynamicRender == 'false' %} + {{ tag.label }} + {% else %} + {{ tag.label }} + {% endif %} + {% else %} + {{ tag.label }} + {% endif %} {% endfor %} diff --git a/src/themes/theme-fipamo-default/fipamo-default/tags.twig b/src/themes/theme-fipamo-default/fipamo-default/tags.twig index 0254a9d..baa6694 100644 --- a/src/themes/theme-fipamo-default/fipamo-default/tags.twig +++ b/src/themes/theme-fipamo-default/fipamo-default/tags.twig @@ -13,7 +13,16 @@
{% for tag in tag_list %} + {% if dynamicRender is defined %} + {% if dynamicRender == 'true' %} + {{tag.title}}
+ {% else %} {{tag.title}}
+ {% endif %} + + {% else %} + {{tag.title}}
+ {% endif %} {% endfor %}