mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 22:37:49 +00:00
Highlight latest post when link is clicked
This commit is contained in:
@@ -4,7 +4,9 @@ title: Home
|
||||
---
|
||||
<div class="newest-post">
|
||||
<emph>Latest Post</emph>: {% for post in site.categories.rust-os limit:1 %}
|
||||
<strong><a href="#{{ post.id }}">{{post.title}}</a></strong>
|
||||
<strong><a href="#{{ post.id }}" onclick="
|
||||
document.getElementById('{{ post.id }}').className += ' updated';
|
||||
">{{post.title}}</a></strong>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user