Skip to content

Commit

Permalink
Fixed: Spaceless issues
Browse files Browse the repository at this point in the history
  • Loading branch information
bymayo committed May 11, 2022
1 parent bcd1bb6 commit 007315b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 16 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -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/",
Expand Down Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion templates/_components/field/textarea.twig
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}</textarea>
>{% apply spaceless %}{{ value is defined ? value }}{% endapply %}</textarea>
16 changes: 6 additions & 10 deletions templates/_page/types/pageBlock.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
{% block content %}
{%- minify -%}

{# ------- Variables ------- #}

{# ------- Template ------- #}

{% for block in entry.pageBlockContent.all() %}
{% include '_blocks/' ~ block.type.handle %}
{% endfor %}
Expand All @@ -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 %}

0 comments on commit 007315b

Please sign in to comment.