Skip to content

Commit

Permalink
Adjusted blog headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mikecole committed Jul 10, 2024
1 parent 683a63c commit 725b9fc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
14 changes: 12 additions & 2 deletions _includes/post_display.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
<article class="blog-post" itemprop="blogPosts" itemscope itemtype="http://schema.org/BlogPosting">
<h2 class="display-5 link-body-emphasis mb-1"><a href="{{ include.url }}">{{ include.title }}</a></h2>
<h2 class="display-5 link-body-emphasis mb-1">
{%- if include.url -%}
<a href="{{ include.url }}" class="title-link">{{ include.title }}</a>
{%- else -%}
{{ include.title }}
{%- endif -%}
</h2>
<p class="blog-post-meta">
<i class="me-3">{{ include.date | date: "%m/%d/%Y" }}</i>
<i class="me-3 bi bi-calendar"> {{ include.date | date: "%m/%d/%Y" }}</i>
{%- if include.url -%}
<i class="me-3 bi bi-chat-right-dots"> <a href="{{ include.url }}">Comment</a></i>
{%- endif -%}

{% for tag in include.tags %}
<a href="/tags/{{ tag }}" class="tag-link">
<span class="badge text-bg-primary">{{ tag }}</span>
Expand Down
3 changes: 2 additions & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
layout: blog
---

{% include post_display.html url=page.url title=page.title date=page.date tags=page.tags content=page.content %}
{% include post_display.html title=page.title date=page.date tags=page.tags content=page.content %}

<div id="disqus_thread"></div>
<script type="text/javascript">
(function() { // DON'T EDIT BELOW THIS LINE
Expand Down
3 changes: 3 additions & 0 deletions assets/css/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ h1, h2, h3, h4, h5, h6 {
.tag-link {
text-decoration: none;
}
.title-link {
text-decoration: none;
}

/*
* Dark mode
Expand Down

0 comments on commit 725b9fc

Please sign in to comment.