Skip to content

Commit

Permalink
Move banner image above the title (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmichaeljames authored Dec 9, 2024
1 parent 6b062d9 commit b21b31d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
<div class="col-lg-10 mx-auto">
<article class="blog-post" itemscope itemtype="http://schema.org/BlogPosting">
<header>
{%- if page.image -%}
<img src="{{ page.image }}" class="img-fluid rounded blog-post-banner-img">
{%- endif -%}
<h1 class="blog-post-title">{{ page.title | escape }}</h1>
<p class="blog-post-meta">
<time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished">
Expand All @@ -22,9 +25,6 @@ <h1 class="blog-post-title">{{ page.title | escape }}</h1>
</header>

<div class="blog-post-content" itemprop="articleBody">
{%- if page.image -%}
<img src="{{ page.image }}" class="img-fluid rounded blog-post-banner-img">
{%- endif -%}

{{ content }}

Expand Down

0 comments on commit b21b31d

Please sign in to comment.