styles for sidebar

master
Araozu 2024-03-28 19:46:51 -05:00
parent 516947a247
commit b888d27057
1 changed files with 2 additions and 2 deletions

View File

@ -88,7 +88,7 @@ pub fn generate_pages_html(file_tree: &Node, current_path: &Path, config: &Confi
if file.path == "index" { if file.path == "index" {
format!( format!(
"<li class=\"\"> "<li class=\"\">
<a class=\"inline-block rounded-2xl w-full hover:bg-neutral-800 transition-colors px-3 py-2\" href=\"/{}\">Index</a> <a class=\"inline-block rounded-2xl w-full hover:bg-neutral-200 dark:hover:bg-neutral-800 transition-colors px-3 py-2\" href=\"/{}\">Index</a>
</li>", </li>",
current_path.to_str().unwrap() current_path.to_str().unwrap()
) )
@ -97,7 +97,7 @@ pub fn generate_pages_html(file_tree: &Node, current_path: &Path, config: &Confi
} else { } else {
format!( format!(
"<li class=\"\"> "<li class=\"\">
<a class=\"inline-block rounded-2xl w-full hover:bg-neutral-800 transition-colors px-3 py-2\" href=\"/{}/{}.{}\">{}</a> <a class=\"inline-block rounded-2xl w-full hover:bg-neutral-200 dark:hover:bg-neutral-800 transition-colors px-3 py-2\" href=\"/{}/{}.{}\">{}</a>
</li>", </li>",
current_path.to_str().unwrap(), current_path.to_str().unwrap(),
file.path, file.path,