Skip to content

Commit

Permalink
ephes/python-podcast#24 make title link to post and avoid whitespace …
Browse files Browse the repository at this point in the history
…being part of the date permalink after the comma
  • Loading branch information
ephes committed Nov 1, 2023
1 parent 1d2bd37 commit 8c2852b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cast/templates/cast/bootstrap4/post_body.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@

<article>
<header>
<h2>{{ page.title }}</h2>
<a href="{% pageurl page %}">
<time date-time="{{ page.visible_date|date:"c" }}">{{ page.visible_date|date}}</time>,
</a>
<h2><a class="text-dark text-decoration-none" href="{% pageurl page %}">{{ page.title }}</a></h2>
<!-- link is on one line to avoid underlined whitespace -->
<a href="{% pageurl page %}"><time date-time='{{ page.visible_date|date:"c" }}'>{{ page.visible_date|date }}</time>,</a>
<span class="author">{{ page.owner.username | title}}</span>
</header>
{% for block in page.body %}
Expand Down

0 comments on commit 8c2852b

Please sign in to comment.