Skip to content

Commit

Permalink
Use new order on article overview page
Browse files Browse the repository at this point in the history
  • Loading branch information
rogoit committed May 16, 2024
1 parent 60bc039 commit 394591b
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/build/website/entrypoints.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
"/build/website/app.f7350905.js"
],
"css": [
"/build/website/960.38ee983a.css"
"/build/website/960.023e97f7.css"
]
},
"style": {
"js": [
"/build/website/runtime.d33663a3.js"
],
"css": [
"/build/website/960.38ee983a.css"
"/build/website/960.023e97f7.css"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion public/build/website/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"build/website/app.js": "/build/website/app.f7350905.js",
"build/website/runtime.js": "/build/website/runtime.d33663a3.js",
"build/website/236.31bcff30.js": "/build/website/236.31bcff30.js",
"build/website/960.38ee983a.css": "/build/website/960.38ee983a.css"
"build/website/960.023e97f7.css": "/build/website/960.023e97f7.css"
}
18 changes: 9 additions & 9 deletions templates/includes/tailwind/blocks/subpages-overview.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,6 @@
{% for item in content.items %}
<article class="flex max-w-xl flex-col items-start justify-between">
<div class="group relative">
{% if item.excerptImages[0] is defined and item.excerptImages[0] is not empty %}
{% set source = item.excerptImages[0].formats['tailwind-subpage-overview.webp'] %}
{% set sourceSet = item.excerptImages[0].formats['content-full-half.webp'] %}
<img src="{{ source }}"
srcset="{{ sourceSet }} 1023w"
class="h-auto max-w-full"
alt=""
>
{% endif %}
<h3 class="mt-3 text-lg font-semibold leading-6 text-gray-900 group-hover:text-gray-600">
<a href="{{ sulu_content_path(item.url) }}">
<span class="absolute inset-0"></span>
Expand All @@ -21,6 +12,15 @@
{{ item.seoDescription }}
</p>
</div>
{% if item.excerptImages[0] is defined and item.excerptImages[0] is not empty %}
{% set source = item.excerptImages[0].formats['tailwind-subpage-overview.webp'] %}
{% set sourceSet = item.excerptImages[0].formats['content-full-half.webp'] %}
<img src="{{ source }}"
srcset="{{ sourceSet }} 1023w"
class="order-first h-auto max-w-full"
alt=""
>
{% endif %}
</article>
{% endfor %}
</div>

0 comments on commit 394591b

Please sign in to comment.