--- layout: page title: Creators Blog tagline: posts by tag description: > Browse articles by tag categories: [ Blog ] tags: [ Navigator, Tags ] sort: date toc: true fam_menu_id: open_toc pagination: enabled: false permalink: /page:num/ analytics: true advertising: false comments: false regenerate: false resource_options: - attic: padding_top: 400 padding_bottom: 50 opacity: 0.5 slides: - url: /assets/images/modules/attics/matthaeus-1920x1280.jpg alt: Photo by Matthaeus alignY: top badge: type: unsplash author: Matthaeus href: https://unsplash.com/@matthaeus123 --- {% comment %} TODO: logic for "letter_group_written == false" to be fixed -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Liquid procedures -------------------------------------------------------------------------------- {% endcomment %} {% capture get_page_path %}themes/{{site.template.name}}/procedures/global/get_page_path.proc{% endcapture %} {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %} {% capture get_category %}themes/{{site.template.name}}/procedures/global/get_category.proc{% endcapture %} {% capture get_category_item %}themes/{{site.template.name}}/procedures/global/get_category_item.proc{% endcapture %} {% capture create_word_cloud %}themes/{{site.template.name}}/procedures/global/create_word_cloud.proc{% endcapture %} {% comment %} Set config files -------------------------------------------------------------------------------- {% endcomment %} {% assign template_config = site.data.j1_config %} {% assign blocks = site.data.blocks %} {% assign modules = site.data.modules %} {% assign builder = site.data.builder %} {% assign plugins = site.data.plugins %} {% comment %} Set config data -------------------------------------------------------------------------------- {% endcomment %} {% assign blog_navigator_defaults = builder.defaults.blog_navigator.defaults %} {% assign blog_navigator_settings = builder.blog_navigator.settings %} {% comment %} Set config options -------------------------------------------------------------------------------- {% endcomment %} {% assign blog_navigator_options = blog_navigator_defaults | merge: blog_navigator_settings %} {% comment %} Variables -------------------------------------------------------------------------------- {% endcomment %} {% assign truncate_words = site.excerpt_truncate_words %} {% if site.permalink == 'none' %} {% capture browser_page_url %}{{page.url}}.html{% endcapture %} {% else %} {% capture browser_page_url %}{{page.url}}{% endcapture %} {% endif %} {% comment %} jadams: skip_words needs to be configured by yaml data file -------------------------------------------------------------------------------- {% endcomment %} {% assign letter_groups = "ab, cd, ef, gh, ij, kl, mn, op, qr, st, uvw, xyz" %} {% assign letter_groups = letter_groups | remove: ' ' %} {% assign letter_group_array = letter_groups | split:',' %} {% assign letter_group_counter = 0 %} {% assign letter_group_written = false %} {% include {{get_page_path}} mode='absolute' %} {% assign navigator_path = page_path | remove_first:'archive' %} {% capture navigator %}{{navigator_path}}{% endcapture %} {% capture blog_preview %}{{page_path}}/preview/{% endcapture %} {% capture date_view %}{{page_path}}/dateview/{% endcapture %} {% capture category_view %}{{page_path}}/categoryview/{% endcapture %} {% capture tag_view %}{{page_path}}/tagview/{% endcapture %} {% capture all_view %}{{page_path}}/{% endcapture %} {% comment %} TODO: skip_words should configured by yaml data file? -------------------------------------------------------------------------------- {% endcomment %} {% assign tags = site.tags | sort %} {% capture site_tag_word_list %}{% for tag in site.tags %}{{tag | first}}{% unless forloop.last %},{% endunless %}{% endfor %}{% endcapture %} {% assign tags = site_tag_word_list | split:',' %} {% for tag in tags %} {% if page.skip_words contains tag %} {% continue %} {% endif %} {% capture tag_list %}{{tag_list | append: tag}}{% unless forloop.last %},{% endunless %}{% endcapture %} {% endfor %} {% comment %} language detection -------------------------------------------------------------------------------- {% endcomment %} {% if site.language == "en" %} {% assign language = "en" %} {% elsif site.language == "de"%} {% assign language = "de" %} {% else %} {% assign language = "en" %} {% endif %} {% if language == "en" %} {% assign readmore_text = "read" %} {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.en %} {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.en %} {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.en %} {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.en %} {% assign view_headline = blog_navigator_options.tag_view.page_text.en.headline %} {% assign view_description_text = blog_navigator_options.tag_view.page_text.en.description %} {% endif %} {% if language == "de" %} {% assign readmore_text = "lesen" %} {% assign category_view_button_text = blog_navigator_options.button_text.view_selector.category_view.de %} {% assign date_view_button_text = blog_navigator_options.button_text.view_selector.date_view.de %} {% assign archive_view_button_text = blog_navigator_options.button_text.view_selector.archive_view.de %} {% assign tag_view_button_text = blog_navigator_options.button_text.view_selector.tag_view.de %} {% assign view_headline = blog_navigator_options.tag_view.page_text.de.headline %} {% assign view_description_text = blog_navigator_options.tag_view.page_text.de.description %} {% endif %} {% comment %} Debugging -------------------------------------------------------------------------------- skip_categories: {{skip_categories | debug}} site_category_word_list: {{site_category_word_list | debug}} -------------------------------------------------------------------------------- {% endcomment %} {% comment %} Main -------------------------------------------------------------------------------- {% endcomment %} {% include {{create_word_cloud}} word_list=tag_list source="tags" %}
{% if blog_navigator_options.tag_view.page_text.enabled %}
{{view_description_text}}
{% endif %}

Posts By Tag

{% assign letter_group = letter_group_array[letter_group_counter] %} {% for item in (0..site.tags.size) %}{% unless forloop.last %} {% capture this_word %}{{word_array[item] | strip_newlines}}{% endcapture %} {% for skip_word in skip_word_array %} {% if skip_word contains this_word %} {% assign skip = true %} {% else %} {% assign skip = false %} {% endif %} {% if skip %} {% break %} {% endif %} {% endfor %} {% if skip %} {% continue %} {% endif %} {% assign first_letter = this_word | slice: 0, 1 %} {% assign first_letter = first_letter | downcase %} {% if letter_group contains first_letter %} {% comment %} jadams, 2018-01-17: logic seems NOT work. Disabled. -------------------------------------------------------------------------- {% if letter_group_written == false %} {% assign letter_group_written = true %} {% endif %} -------------------------------------------------------------------------- {% endcomment %} {% else %} {% assign letter_group_counter = letter_group_counter | plus:1 %} {% assign letter_group = letter_group_array[letter_group_counter] %} {% comment %} jadams, 2018-01-17: logic seems NOT work. Added workaround by checking if letter_group has a value -------------------------------------------------------------------------- {% endcomment %} {% if letter_group %} {% endif %} {% assign letter_group_written = true %} {% endif %} {% comment %} letter_group: {{letter_group | debug}} this_word: {{this_word | debug}} first_letter: {{first_letter | debug}} {% endcomment %} {% for post in site.tags[this_word] %}{% if post.title != null %} {% include {{get_category}} post=post %} {% assign category = _category %} {% include {{get_category_item}} category=category %} {% include {{select_icon_size}} family=icon_family size=icon_size %} {% assign icon_size = size %} {% assign excerpt = post.excerpt|truncatewords:truncate_words|replace:'...',' ...'|strip_html|strip_newlines|strip %}

{{post.title}}

{% if post.image %}
{% else %}
{% endif %}
{{excerpt}}
{% endif %}{% endfor %} {% endunless %}{% endfor %}