Skip to content

Commit

Permalink
Merge pull request #693 from adabay/source
Browse files Browse the repository at this point in the history
add event metadata to event post layout
  • Loading branch information
pancetta authored Oct 29, 2024
2 parents 587f700 + d2fd17f commit 731cc54
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
15 changes: 14 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,20 @@ <h1>{{ page.title }}</h1>
</div>
{% endif %}

<ul class="event-meta mb-2">
{% if page.event_url | size > 0 %}
<li><a href="{{ page.event_url }}" target="_blank">Homepage</a></li>
{% endif %}
{% if page.event_location | size > 0 %}
<li>Location: {{ page.event_location }}</li>
{% endif %}
{% if page.event_start | size > 0 %}
<li>Start: {{ page.event_start | date_to_string }}</li>
{% endif %}
{% if page.event_end | size > 0 %}
<li>End: {{ page.event_end | date_to_string }}</li>
{% endif %}
</ul>
</div>
</div>

Expand All @@ -60,7 +74,6 @@ <h1>{{ page.title }}</h1>
<div class="section pt-0">
<div class="container">
<div class="row justify-content-center">

<div class="col-12 col-lg-8">
<div class="content">{{ content }}</div>
{% if site.disqus.shortname %}
Expand Down
5 changes: 5 additions & 0 deletions _sass/theme/_page-post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -103,3 +103,8 @@
}
}
}
.event-meta {
font-size: 16px;
font-weight: 400;
color: var(--color-base-text-2);
}

0 comments on commit 731cc54

Please sign in to comment.