From 71fbfdc8dc841dccd76690116cf45e58b8e3b5d8 Mon Sep 17 00:00:00 2001 From: codecalm Date: Sat, 4 Apr 2020 14:06:48 +0200 Subject: [PATCH] env clean --- _config.yml | 75 ++- pages/_includes/layout/content.html | 11 + pages/_includes/layout/css.html | 8 + pages/_layouts/base.html | 6 +- pages/_layouts/default.html | 14 +- scss/layout/_navbar.scss | 848 ++++++++++++++-------------- 6 files changed, 521 insertions(+), 441 deletions(-) create mode 100644 pages/_includes/layout/content.html diff --git a/_config.yml b/_config.yml index f12f43b8a..c2b2c258c 100644 --- a/_config.yml +++ b/_config.yml @@ -28,6 +28,69 @@ tabler-plugins: exclude: - .jekyll-cache + - 400.html + - 401.html + - 403.html + - 404.html + - 500.html + - 503.html + - all.html + - blog.html + - buttons.html + - calendar.html + - cards.html + - carousel.html + - changelog.html + - charts.html + - charts-heatmap.html + - components.html + - crypto-currencies.html + - docs.html + - dropdowns.html + - email.html + - favicon.ico + - flags.html + - forgot-password.html + - form-elements.html + - gallery.html + - icons.html + - index.html + - invoice.html + - license.html + - lists.html + - lookup.html + - maintenance.html + - maps.html + - maps-vector.html + - markdown.md + - modals.html + - music.html + - pagination.html + - pricing.html + - profile.html + - ribbons.html + - rtl.html + - search-results.html + - sign-in.html + - sign-up.html + - sitemap.xml + - snippets.html + - social.html + - store.html + - tables.html + - tabs.html + - terms-of-service.html + - tmp.html + - tmp2.html + - tmp3.html + - tmp4.html + - tmp-dark.html + - tmp-forms.html + - typography.html + - user-edit.html + - users.html + - welcome.html + keep_files: - css/ui-kit.css - css/dark.css @@ -48,12 +111,12 @@ toc: list_class: list-unstyled collections: - docs: - output: true - changelog: - output: false - components: - output: true +# docs: +# output: true +# changelog: +# output: false +# components: +# output: true defaults: - scope: diff --git a/pages/_includes/layout/content.html b/pages/_includes/layout/content.html new file mode 100644 index 000000000..8617d5ebd --- /dev/null +++ b/pages/_includes/layout/content.html @@ -0,0 +1,11 @@ +
+
+ {% if page-header %} + {% include layout/page-header.html title=page-header description=page.page-header-description actions=page.page-header-actions pretitle=page.page-header-pretitle %} + {% endif %} + + {{ content }} +
+ + {% include layout/footer.html %} +
\ No newline at end of file diff --git a/pages/_includes/layout/css.html b/pages/_includes/layout/css.html index 77034f6da..187b82347 100644 --- a/pages/_includes/layout/css.html +++ b/pages/_includes/layout/css.html @@ -1,3 +1,5 @@ +{% comment %} + {% if site.data.libs.css %} {% for lib in site.data.libs.css %} @@ -7,12 +9,18 @@ {% endfor %} {% endif %} +{% endcomment %} + +{% comment %} + {% for plugin in site.tabler-plugins %} {% endfor %} +{% endcomment %} + \ No newline at end of file diff --git a/pages/_layouts/base.html b/pages/_layouts/base.html index b0b1c6154..1be5de91b 100644 --- a/pages/_layouts/base.html +++ b/pages/_layouts/base.html @@ -8,6 +8,7 @@ {% if page.title %}{{ page.title }} - {% endif %}{% if layout.title %}{{ layout.title }} - {% endif %}{% if site.title %}{{ site.title }} - {% endif %}{{ site.description }} + {% if jekyll.environment == 'production' %} @@ -32,6 +33,8 @@ {% endif %} {% include layout/og.html show=layout.og-component %} + {% endif %} + {% include layout/css.html %}