Skip to content

Commit

Permalink
Added author name display to blog (#614)
Browse files Browse the repository at this point in the history
Fixes #571
  • Loading branch information
vidipsingh authored Dec 29, 2024
1 parent 3515230 commit 057e64b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
9 changes: 6 additions & 3 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,24 +6,27 @@
<div class="container text-center">
<h1 class="display-4 mb-0">{{ page.title }}</h1>
<p class="lead">{{ page.date | date: "%b %-d %Y" }}</p>

<!-- Author Display -->
<p class="lead">by <span class="fw-bold">{{ page.author }}</span></p>
</div>
</div>

<!-- Content Section -->
<!-- Content Section -->
<div class="container my-5">
<div class="bg-white p-4 rounded shadow-sm">
{{ content }}
</div>
</div>

<!-- Footer Section with Links -->
<div class="bg-light py-4">
<div class="container text-center">
<p class="mb-2">
<a href="/press" class="btn btn-outline-secondary btn-sm text-decoration-none">Return to press information</a>
</p>
</p>
<p>
<a href="/" class="btn btn-outline-secondary btn-sm text-decoration-none">Return to main page</a>
</p>
</div>
</div>

5 changes: 4 additions & 1 deletion community-news.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ <h2 class="text-center">COMMUNITY NEWS</h2>
{% for post in site.categories.community limit:10 %}
<li class="listFont">
<a href="{{ post.url }}">{{ post.title }}</a>
<i style="display: block;">{{ post.date | date: "%b %-d %Y" }}</i>
<div>
<span class="fw-bold me-3" style="font-size: 15px;">{{ post.author }}</span>
<span class="text-muted" style="font-size: 12px;">{{ post.date | date: "%b %-d %Y" }}</span>
</div>
<hr>
</li>
{% endfor %}
Expand Down

0 comments on commit 057e64b

Please sign in to comment.