Skip to content

Commit

Permalink
#8 Add title to post.html layout and update home page layout to inclu…
Browse files Browse the repository at this point in the history
…de post list
  • Loading branch information
LeNPaul committed May 8, 2021
1 parent 2d85831 commit 81ba89e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
9 changes: 9 additions & 0 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,12 @@ <h3 class="fw-bold">Research</h3>
</div>

{% include publications.html %}

<div class="row g-5 mb-5">
<div class="col-md-12">
<h3 class="fw-bold border-bottom pb-3 mb-5">Updates</h3>
{% for post in site.posts %}
<p><a href="{{ post.url }}" class="text-dark">{{ post.title }}</a> - {{ post.date | date: "%B %-d, %Y" }}</p>
{% endfor %}
</div>
</div>
7 changes: 6 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
layout: default
---

{{ content }}
<div class="row g-5 mb-5">
<div class="col-md-12">
<h3 class="fw-bold border-bottom pb-3 mb-5">{{ page.title }}</h3>
{{ content }}
</div>
</div>
5 changes: 5 additions & 0 deletions _posts/2020-01-01-sample-post.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
layout: post
---

This is a sample post.

0 comments on commit 81ba89e

Please sign in to comment.