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"
|
template = "index.html"
|
||||||
page_template = "song.html"
|
page_template = "song.html"
|
||||||
sort_by = "title"
|
sort_by = "title"
|
||||||
|
@@ -95,11 +95,12 @@ main.songs {
|
|||||||
|
|
||||||
&.selected {
|
&.selected {
|
||||||
color: #fff;
|
color: #fff;
|
||||||
|
|
||||||
&[data-category="mixtape"] { background-color: #bf616a }
|
&[data-category="mixtape"] { background-color: #bf616a }
|
||||||
&[data-category="classic"] { background-color: #5e81ac }
|
&[data-category="classic"] { background-color: #5e81ac }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.wide { grid-column: 1 / 3 }
|
||||||
|
|
||||||
& svg {
|
& svg {
|
||||||
height: 1.2em;
|
height: 1.2em;
|
||||||
}
|
}
|
||||||
|
@@ -11,8 +11,13 @@
|
|||||||
<body>
|
<body>
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<main class="songs">
|
<main class="songs">
|
||||||
{% if section.title and section.extra.archive %}
|
{% if section.extra.archive %}
|
||||||
<h1>{{ section.title }}</h1>
|
<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 %}
|
{% else %}
|
||||||
<section class="nav">
|
<section class="nav">
|
||||||
<a href="{{ get_url(path="@/archive/_index.md") }}" class="button">
|
<a href="{{ get_url(path="@/archive/_index.md") }}" class="button">
|
||||||
|
Reference in New Issue
Block a user