Add submissions copyright footer

rust
Elnu 1 year ago
parent a3f85e4cba
commit 8b7f5b39b8

@ -1,3 +1,4 @@
copyright_start: 2021
guilds: guilds:
# Tegaki Tuesday # Tegaki Tuesday
- id: 814700630958276649 - id: 814700630958276649

@ -6,6 +6,7 @@ use std::fs;
#[derive(Serialize, Deserialize)] #[derive(Serialize, Deserialize)]
pub struct Settings { pub struct Settings {
pub guilds: Vec<Guild>, pub guilds: Vec<Guild>,
pub copyright_start: u32,
} }
impl Settings { impl Settings {

@ -125,6 +125,11 @@ input[type=number] {
background: rgba(0, 0, 0, 0.125); background: rgba(0, 0, 0, 0.125);
$gap: 0.5em; $gap: 0.5em;
padding: $gap; padding: $gap;
footer {
margin-top: 1em;
}
& > div { & > div {
width: 100%; width: 100%;
column-count: 3; column-count: 3;

@ -145,9 +145,9 @@
</figure> </figure>
{% endfor %} {% endfor %}
</div> </div>
<div> <footer>
some random shit goes here Submissions are copyright © {% set year = now() | date(format="%Y") | int %}{{ settings.copyright_start }}{% if year != settings.copyright_start %}{{ year }}{% endif %} their respective submitters, and are licensed under the <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)</a> license.
</div> </footer>
</div> </div>
</div> </div>
</body> </body>

Loading…
Cancel
Save