Implement backward navigation for splited files

This commit is contained in:
KnugiHK
2025-02-09 14:47:05 +08:00
parent 0b2dfa9aba
commit dd75ec4b87
4 changed files with 24 additions and 11 deletions

View File

@@ -166,6 +166,13 @@
<!-- <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-[#aebac1]" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 19l-7-7 7-7" />
</svg> -->
{% if previous %}
<a href="./{{ previous }}" target="_self">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-[#aebac1]" fill="none" viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 5l-7 7 7 7" />
</svg>
</a>
{% endif %}
{% if next %}
<a href="./{{ next }}" target="_self">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-[#aebac1]" fill="none" viewBox="0 0 24 24" stroke="currentColor">
@@ -334,9 +341,7 @@
</div>
<footer>
<h2 class="text-center">
{% if next %}
<a href="./{{ next }}" target="_self">Next</a>
{% else %}
{% if not next %}
End of History
{% endif %}
</h2>