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();
|
||||
|
||||
// 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
|
||||
"dark" => (
|
||||
"/icons/hermies_hex_light.svg",
|
||||
|
@ -56,8 +56,7 @@ pub fn build_template(
|
|||
a class="nav-item" href="/" {
|
||||
img class="icon nav-icon-left" src="/icons/peach-icon.png" alt="PeachCloud" title="Home";
|
||||
}
|
||||
// render the pre-defined theme-switcher icon
|
||||
(switcher)
|
||||
(theme_switcher)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue