diff --git a/package.json b/package.json index 3967ab7..fc7eb5a 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "craftcms-tailwind", - "version": "3.0.0", + "version": "4.0.0", "description": "", "main": "gulpfile.js", "env": { - "local": "http://craft-3.local" + "local": "http://craft-cms.local" }, "paths": { "dependencies": "node_modules/", @@ -119,13 +119,13 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/madebyshape/craft-3.git" + "url": "git+https://github.com/madebyshape/craft-cms.git" }, "author": "Jason Mayo (@bymayo)", "authorUrl": "https://madebyshape.co.uk", "license": "ISC", "bugs": { - "url": "https://github.com/madebyshape/craft-3/issues" + "url": "https://github.com/madebyshape/craft-cms/issues" }, - "homepage": "https://github.com/madebyshape/craft-3#readme" + "homepage": "https://github.com/madebyshape/craft-cms#readme" } diff --git a/templates/_components/field/textarea.twig b/templates/_components/field/textarea.twig index 0abff71..1b19386 100644 --- a/templates/_components/field/textarea.twig +++ b/templates/_components/field/textarea.twig @@ -54,4 +54,4 @@ {{ placeholder is defined ? ('placeholder="' ~ placeholder ~ '"')|raw }} {{ attributes is defined ? attributes|raw }} {{ required is defined and required ? 'required' }} ->{% apply spaceless %}{{ value is defined ? value }}{% endspaceless %} +>{% apply spaceless %}{{ value is defined ? value }}{% endapply %} diff --git a/templates/_page/types/pageBlock.twig b/templates/_page/types/pageBlock.twig index 300fa40..725764e 100755 --- a/templates/_page/types/pageBlock.twig +++ b/templates/_page/types/pageBlock.twig @@ -3,10 +3,6 @@ {% block content %} {%- minify -%} - {# ------- Variables ------- #} - - {# ------- Template ------- #} - {% for block in entry.pageBlockContent.all() %} {% include '_blocks/' ~ block.type.handle %} {% endfor %} @@ -16,10 +12,10 @@ {# ------- Critical CSS ------- #} -{% if entry is defined %} - {% block criticalCss %} - {%- apply spaceless -%} +{% block criticalCss %} + {% if entry is defined %} + {% apply spaceless %} {{ source ('_criticalCss/' ~ entry.slug ~ '.css', ignore_missing = true) }} - {%- endspaceless -%} - {% endblock %} -{% endif %} + {% endapply %} + {% endif %} +{% endblock %} \ No newline at end of file