Sha256: a8c0cd068f7e91ace408706f10b970d83c4b2d459c5a0dccca03ffec4e00dec1

Contents?: true

Size: 1.97 KB

Versions: 2

Compression:

Stored size: 1.97 KB

Contents

---
regenerate:                             false
---

{% capture j1_cache %}

{% comment %}
 # -----------------------------------------------------------------------------
 #  ~/assets/data/themes.json
 #  The Liquid template themes.json is used by the Theme Switcher to locate
 #  the CSS files to be loaded on a switch for a specific theme
 #
 #  Product/Info:
 #  https://jekyll.one
 #
 #  Copyright (C) 2019 Juergen Adams
 #
 #  J1 Template is licensed under the MIT License.
 #  See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
 # -----------------------------------------------------------------------------
 # NOTE:
 # Be carefull change the Liquid code. If the code is changed, check the
 # interity of the JSON data created. Invalid JSON data will cause the
 # Javascript portion of the Theme Switcher to fail and no valid CSS will
 # be available to provide the needed styles to properly render your pages.
 # -----------------------------------------------------------------------------
 #  Test data:
 #   {{ liquid_var | debug }}
 # -----------------------------------------------------------------------------
{% endcomment %}

{% assign environment         = site.environment %}
{% assign  asset_path         = site.data.j1_config.asset_path %}
{% assign custom_theme_config = site.data.j1_config.custom_theme %}
{% assign custom_scss         = custom_theme_config.custom_scss %}
{% capture theme_path %}{{asset_path}}/modules/bs_theme_switcher/themes{% endcapture %}

{% if environment == 'development' %}
{
  "themes":
  [
    {"name": "Uno",             "css": "{{asset_path}}/core/css/uno.css"},
    {"name": "Bootstrap",       "css": "{{asset_path}}/core/css/bootstrap.css"}
  ]
}
{% else %}
{
  "themes":
  [
    {"name": "Uno",             "css": "{{asset_path}}/core/css/uno.min.css"},
    {"name": "Bootstrap",       "css": "{{asset_path}}/core/css/bootstrap.min.css"}
  ]
}
{% endif %}

{% endcapture %}

{{ j1_cache | strip_empty_lines }}
{% assign j1_cache = nil %}

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
j1_template-2019.4.4 lib/starter_web/assets/data/themes.json
j1_template-2019.4.1 lib/starter_web/assets/data/themes.json