diff --git a/README.md b/README.md index 1351b3382..feaa7c14f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ A premium and open source dashboard template with a responsive and high-quality UI. -View Demo | View React Version | Download ZIP +View Demo | View React Version | Download ZIP ![Tabler preview](/src/static/tabler-preview.png?raw=true) diff --git a/src/pages/_includes/layout/og.html b/src/pages/_includes/layout/og.html index a5353be80..e444a2141 100644 --- a/src/pages/_includes/layout/og.html +++ b/src/pages/_includes/layout/og.html @@ -1,15 +1,13 @@ -{% if include.show %} - + - + - + -{% endif %} diff --git a/src/pages/_layouts/base.html b/src/pages/_layouts/base.html index 4ec7af15e..21f26096c 100644 --- a/src/pages/_layouts/base.html +++ b/src/pages/_layouts/base.html @@ -13,27 +13,27 @@ {% if title %}{{ title }} - {% endif %}{% if site.title %}{{ site.title }} - {% endif %}{{ site.description }} - {% if jekyll.environment != 'development' %} - + {% if jekyll.environment == 'preview' %} + - - + + - - - - - - + + + + + + - - + + - {% if page.description %} - - {% endif %} + {% if page.description %} + + {% endif %} - {% include layout/og.html show=layout.og-component %} + {% include layout/og.html %} {% endif %} {% include layout/css.html %} diff --git a/src/pages/_layouts/component.html b/src/pages/_layouts/component.html index 42416db66..97a3149e8 100644 --- a/src/pages/_layouts/component.html +++ b/src/pages/_layouts/component.html @@ -58,7 +58,7 @@ og-component: true
{% include ui/button.html icon="clipboard" text="Copy code" color="white" 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" %}
diff --git a/src/static/og.png b/src/static/og.png new file mode 100644 index 000000000..fffbf07e8 Binary files /dev/null and b/src/static/og.png differ