diff --git a/Gemfile b/Gemfile index 4fa45c132d5020ff7b6cb5983b34175e9b038add..6d78e3d0909fb780bdd4a9ed59393349d57c3394 100644 --- a/Gemfile +++ b/Gemfile @@ -4,10 +4,14 @@ source "https://rubygems.org" git_source(:github) {|repo_name| "https://github.com/#{repo_name}" } -gem "jekyll", ">= 3.8.6" -gem "jekyll-random", "~> 0.0.3" -gem "jekyll-tidy" -gem "jekyll-timeago" -gem 'jekyll-redirect-from' -gem 'jekyll-include-cache' +gem "jekyll", "~> 4.0" + +group :jekyll_plugins do + gem "jekyll-random" + gem "jekyll-tidy" + gem "jekyll-timeago" + gem 'jekyll-redirect-from' + gem 'jekyll-include-cache' +end + gem 'wdm', '>= 0.1.1' if Gem.win_platform? diff --git a/_config.yml b/_config.yml index 529fdaf81bba7d1b713e11aa0df57812772b894d..f0094ccba57fe6efa76e3552ce1c751ec67b2cf9 100644 --- a/_config.yml +++ b/_config.yml @@ -1,11 +1,12 @@ source: pages destination: tmp -title: Tabler Admin Template +version: 1.0-alpha +title: Tabler description: Premium and Open Source dashboard template with responsive and high quality UI. github_url: https://github.com/tabler/tabler -debug: false +debug: true plugins: - jekyll-random @@ -14,6 +15,9 @@ plugins: - jekyll-redirect-from - jekyll-include-cache +exclude: +- .jekyll-cache + keep_files: - css/ui-kit.css - css/dark.css @@ -130,6 +134,8 @@ button_variants: title: Warning - name: danger title: Danger + - name: dark + title: Dark socials: - name: facebook diff --git a/pages/_data/menu.yml b/pages/_data/menu.yml index caf702b87c508f2db891dcc756cdad6f9189d854..04b8ef708e76bb20e30a64fde834853ed4cbeb9b 100644 --- a/pages/_data/menu.yml +++ b/pages/_data/menu.yml @@ -13,6 +13,12 @@ cards: title: Cards icon: file +theme: + title: Theme + icon: edit-3 + pages: + + charts: url: charts.html title: Charts diff --git a/pages/_data/people.json b/pages/_data/people.json index 81bbd8a79a18c578fbdd93175fe5bf2b2d1ac1d4..4412983062137027ac7533efb5baa75daae1d33b 100644 --- a/pages/_data/people.json +++ b/pages/_data/people.json @@ -1,6 +1,6 @@ [ { - "id": 1, + "id": "1", "first_name": "Paweł", "last_name": "Kuna", "full_name": "Paweł Kuna", @@ -26,7 +26,7 @@ "photo": "img/avatars/000m.jpg" }, { - "id": 2, + "id": "2", "first_name": "Jeffie", "last_name": "Lewzey", "full_name": "Jeffie Lewzey", diff --git a/pages/_docs/buttons.md b/pages/_docs/buttons.md index 3021345d1161819c533f8d23f93e388985bd66e3..5485e79c562a01b319792d98598502190c82fa08 100644 --- a/pages/_docs/buttons.md +++ b/pages/_docs/buttons.md @@ -33,7 +33,7 @@ Use any of the available button classes to quickly create a styled button . We p Make buttons look inactive by adding the disabled boolean attribute to any `.btn` element. ``s don’t support the disabled attribute, so you must add the `.disabled` class to make it visually appear disabled. {% example html wrapper=btn-list %} {% for button in site.button_variants %} -{% include ui/button.html color=button.name text=button.title disabled="true" %} +{% include_cached ui/button.html color=button.name text=button.title disabled="true" %} {% endfor %} {% endexample %} @@ -55,7 +55,7 @@ Add `.btn-square` to button to remove border-radius. {% example html wrapper=btn-list %} {% for button in site.button_variants %} -{% include ui/button.html text=button.title color=button.name square=true %} +{% include_cached ui/button.html text=button.title color=button.name square=true %} {% endfor %} {% endexample %} @@ -65,7 +65,7 @@ Add `.btn-pill` class to any button to make them more rounded. {% example html wrapper=btn-list %} {% for button in site.button_variants %} -{% include ui/button.html text=button.title color=button.name pill=true %} +{% include_cached ui/button.html text=button.title color=button.name pill=true %} {% endfor %} {% endexample %} @@ -75,7 +75,7 @@ In need of a button, but not the hefty background colors they bring? Replace the {% example html wrapper=btn-list %} {% for button in site.button_variants %} -{% include ui/button.html text=button.title color=button.name outline=true %} +{% include_cached ui/button.html text=button.title color=button.name outline=true %} {% endfor %} {% endexample %} @@ -83,7 +83,7 @@ In need of a button, but not the hefty background colors they bring? Replace the {% example html %} {% for button in site.button_variants %} - {% include ui/button.html text="Button" label="star" color=button.name class="mr-2" %} + {% include_cached ui/button.html text="Button" label="star" color=button.name class="mr-2" %} {% endfor %} {% endexample %} @@ -127,7 +127,7 @@ A button can be formatted to link to a social website {% example html wrapper=btn-list %} {% for button in site.socials %} -{% include ui/button.html color=button.name icon=button.icon text=button.title %} +{% include_cached ui/button.html color=button.name icon=button.icon text=button.title %} {% endfor %} {% endexample %} @@ -135,7 +135,7 @@ You can use only icons. {% example html wrapper=btn-list %} {% for button in site.socials %} -{% include ui/button.html color=button.name icon=button.icon %} +{% include_cached ui/button.html color=button.name icon=button.icon %} {% endfor %} {% endexample %} @@ -196,11 +196,11 @@ Add `.btn-loading` to use a loading state on a button. The width of the button d Since the loading spinner is implemented using the `:after` pseudo-element, it is not supported by the `` element. {% example html wrapper=btn-list %} -{% include ui/button.html spinner=true text="Button" color="primary" %} -{% include ui/button.html spinner=true text="Button" color="danger" %} -{% include ui/button.html spinner=true text="Button" color="warning" %} -{% include ui/button.html spinner=true color="success" %} -{% include ui/button.html spinner=true color="secondary" %} +{% include_cached ui/button.html spinner=true text="Button" color="primary" %} +{% include_cached ui/button.html spinner=true text="Button" color="danger" %} +{% include_cached ui/button.html spinner=true text="Button" color="warning" %} +{% include_cached ui/button.html spinner=true color="success" %} +{% include_cached ui/button.html spinner=true color="secondary" %} {% endexample %} ### List of buttons diff --git a/pages/_docs/form-elements.md b/pages/_docs/form-elements.md index 8895561ac1cc0de2b4ab1b6bbfbca17ecf82be1a..a9711534f4f9b68feba9d5ce331f188ea0a65d82 100644 --- a/pages/_docs/form-elements.md +++ b/pages/_docs/form-elements.md @@ -197,7 +197,7 @@ title: Form Elements - + {% endexample %} diff --git a/pages/_docs/spinners.md b/pages/_docs/spinners.md index a68644bcdbf7a8cfca0efc637f7cd542e92d87c7..31b1a823a34b1ac7b9af3af93c3a043098c95597 100644 --- a/pages/_docs/spinners.md +++ b/pages/_docs/spinners.md @@ -43,9 +43,9 @@ done: true ### Buttons {% example html wrapper=btn-list %} -{% include ui/button.html spinner=true text="Button" color="primary" %} -{% include ui/button.html spinner=true text="Button" color="danger" %} -{% include ui/button.html spinner=true text="Button" color="warning" %} -{% include ui/button.html spinner=true color="success" %} -{% include ui/button.html spinner=true color="secondary" %} +{% include_cached ui/button.html spinner=true text="Button" color="primary" %} +{% include_cached ui/button.html spinner=true text="Button" color="danger" %} +{% include_cached ui/button.html spinner=true text="Button" color="warning" %} +{% include_cached ui/button.html spinner=true color="success" %} +{% include_cached ui/button.html spinner=true color="secondary" %} {% endexample %} diff --git a/pages/_includes/cards/blog-single.html b/pages/_includes/cards/blog-single.html index 77e3d37c9b7bc9cd9a1b46151b5ddf1edcc5736b..a30074a87bff9fdd60ace3368b00e7d0fd069aee 100644 --- a/pages/_includes/cards/blog-single.html +++ b/pages/_includes/cards/blog-single.html @@ -18,7 +18,7 @@
- {% include ui/icon.html icon="heart" use-svg=true %} + {% include_cached ui/icon.html icon="heart" use-svg=true %}
diff --git a/pages/_includes/cards/comments.html b/pages/_includes/cards/comments.html index 9cc58e79c62c56b2789b4d460d0dfa3f1b2c1ae5..5b0304875a346c2d4aa142abbee477b8518c2ba0 100644 --- a/pages/_includes/cards/comments.html +++ b/pages/_includes/cards/comments.html @@ -21,9 +21,9 @@

+{{ forloop.index | random_number: 20, 50 }} - {% include ui/icon.html icon="chevron-up" %} + {% include_cached ui/icon.html icon="chevron-up" %} - {% include ui/icon.html icon="chevron-down" %} + {% include_cached ui/icon.html icon="chevron-down" %} · Reply diff --git a/pages/_includes/cards/company-employees.html b/pages/_includes/cards/company-employees.html index 18c2aba8959a3b5a71dc8d819d449a48886ade4a..9afb9b02346a7c54e39552ed18581995e1ec9545 100644 --- a/pages/_includes/cards/company-employees.html +++ b/pages/_includes/cards/company-employees.html @@ -21,7 +21,7 @@
- {% include ui/icon.html icon="more-horizontal" %} + {% include_cached ui/icon.html icon="more-horizontal" %} {% endfor %} diff --git a/pages/_includes/cards/feed-card.html b/pages/_includes/cards/feed-card.html index bed26450134b8e0c08dbf66e5bb6572610ae84a8..1092323c28715b1d4dad35599bcdcbd8fba01726 100644 --- a/pages/_includes/cards/feed-card.html +++ b/pages/_includes/cards/feed-card.html @@ -176,13 +176,13 @@ diff --git a/pages/_includes/cards/project-kanban.html b/pages/_includes/cards/project-kanban.html index d7e92e0f37539ed65ff6c9990cd660805f4479bd..fd295fd6c494d85399e73df1491a184c33db780f 100644 --- a/pages/_includes/cards/project-kanban.html +++ b/pages/_includes/cards/project-kanban.html @@ -8,7 +8,7 @@
@@ -20,7 +20,7 @@
- {% include ui/icon.html icon="check-square" class="mr-2" %} + {% include_cached ui/icon.html icon="check-square" class="mr-2" %} 5/10
Due {{ due }} diff --git a/pages/_includes/cards/ribbon.html b/pages/_includes/cards/ribbon.html index cdac5b1d86b03c2275aa4c26c0d80efc6d92be9b..d4adafd832acb7eccf517e91416307aef6c4ef12 100644 --- a/pages/_includes/cards/ribbon.html +++ b/pages/_includes/cards/ribbon.html @@ -9,5 +9,5 @@ {% endif %}
-
{% if include.text %}{{ include.text }}{% else %}{% include ui/icon.html icon="star" class="icon-filled" use-svg=true %}{% endif %}
+
{% if include.text %}{{ include.text }}{% else %}{% include_cached ui/icon.html icon="star" class="icon-filled" use-svg=true %}{% endif %}
diff --git a/pages/_includes/cards/small-stats-2.html b/pages/_includes/cards/small-stats-2.html index 26bd605c3d92e5a966c58b6bfc58af6106a1f8bc..b9e674221b15f83087947619574a91f6dbe53b94 100644 --- a/pages/_includes/cards/small-stats-2.html +++ b/pages/_includes/cards/small-stats-2.html @@ -14,7 +14,7 @@
- {% include ui/icon.html icon=icon %} + {% include_cached ui/icon.html icon=icon %}
{{ include.title | default: 'Customers' }}

{{ include.count | default: "1,850" }}

diff --git a/pages/_includes/cards/small-stats.html b/pages/_includes/cards/small-stats.html index 44bb69d0ca20c50a6288ab96155488717976d29c..34987af24049951cc334019db8b0e89fef8b2f88 100644 --- a/pages/_includes/cards/small-stats.html +++ b/pages/_includes/cards/small-stats.html @@ -3,7 +3,7 @@
{% if include.icon %} - {% include ui/icon.html icon=include.icon %} + {% include_cached ui/icon.html icon=include.icon %} {% elsif include.person-id %} {% include ui/avatar.html person-id=include.person-id class="mr-3 rounded" %} {% endif %} @@ -18,7 +18,7 @@
{{ include.count | default: 1700 | format_number }} {{ include.subtitle }} {% if include.small-icon %} - {% include ui/icon.html icon=include.small-icon color=include.color class="icon-sm ml-1" %} + {% include_cached ui/icon.html icon=include.small-icon color=include.color class="icon-sm ml-1" %} {% endif %}
{{ include.description | default: "Users" }}
@@ -26,7 +26,7 @@ {% if include.second-icon %}
- {% include ui/icon.html icon=include.second-icon color=include.color class="icon-lg icon-thin" %} + {% include_cached ui/icon.html icon=include.second-icon color=include.color class="icon-lg icon-thin" %}
{% endif %} diff --git a/pages/_includes/cards/store-product.html b/pages/_includes/cards/store-product.html index b2f9f50888ba20daf3fef6e77532371f29cb5559..24ae1c47b06e5388abcd683936cd58e3e3668c72 100644 --- a/pages/_includes/cards/store-product.html +++ b/pages/_includes/cards/store-product.html @@ -13,7 +13,7 @@ {{ product.price }}
diff --git a/pages/_includes/cards/subscribe.html b/pages/_includes/cards/subscribe.html index ecac2495dd246d1334472a991c9acd253afa5ca1..3f5cc5aa84ae6287d932962e0196ac68d0d088d5 100644 --- a/pages/_includes/cards/subscribe.html +++ b/pages/_includes/cards/subscribe.html @@ -25,7 +25,7 @@
diff --git a/pages/_includes/cards/tabs.html b/pages/_includes/cards/tabs.html index b128983f06b0bed45925e4ad22063c19adf43271..9166c4b46fe1d11c5a9402c3d6ec8afdc0c8f84a 100644 --- a/pages/_includes/cards/tabs.html +++ b/pages/_includes/cards/tabs.html @@ -11,21 +11,24 @@
diff --git a/pages/_includes/cards/tasks.html b/pages/_includes/cards/tasks.html index 9e8a1c979225becb8b6e509c2af14c850f89c04a..b6c96e285083fb29543b4ff66f54d4cedf9df9f8 100644 --- a/pages/_includes/cards/tasks.html +++ b/pages/_includes/cards/tasks.html @@ -16,14 +16,14 @@ {{ task.name }} - {% include ui/icon.html icon="calendar" %} + {% include_cached ui/icon.html icon="calendar" %} {{ forloop.index | random_date: "2019-01-01", "2018-01-01" | date: '%B %d, %Y' }} - {% include ui/icon.html icon="check" %} {{ forloop.index | random_number: 0, 6 }}/{{ forloop.index | random_number: 5, 10 }} + {% include_cached ui/icon.html icon="check" %} {{ forloop.index | random_number: 0, 6 }}/{{ forloop.index | random_number: 5, 10 }} - {% include ui/icon.html icon="message-square" %} {{ forloop.index | random_number: 0, 12 }} + {% include_cached ui/icon.html icon="message-square" %} {{ forloop.index | random_number: 0, 12 }} {% include ui/avatar.html person-id=forloop.index size="sm" %} diff --git a/pages/_includes/cards/timeline.html b/pages/_includes/cards/timeline.html index 0b7dbc82be426d8a388e2f0412778c153fa806e0..29c3c7f873f62a57fc49913267f360b69e7b7575 100644 --- a/pages/_includes/cards/timeline.html +++ b/pages/_includes/cards/timeline.html @@ -5,7 +5,7 @@
  • -
    {% include ui/icon.html icon="twitter" %}
    +
    {% include_cached ui/icon.html icon="twitter" %}
    10 hrs ago

    +1150 Followers

    @@ -13,7 +13,7 @@
  • -
    {% include ui/icon.html icon="briefcase" %}
    +
    {% include_cached ui/icon.html icon="briefcase" %}
    2 hrs ago

    +3 New Products were added!

    @@ -21,7 +21,7 @@
  • -
    {% include ui/icon.html icon="check" %}
    +
    {% include_cached ui/icon.html icon="check" %}
    1 day ago

    Database backup completed!

    @@ -29,7 +29,7 @@
  • -
    {% include ui/icon.html icon="facebook" %}
    +
    {% include_cached ui/icon.html icon="facebook" %}
    1 day ago

    +290 Page Likes

    @@ -37,7 +37,7 @@
  • -
    {% include ui/icon.html icon="user-plus" %}
    +
    {% include_cached ui/icon.html icon="user-plus" %}
    2 days ago

    +3 Friend Requests

    @@ -49,7 +49,7 @@
  • -
    {% include ui/icon.html icon="image" %}
    +
    {% include_cached ui/icon.html icon="image" %}
    3 days ago

    +2 New photos

    @@ -70,7 +70,7 @@
  • -
    {% include ui/icon.html icon="settings" %}
    +
    {% include_cached ui/icon.html icon="settings" %}
    2 weeks ago

    System updated to v2.02

    diff --git a/pages/_includes/cards/user-info.html b/pages/_includes/cards/user-info.html index 7f5f1c2e1552e3dd8da2c7340f429563e9c673ea..15ad390877872dae20ad0c7554f9afd773670ff5 100644 --- a/pages/_includes/cards/user-info.html +++ b/pages/_includes/cards/user-info.html @@ -1,33 +1,32 @@ -{% assign person-id = include.person-id | default: 25 %} -{% assign person = site.data.people | where: "id", person-id %} -{% assign p = person[0] %} +{% assign person-id = include.person-id | default: 25 | minus: 1 %} +{% assign person = site.data.people[person-id] %}
    {{ include.title | default: 'Basic info' }}
    - {% include ui/icon.html icon="book" class="mr-2 text-muted" %} - Went to: {{ p.university }} + {% include_cached ui/icon.html icon="book" class="mr-2 text-muted" %} + Went to: {{ person.university }}
    - {% include ui/icon.html icon="briefcase" class="mr-2 text-muted" %} - Worked at: {{ p.company }} + {% include_cached ui/icon.html icon="briefcase" class="mr-2 text-muted" %} + Worked at: {{ person.company }}
    - {% include ui/icon.html icon="home" class="mr-2 text-muted" %} - Lives in: {{ p.city }}, {{ p.country }} + {% include_cached ui/icon.html icon="home" class="mr-2 text-muted" %} + Lives in: {{ person.city }}, {{ person.country }}
    - {% include ui/icon.html icon="map-pin" class="mr-2 text-muted" %} - From: {% include ui/flag.html flag=p.country_code %} {{ p.country }} + {% include_cached ui/icon.html icon="map-pin" class="mr-2 text-muted" %} + From: {% include ui/flag.html flag=person.country_code %} {{ person.country }}
    - {% include ui/icon.html icon="calendar" class="mr-2 text-muted" %} - Birth date: {{ p.birth_date }} + {% include_cached ui/icon.html icon="calendar" class="mr-2 text-muted" %} + Birth date: {{ person.birth_date }}
    - {% include ui/icon.html icon="clock" class="mr-2 text-muted" %} - Time zone: {{ p.time_zone }} + {% include_cached ui/icon.html icon="clock" class="mr-2 text-muted" %} + Time zone: {{ person.time_zone }}
    diff --git a/pages/_includes/cards/users-list.html b/pages/_includes/cards/users-list.html index 9e98ee91da45f24e7404ea6b610d78c05f42ca37..8cc0fa5db9c2c620b250e2bb73419e934fac8c34 100644 --- a/pages/_includes/cards/users-list.html +++ b/pages/_includes/cards/users-list.html @@ -30,7 +30,7 @@ {% else %} {% assign star-color = 'text-muted' %} {% endif %} - {% include ui/icon.html icon="star" class=star-color %} + {% include_cached ui/icon.html icon="star" class=star-color %} {% endif %}
    {% endfor %} diff --git a/pages/_includes/forms/form-elements-1.html b/pages/_includes/forms/form-elements-1.html index 428f11441bfdc4567c8af2550f514b3be19cf2ea..bf32f8248c591c64c063c1602008b07db0fb7cda 100644 --- a/pages/_includes/forms/form-elements-1.html +++ b/pages/_includes/forms/form-elements-1.html @@ -69,7 +69,7 @@
- +
diff --git a/pages/_includes/layout/banner.html b/pages/_includes/layout/banner.html new file mode 100644 index 0000000000000000000000000000000000000000..6e1bc6b9b71477468102f73b8568416de3dbc1ec --- /dev/null +++ b/pages/_includes/layout/banner.html @@ -0,0 +1,8 @@ + diff --git a/pages/_includes/layout/menu.html b/pages/_includes/layout/menu.html index aecdba54fc659182e54bab73578a8d965ff4d492..0db32531da55aa12345ce2dffacc56b0a057a9cb 100644 --- a/pages/_includes/layout/menu.html +++ b/pages/_includes/layout/menu.html @@ -13,7 +13,7 @@ %}href="{{ level-1[1].url }}" data-toggle="{{ level-1[1].toggle }}" {% else %}href="{{ site.base }}/{{ level-1[1].url }}" {% endif %}> - {% include ui/icon.html icon=icon %} + {% include_cached ui/icon.html icon=icon %} {{ level-1[1].title }} diff --git a/pages/_includes/layout/page-title.html b/pages/_includes/layout/page-title.html index d94d5624434a396a0226581c3462ae2f446d078f..d9556fadd3daabcbbb557f773637aab35fb12af9 100644 --- a/pages/_includes/layout/page-title.html +++ b/pages/_includes/layout/page-title.html @@ -27,17 +27,17 @@ {% if page.page-title-actions == 'users' %}
- {% include ui/button.html text="New user" color="primary" icon="plus" %} + {% include_cached ui/button.html text="New user" color="primary" icon="plus" %}
{% elsif page.page-title-actions == 'calendar' %}
- {% include ui/button.html text="Add event" color="primary" icon="plus" %} + {% include_cached ui/button.html text="Add event" color="primary" icon="plus" %}
{% else %} - {% include ui/button.html text="New view" color="secondary" icon="plus" %} + {% include_cached ui/button.html text="New view" color="secondary" icon="plus" %} - {% include ui/button.html text="Create new report" color="primary" class="ml-3" %} + {% include_cached ui/button.html text="Create new report" color="primary" class="ml-3" %} {% endif %}
{% endif %} diff --git a/pages/_includes/layout/topnav.html b/pages/_includes/layout/topnav.html index 20db118cf988f4c9f8235dd8ae58512830111fa8..76618c87c336ec493d585cb7cd3d4fcf29b7b069 100644 --- a/pages/_includes/layout/topnav.html +++ b/pages/_includes/layout/topnav.html @@ -1,6 +1,6 @@ diff --git a/pages/_includes/parts/calendar.html b/pages/_includes/parts/calendar.html index aa6a81ad803a77c946d770e2daee012bfbcd7ce1..311ee9729138fc48af29a2e8094b3fedbe85da41 100644 --- a/pages/_includes/parts/calendar.html +++ b/pages/_includes/parts/calendar.html @@ -10,11 +10,11 @@
{{ include.title | default: 'March 2017' }}
diff --git a/pages/_includes/parts/input-color.html b/pages/_includes/parts/input-color.html index d6e5940cdf5767796508ca75f935fb8201384a34..e1fe4c6a3dc49fa7f5e6ce12dfb2bf158a7a0f5b 100644 --- a/pages/_includes/parts/input-color.html +++ b/pages/_includes/parts/input-color.html @@ -1,7 +1,7 @@
- {% for color in site.colors limit: 9 offset: 1 %} + {% for color in site.colors limit: 10 %}
+ + {% endif %} - + - {% if include.user-menu %} - - {% endif %} - - {% if include.manage %} - - {% endif %} - - {% if include.register %} - -
  • - - Register + + {% include_cached ui/icon.html icon="mail" class="dropdown-icon" %} Inbox + 6 -
  • - {% endif %} + + {% include_cached ui/icon.html icon="send" class="dropdown-icon" %} Message + + + + {% include_cached ui/icon.html icon="help-circle" class="dropdown-icon" %} Need help? + + + {% include_cached ui/icon.html icon="log-out" class="dropdown-icon" %} Sign out + +
    + + {% endif %} + + {% if include.manage %} + + {% endif %} + + {% if include.register %} + +
  • + + Register + +
  • + {% endif %} - {% if include.plus %} - - {% endif %} + {% if include.plus %} + + {% endif %} - {% if include.premium %} - - {% endif %} + {% if include.premium %} + + {% endif %} - {% if include.sync %} - - {% endif %} - + {% if include.sync %} + + {% endif %} + diff --git a/pages/_includes/parts/pagination.html b/pages/_includes/parts/pagination.html index 9a54a9072be48b376296c0541f8248ed3be3b82e..dc14bd0a2c2f6d06ee53c9127432c25519976149 100644 --- a/pages/_includes/parts/pagination.html +++ b/pages/_includes/parts/pagination.html @@ -7,7 +7,7 @@
    Previous
    {{ include.prev-description }}
    {% else %} - {% if include.icons %}{% include ui/icon.html icon="chevron-left" %}{% else %}{% include ui/icon.html icon="chevron-left" %} Prev{% endif %} + {% if include.icons %}{% include_cached ui/icon.html icon="chevron-left" %}{% else %}{% include_cached ui/icon.html icon="chevron-left" %} Prev{% endif %} {% endif %} @@ -23,7 +23,7 @@
    Next
    {{ include.next-description }}
    {% else %} - {% if include.icons %}{% include ui/icon.html icon="chevron-right" %}{% else %}Next {% include ui/icon.html icon="chevron-right" %}{% endif %} + {% if include.icons %}{% include_cached ui/icon.html icon="chevron-right" %}{% else %}Next {% include_cached ui/icon.html icon="chevron-right" %}{% endif %} {% endif %} diff --git a/pages/_includes/ui/alert.html b/pages/_includes/ui/alert.html index 4dd1c28abe3a3e67b9e54f4f14bc02a11bdd0996..f470b051b391cd33e9f9bc21777d4131a2abad83 100644 --- a/pages/_includes/ui/alert.html +++ b/pages/_includes/ui/alert.html @@ -1,7 +1,7 @@ {% assign person = include.person %} @@ -17,6 +17,6 @@

    {% assign button-text = include.button-text | default: "Search again" %} - {% include ui/button.html text=button-text color="primary" icon=include.button-icon %} + {% include_cached ui/button.html text=button-text color="primary" icon=include.button-icon %}
    diff --git a/pages/_includes/ui/input-selectgroup.html b/pages/_includes/ui/input-selectgroup.html index 9c07c9020fe3db385601b7690716d56d3b4a438c..575045c323370cf89eab3d229faee8a9839f4610 100644 --- a/pages/_includes/ui/input-selectgroup.html +++ b/pages/_includes/ui/input-selectgroup.html @@ -7,7 +7,7 @@ {% endfor %}
    diff --git a/pages/_includes/ui/nav.html b/pages/_includes/ui/nav.html index aecafb50d59553b3c60c08d9b2b48e5cba09946d..d13ac80fc3026627ca0099c3a6f89be673a9fff4 100644 --- a/pages/_includes/ui/nav.html +++ b/pages/_includes/ui/nav.html @@ -6,7 +6,7 @@ @@ -17,7 +17,7 @@ diff --git a/pages/_includes/ui/sparkline.html b/pages/_includes/ui/sparkline.html index 03df42e2eb21bb441a7ebca2ea7721c93dbbcd39..a233e70f7d3af355334b76b7a98b6562c70a2bbf 100644 --- a/pages/_includes/ui/sparkline.html +++ b/pages/_includes/ui/sparkline.html @@ -12,7 +12,7 @@ {% endif %} {% if include.label-icon %}
    - {% include ui/icon.html icon=include.label-icon color=include.color %} + {% include_cached ui/icon.html icon=include.label-icon color=include.color %}
    {% endif %}
    diff --git a/pages/_includes/ui/stars.html b/pages/_includes/ui/stars.html index 63f95e7a4c4f64067ad747a2a5dd96a9762346c5..6fdefa70f86daaa322362e8b687ae42fe4155e94 100644 --- a/pages/_includes/ui/stars.html +++ b/pages/_includes/ui/stars.html @@ -8,9 +8,9 @@ {% for i in (1..5) %} {% if forloop.index <= rate and filled %} - {% include ui/icon.html icon=icon class="icon-filled" %} + {% include_cached ui/icon.html icon=icon class="icon-filled" %} {% else %} - {% include ui/icon.html icon=icon %} + {% include_cached ui/icon.html icon=icon %} {% endif %} {% endfor %} diff --git a/pages/_includes/ui/trending.html b/pages/_includes/ui/trending.html index b85ddc05a60cf75584b673f955e95dc0a5789977..4dde924882993f3c02cdd41491a0b4123418738f 100644 --- a/pages/_includes/ui/trending.html +++ b/pages/_includes/ui/trending.html @@ -11,5 +11,5 @@ {% endif %} - {{ value }}% {% include ui/icon.html icon=icon class="icon-thin" %} + {{ value }}% {% include_cached ui/icon.html icon=icon class="icon-thin" %} diff --git a/pages/_layouts/base.html b/pages/_layouts/base.html index 7e4ae75e51c708a05e814376acdfbcf925783d87..2897358d43c78fc1593ecae26cc7bbc88b901e19 100644 --- a/pages/_layouts/base.html +++ b/pages/_layouts/base.html @@ -1,4 +1,5 @@ +{% include_cached layout/banner.html %} @@ -19,8 +20,7 @@ - {% if page.title %}{{ page.title }} - {% endif %}{% if layout.title %}{{ layout.title }} - {% endif %}{% if - site.title %}{{ site.title }} - {% endif %}{{ site.description }} + {% if page.title %}{{ page.title }} - {% endif %}{% if layout.title %}{{ layout.title }} - {% endif %}{% if site.title %}{{ site.title }} - {% endif %}{{ site.description }} {% if page.description %} diff --git a/pages/_layouts/component.html b/pages/_layouts/component.html index b920c854f1efb0b5744cce66bd313f954643fc05..ba73877887e5e5e71b53b75f8befc5e63ea3a1fd 100644 --- a/pages/_layouts/component.html +++ b/pages/_layouts/component.html @@ -55,11 +55,11 @@ og-component: true
    -
    {% include ui/button.html icon="clipboard" text="Copy code" color="secondary" block=true class="mt-4" %}
    +
    {% include_cached ui/button.html icon="clipboard" text="Copy code" color="secondary" block=true class="mt-4" %}
    - {% include ui/button.html icon="codesandbox" text="Edit in CodePen" color="primary" block=true class="mt-4" element="button" type="submit" %} + {% include_cached ui/button.html icon="codesandbox" text="Edit in CodePen" color="primary" block=true class="mt-4" element="button" type="submit" %}
    diff --git a/pages/_layouts/docs.html b/pages/_layouts/docs.html index f55e7f9d8acf8aae6208c3c5fab65b9399359ea6..333520a6ed63eb55a1cb06f21e34f6846a526e92 100644 --- a/pages/_layouts/docs.html +++ b/pages/_layouts/docs.html @@ -9,14 +9,14 @@ page-title: Documentation
    - {% include ui/icon.html icon="github" class="mr-2" %}Browse source code + {% include_cached ui/icon.html icon="github" class="mr-2" %}Browse source code @@ -26,7 +26,7 @@ page-title: Documentation
    -

    {{ page.title }}{% if page.done %} {% include ui/icon.html icon="check" color="green" %}{% endif %}

    +

    {{ page.title }}{% if page.done %} {% include_cached ui/icon.html icon="check" color="green" %}{% endif %}

    {% if page.plugin %}
    This module is available in tabler-{{ page.plugin }} plugin.
    diff --git a/pages/all.html b/pages/all.html index 5814b7fbea76bbdbccbe826f4c65923e47dff871..7ebda07c6836849333d3de47ceaf86d9dc9e72db 100644 --- a/pages/all.html +++ b/pages/all.html @@ -20,7 +20,7 @@ menu: index
  • {% if page.done %} - {% include ui/icon.html icon="check" color="success" %} + {% include_cached ui/icon.html icon="check" color="success" %} {% endif %} {{ page.title | default: page.name }} diff --git a/pages/buttons.html b/pages/buttons.html index 9bfd18a74de7d0fe2668bb2806dd7774785ba79f..09ff1406ad67291b4c49d56a83de07e23893f88d 100644 --- a/pages/buttons.html +++ b/pages/buttons.html @@ -12,7 +12,7 @@ done: true
    {% for color in site.colors %} {% assign c = color[0] %} - {% include ui/button.html text="Button" color=c %} + {% include_cached ui/button.html text="Button" color=c %} {% endfor %}
  • @@ -27,7 +27,7 @@ done: true
    {% for color in site.colors %} {% assign c = color[0] %} - {% include ui/button.html text="Button" outline=true color=c %} + {% include_cached ui/button.html text="Button" outline=true color=c %} {% endfor %}
    @@ -42,7 +42,7 @@ done: true
    {% for color in site.colors %} {% assign c = color[0] %} - {% include ui/button.html text="Button" color=c icon="star" %} + {% include_cached ui/button.html text="Button" color=c icon="star" %} {% endfor %}
    @@ -57,7 +57,7 @@ done: true
    {% for color in site.colors %} {% assign c = color[0] %} - {% include ui/button.html text="Button" outline=true color=c icon-right="star" %} + {% include_cached ui/button.html text="Button" outline=true color=c icon-right="star" %} {% endfor %}
    @@ -71,7 +71,7 @@ done: true
    {% for social in site.socials %} - {% include ui/button.html text=social.title color=social.name icon=social.icon %} + {% include_cached ui/button.html text=social.title color=social.name icon=social.icon %} {% endfor %}
    diff --git a/pages/email.html b/pages/email.html index b3da92398c5df243382312db2b995c26ba5b0d78..8c4aeaefef235354d605a7753aa337577dc70377 100644 --- a/pages/email.html +++ b/pages/email.html @@ -11,25 +11,25 @@ page-title: Crypto currencies
    - {% include ui/icon.html icon="inbox" %}Inbox 14 + {% include_cached ui/icon.html icon="inbox" %}Inbox 14 - {% include ui/icon.html icon="send" %}Sent Mail + {% include_cached ui/icon.html icon="send" %}Sent Mail - {% include ui/icon.html icon="alert-circle" %}Important 3 + {% include_cached ui/icon.html icon="alert-circle" %}Important 3 - {% include ui/icon.html icon="star" %}Starred + {% include_cached ui/icon.html icon="star" %}Starred - {% include ui/icon.html icon="file" %}Drafts + {% include_cached ui/icon.html icon="file" %}Drafts - {% include ui/icon.html icon="tag" %}Tags + {% include_cached ui/icon.html icon="tag" %}Tags - {% include ui/icon.html icon="trash" %}Trash + {% include_cached ui/icon.html icon="trash" %}Trash
    diff --git a/pages/gallery.html b/pages/gallery.html index 237a77048dcc0307dfc66e1cd6a5def9586f9e6a..f21652a62ae1dfdabd7bd00b949336be10362068 100644 --- a/pages/gallery.html +++ b/pages/gallery.html @@ -22,11 +22,11 @@ menu: gallery
    - {% include ui/icon.html icon="eye" %} + {% include_cached ui/icon.html icon="eye" %} {{ forloop.index | random_number: 300, 600 }} - {% include ui/icon.html icon="heart" %} + {% include_cached ui/icon.html icon="heart" %} {{ forloop.index | random_number: 20, 100 }}
    diff --git a/pages/text.html b/pages/text.html index 2a6458a5b3bcf5640e0dc789d998625c2e888200..7366c2091174a9146b60939507cee8264982cf85 100644 --- a/pages/text.html +++ b/pages/text.html @@ -8,7 +8,7 @@

    Lorem ipsum dolor sit amet

    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dignissimos dolor incidunt nisi optio provident quod recusandae repellendus repudiandae tenetur. Cupiditate dignissimos esse expedita fugiat impedit modi nostrum omnis quaerat quo. - {% include ui/button.html color="blue" size="sm" %} + {% include_cached ui/button.html color="blue" size="sm" %} Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dignissimos dolor incidunt nisi optio provident quod recusandae repellendus repudiandae tenetur. Cupiditate dignissimos esse expedita fugiat impedit modi nostrum omnis quaerat quo.

    @@ -25,19 +25,19 @@

    Lorem ipsum dolor sit amet, consectetur adipisicing elit. Dignissimos dolor incidunt nisi optio provident quod recusandae repellendus repudiandae tenetur. Cupiditate dignissimos esse expedita fugiat impedit modi nostrum omnis quaerat quo.

    - {% include ui/button.html color="blue" %} - {% include ui/button.html color="danger" %} - {% include ui/button.html color="green" %} + {% include_cached ui/button.html color="blue" %} + {% include_cached ui/button.html color="danger" %} + {% include_cached ui/button.html color="green" %}
    - {% include ui/button.html color="blue" %} + {% include_cached ui/button.html color="blue" %} - {% include ui/button.html color="blue" size="sm" %} + {% include_cached ui/button.html color="blue" size="sm" %} - {% include ui/button.html color="blue" size="lg" %} + {% include_cached ui/button.html color="blue" size="lg" %}
    diff --git a/pages/users.html b/pages/users.html index c1690db9130b7e021ad7dfa3ef5d310d0ee0b312..a3fc50bf5fcb63094fc17435613bf5f506ba1602 100644 --- a/pages/users.html +++ b/pages/users.html @@ -26,8 +26,8 @@ menu: users {% comment %}
    - {% include ui/button.html color="twitter" icon="brand/twitter" icon-only=true outline=true %} - {% include ui/button.html color="facebook" icon="brand/facebook" icon-only=true outline=true %} + {% include_cached ui/button.html color="twitter" icon="brand/twitter" icon-only=true outline=true %} + {% include_cached ui/button.html color="facebook" icon="brand/facebook" icon-only=true outline=true %}
    {% endcomment %} @@ -47,8 +47,8 @@ menu: users
    - {% include ui/button.html text="Chat" color="secondary" size="sm" %} - {% include ui/button.html text="Profile" color="secondary" size="sm" %} + {% include_cached ui/button.html text="Chat" color="secondary" size="sm" %} + {% include_cached ui/button.html text="Profile" color="secondary" size="sm" %}