Skip to content

Commit

Permalink
Update post.html
Browse files Browse the repository at this point in the history
  • Loading branch information
mrinalcs authored Jan 22, 2024
1 parent e070183 commit bb6b2dc
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

<header>
<h1>{{ page.title }}</h1>
<time datetime="{{ page.date | date: "%Y-%m-%d" }}">{{ page.date | date: "%B %-d, %Y" }}</time>
<span id="view"></span>
<time class="sf" datetime="{{ page.date | date: "%Y-%m-%d" }}">{{ page.date | date: "%B %-d, %Y" }}</time>
<span class="sf" id="view"></span>
</header>

<aside>
Expand Down Expand Up @@ -38,4 +38,9 @@ <h1>{{ page.title }}</h1>
document.getElementById('view').textContent = ' views: ' + viewCount;
})
.catch(error => console.error('Error fetching view count:', error));
</script>
</script>
<style>
.sf {
font-size:.9rem;
}
</style>

0 comments on commit bb6b2dc

Please sign in to comment.