Skip to content

Commit

Permalink
Moved page contactus to just be contact. Nav looks cleaner
Browse files Browse the repository at this point in the history
  • Loading branch information
craigmayhew committed Feb 21, 2024
1 parent e1d0cc6 commit b7b08d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<br /><br />
<div>
<a href="/">Home</a>
<a href="/contactus/">Contact Us</a>
<a href="/contact/">Contact</a>
<a href="/faq/">FAQ</a>
</div>
<div>
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ pub mod utils;
#[derive(Copy, Clone)]
pub enum Page {
Archive,
ContactUs,
Contact,
Error,
Faq,
Home,
Expand Down Expand Up @@ -113,7 +113,7 @@ fn update(msg: Msg, model: &mut Model, _orders: &mut impl Orders<Msg>) {
fn view(model: &Model) -> Node<Msg> {
match model.page {
Page::Archive => pages::archive::index::render(),
Page::ContactUs => pages::contact::render(),
Page::Contact => pages::contact::render(),
Page::Error => pages::error::render(),
Page::Faq => pages::faq::render(),
Page::FermatArchive => pages::archive::fermat::render(),
Expand Down Expand Up @@ -155,7 +155,7 @@ fn routes(url: seed::Url) -> (Page, std::string::String) {
},
}
}
"contactus" => (Page::ContactUs, empty_string),
"contact" => (Page::Contact, empty_string),
"cruncher" => match url.path().get(1).as_ref() {
Some(_slug) => (Page::NumberCruncher, url.path()[1].to_owned()),
None => (Page::NumberCruncher, empty_string),
Expand Down

0 comments on commit b7b08d2

Please sign in to comment.