Add button to go back from the archive
All checks were successful
Build / build (push) Successful in 2m15s
All checks were successful
Build / build (push) Successful in 2m15s
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
+++
|
||||
title = "Archive"
|
||||
template = "index.html"
|
||||
page_template = "song.html"
|
||||
sort_by = "title"
|
||||
|
@@ -95,11 +95,12 @@ main.songs {
|
||||
|
||||
&.selected {
|
||||
color: #fff;
|
||||
|
||||
&[data-category="mixtape"] { background-color: #bf616a }
|
||||
&[data-category="classic"] { background-color: #5e81ac }
|
||||
}
|
||||
|
||||
&.wide { grid-column: 1 / 3 }
|
||||
|
||||
& svg {
|
||||
height: 1.2em;
|
||||
}
|
||||
|
@@ -11,8 +11,13 @@
|
||||
<body>
|
||||
{% block content %}
|
||||
<main class="songs">
|
||||
{% if section.title and section.extra.archive %}
|
||||
<h1>{{ section.title }}</h1>
|
||||
{% if section.extra.archive %}
|
||||
<section class="nav">
|
||||
<a href="{{ get_url(path="@/_index.md") }}" class="button wide">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path d="M22.0003 12.9999L22.0004 11L8.41421 11V5.58582L2 12L8.41421 18.4142L8.41421 13L22.0003 12.9999Z"></path></svg>
|
||||
Back From Archive
|
||||
</a>
|
||||
</section>
|
||||
{% else %}
|
||||
<section class="nav">
|
||||
<a href="{{ get_url(path="@/archive/_index.md") }}" class="button">
|
||||
|
Reference in New Issue
Block a user