Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 5 additions & 6 deletions partials/featured.hbs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{#get "posts" filter="featured:true" include="tags,excerpt" limit="all" as |featured|}}
{{#if featured}}
<section class="featured-wrapper container pt-24">

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not remove the container class, this part is the section that gives the section its neecessary padding

With
Image

Without

Image

<div class="featured-feed glide">
<section class="featured-wrapper w-full px-4 pt-24">
<div class="featured-feed glide w-full">
<h2 class="featured-title" style="font-size:3rem;">Highlights</h2>
<div data-glide-el="controls" style="position: absolute; top: -10px; right: 0px">
<button data-glide-dir="<" type="button" role="presentation" class="border border-gray-300 py-2 px-2 rounded" >
Expand All @@ -15,15 +15,14 @@
</svg>
</button>
</div>
<div class="glide__track featured-track rounded-lg ring-gray-900/5 shadow-featured-article m-auto w-full max-w-2xl md:max-w-full lg:h-full hover:shadow-md hover:border-opacity-0 transform hover:-translate-y-1 transition-all duration-200" data-glide-el="track">
<div class="glide__track featured-track rounded-lg ring-gray-900/5 shadow-featured-article w-full hover:shadow-md hover:border-opacity-0 transform hover:-translate-y-1 transition-all duration-200" data-glide-el="track">
<div class="glide__slides">
{{#foreach featured}}
<article class="{{post_class}} relative glide__slide">
<div class="slide-content flex flex-col h-full rounded-xl md:flex-row">
<div class="slide-content flex flex-col h-full rounded-xl md:flex-row w-full">
{{#if feature_image}}
<div class="slide-image u-placeholder horizontal">
<img class="lazyload u-object-fit" data-srcset="{{> srcset}}" data-sizes="auto" src="{{img_url feature_image size="
m"}}" srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="{{title}}">
<img class="lazyload u-object-fit" data-srcset="{{> srcset}}" data-sizes="auto" src="{{img_url feature_image size="m"}}" srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" alt="{{title}}">
</div>
{{/if}}
<div class="slide-details p-6 md:p-4 lg:p-6">
Expand Down
Loading