From 6829f6b271abbf9c00325699e2ead71f954de07f Mon Sep 17 00:00:00 2001 From: Erin Nova Date: Mon, 24 Jan 2022 12:01:36 -0500 Subject: [PATCH] Add link to submission form in footer --- src/main.rs | 1 + src/structures.rs | 1 + submit.html | 3 ++- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 424009c..e77ceed 100644 --- a/src/main.rs +++ b/src/main.rs @@ -21,6 +21,7 @@ fn construct_main_page() { let footer = Container::new(ContainerType::Footer) .with_raw(r#"
"#) // Line seperator .with_link("/", "home") // Link to the root page + .with_link("/submit.html", "submit recipe") // Link to submission form .with_link("/rss.xml", "rss") // Link the the Atom feed // License info .with_paragraph("Software licensed under the CNPLv7+") diff --git a/src/structures.rs b/src/structures.rs index 50715ec..2032469 100644 --- a/src/structures.rs +++ b/src/structures.rs @@ -203,6 +203,7 @@ impl Recipe { let footer = Container::new(ContainerType::Footer) .with_raw(r#"
"#) // Line seperator .with_link("/", "home") // Link to the root page + .with_link("/submit.html", "submit recipe") // Link to submission form .with_link("/rss.xml", "rss") // Link the the Atom feed // License info .with_paragraph("Software licensed under the CNPLv7+") diff --git a/submit.html b/submit.html index 8bfa984..30b66dc 100644 --- a/submit.html +++ b/submit.html @@ -36,7 +36,7 @@
  • - +
  • @@ -56,6 +56,7 @@ Bake in the over for 15 minutes">
  • +