Skip to content

Commit

Permalink
Adjust time to read position
Browse files Browse the repository at this point in the history
  • Loading branch information
mikroskeem committed Jan 8, 2025
1 parent 0991c66 commit 83eaea4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions assets/scss/tale/_post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,7 @@
margin: 0;
}
}

.post-read-time {
text-align: center;
}
2 changes: 0 additions & 2 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

{{ partial "single/header.html" . }}

🕒 {{ math.Round (div (countwords .Content) 220.0) }} {{ i18n "minutes" }}

{{ .Content }}

{{ partial "single/footer.html" . }}
Expand Down
4 changes: 3 additions & 1 deletion layouts/partials/single/title.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
<h1 class="post-title">{{ .Title }}</h1>
<div class="post-line"></div>
<div class="post-read-time">🕒 {{ math.Round (div (countwords .Content) 220.0) }} {{ i18n "minutes" }}</div>
<br>
<div class="post-line"></div>

0 comments on commit 83eaea4

Please sign in to comment.