diff --git a/composer.json b/composer.json index 03a3ae1..d7b5ce9 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "theme/blank", "type": "wp-theme", - "version": "2.0.16", + "version": "2.0.17", "description": "Wordpress starter theme with Timber/Twig", "license": "GPL-3.0-or-later", "authors": [ @@ -57,7 +57,7 @@ } }, "scripts": { - "lint": [ + "pint": [ "pint --preset psr12" ] }, diff --git a/resources/views/categories/category.twig b/resources/views/categories/category.twig index d5d9dd4..27563e6 100644 --- a/resources/views/categories/category.twig +++ b/resources/views/categories/category.twig @@ -25,7 +25,7 @@ alt="" /> {% endif %}
- {{ post.preview.length(10).read_more('') }} + {{ post.excerpt(20, false, '', true) }}
{{ fn('edit_post_link', 'Edit', '', '') }} diff --git a/resources/views/pages/list.twig b/resources/views/pages/list.twig index fcefd1e..613ff48 100644 --- a/resources/views/pages/list.twig +++ b/resources/views/pages/list.twig @@ -10,7 +10,6 @@ {% if post.thumbnail %} {{ post.title }} {% else %} - {{ post.excerpt(20, false, '', true) }} {% endfor %} diff --git a/style.css b/style.css index a821570..519bf90 100644 --- a/style.css +++ b/style.css @@ -1,7 +1,7 @@ /* Theme Name: wp-theme Theme URI:https://github.com/lastofpudge/wp-theme -Version: 2.0.16 +Version: 2.0.17 License: GNU General Public License v3 or later License URI: http://www.gnu.org/licenses/gpl-3.0.html Requires PHP: 8.0