Skip to content

Commit

Permalink
refactor: update deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
lastofpudge committed Feb 20, 2024
1 parent 6c261c2 commit 981162f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down Expand Up @@ -57,7 +57,7 @@
}
},
"scripts": {
"lint": [
"pint": [
"pint --preset psr12"
]
},
Expand Down
2 changes: 1 addition & 1 deletion resources/views/categories/category.twig
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
alt="" />
{% endif %}
<div class="clear">
{{ post.preview.length(10).read_more('') }}
{{ post.excerpt(20, false, '', true) }}
</div>
{{ fn('edit_post_link', 'Edit', '<span class="edit-link">', '</span>') }}
</div>
Expand Down
1 change: 0 additions & 1 deletion resources/views/pages/list.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
{% if post.thumbnail %}
<img src="{{ post.thumbnail.src }}" srcset="{{ post.thumbnail.srcset }}" alt="{{ post.title }}" />
{% else %}

{{ post.excerpt(20, false, '', true) }}
</div>
{% endfor %}
Expand Down
2 changes: 1 addition & 1 deletion style.css
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 981162f

Please sign in to comment.