single variable name change for clarity
This commit is contained in:
parent
ebc7b9d417
commit
6028e07bde
|
@ -14,7 +14,7 @@ pub fn build_template(
|
||||||
let theme = theme::get_theme();
|
let theme = theme::get_theme();
|
||||||
|
|
||||||
// conditionally render the hermies icon and theme-switcher icon with correct link
|
// conditionally render the hermies icon and theme-switcher icon with correct link
|
||||||
let (hermies, switcher) = match theme.as_str() {
|
let (hermies, theme_switcher) = match theme.as_str() {
|
||||||
// if we're using the dark theme, render light icons and "light" query param
|
// if we're using the dark theme, render light icons and "light" query param
|
||||||
"dark" => (
|
"dark" => (
|
||||||
"/icons/hermies_hex_light.svg",
|
"/icons/hermies_hex_light.svg",
|
||||||
|
@ -56,8 +56,7 @@ pub fn build_template(
|
||||||
a class="nav-item" href="/" {
|
a class="nav-item" href="/" {
|
||||||
img class="icon nav-icon-left" src="/icons/peach-icon.png" alt="PeachCloud" title="Home";
|
img class="icon nav-icon-left" src="/icons/peach-icon.png" alt="PeachCloud" title="Home";
|
||||||
}
|
}
|
||||||
// render the pre-defined theme-switcher icon
|
(theme_switcher)
|
||||||
(switcher)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue