feat: add attribution page
This commit is contained in:
parent
2108eff86a
commit
d31b7c0304
|
@ -17,7 +17,7 @@ use tower_http::trace::TraceLayer;
|
|||
use crate::{
|
||||
apis::{CachingFetcher, NowPlayingInfo, PronounsPageProfile},
|
||||
templates::{
|
||||
AboutTemplate, ErrorTemplate, HtmlTemplate, LinksTemplate, MusicTemplate, WordsTemplate,
|
||||
AboutTemplate, AttributionTemplate, ErrorTemplate, HtmlTemplate, LinksTemplate, MusicTemplate, WordsTemplate,
|
||||
},
|
||||
};
|
||||
|
||||
|
@ -33,6 +33,7 @@ macro_rules! simple_template {
|
|||
|
||||
simple_template!(index, "/", AboutTemplate);
|
||||
simple_template!(links, "/me", LinksTemplate);
|
||||
simple_template!(attribution, "/attribution", AttributionTemplate);
|
||||
|
||||
async fn about() -> Redirect {
|
||||
Redirect::permanent(Uri::from_static("/"))
|
||||
|
@ -83,6 +84,7 @@ pub fn build_router() -> Router {
|
|||
.route("/about", get(about))
|
||||
.route("/about/words", get(words))
|
||||
.route("/about/music", get(music))
|
||||
.route("/attribution", get(attribution))
|
||||
.route("/blog/", get(blog::index))
|
||||
.route("/blog/:post", get(blog::post))
|
||||
.route("/projects/", get(projects::index))
|
||||
|
|
|
@ -28,6 +28,7 @@ macro_rules! simple_template {
|
|||
simple_template!("index.html", IndexTemplate);
|
||||
simple_template!("about.html", AboutTemplate);
|
||||
simple_template!("links.html", LinksTemplate);
|
||||
simple_template!("attribution.html", AttributionTemplate);
|
||||
|
||||
#[derive(Template)]
|
||||
#[template(path = "words.html")]
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
{% extends "base.html" %}
|
||||
|
||||
{% block title %}Attribution{% endblock %}
|
||||
{% block description %}Things that make this website work{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<main class="content">
|
||||
<h1>Attribution</h1>
|
||||
|
||||
<p>
|
||||
Powered by <a href="https://rust-lang.org">Rust</a>, running on a Raspberry Pi 4.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<h2>Characters</h2>
|
||||
<ul>
|
||||
<li>My profile picture is from <a href="https://picrew.me/en/image_maker/1904634/">this picrew</a>.</li>
|
||||
<li>Leah's profile picture is also from <a href="https://picrew.me/en/image_maker/1904634/">the same picrew</a>.</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The code for this website is <a href="https://github.com/ashhhleyyy/website">on GitHub</a>
|
||||
</p>
|
||||
</main>
|
||||
{% endblock %}
|
|
@ -89,7 +89,7 @@
|
|||
</div>
|
||||
|
||||
<p>
|
||||
Copyright (c) 2022-<copyright-year></copyright-year> Ashhhleyyy. All rights reserved.
|
||||
Copyright (c) 2022-<copyright-year></copyright-year> Ashhhleyyy. All rights reserved. <a href="/attribution">Powered by these things!</a>
|
||||
</p>
|
||||
<p class="generated">
|
||||
Page generated at <page-generated></page-generated>
|
||||
|
|
Loading…
Reference in New Issue