Skip to content

Commit

Permalink
👌 IMPROVE: Updated various template classes
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdevore committed Jan 7, 2025
1 parent 6524ce0 commit 80e90e9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
<a href="#footer" class="skip-link">Skip to footer</a>

<header class="bg-background shadow" id="navigation">
<div class="container max-w-screen-xl m-auto py-6 px-4 flex justify-between">
<div class="container max-w-screen-xl m-auto py-6 px-4 flex justify-between items-center">
<!-- Home link using relative_path -->
<h2 class="text-3xl font-bold quicksand-700"><a href="{{ relative_path }}index.html" class="text-links">Stattic</a></h2>
<nav>
Expand Down
5 changes: 2 additions & 3 deletions templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@
<ul class="space-y-6">
{% for post in posts %}
<li>
<h2 class="text-4xl font-bold quicksand-700">
<!-- Updated href to point to index.html within the post directory -->
<h2 class="text-4xl mb-2 font-bold quicksand-700">
<a href="{{ relative_path }}{{ post.permalink }}index.html" class="text-links hover:underline">{{ post.title }}</a>
</h2>
<div class="dark:text-gray-400">{{ post.excerpt | safe }}</div>
<div class="dark:text-gray-400 mb-2">{{ post.excerpt | safe }}</div>
</li>
{% endfor %}
</ul>
Expand Down

0 comments on commit 80e90e9

Please sign in to comment.