styles for sidebar
This commit is contained in:
parent
516947a247
commit
b888d27057
@ -88,7 +88,7 @@ pub fn generate_pages_html(file_tree: &Node, current_path: &Path, config: &Confi
|
||||
if file.path == "index" {
|
||||
format!(
|
||||
"<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>",
|
||||
current_path.to_str().unwrap()
|
||||
)
|
||||
@ -97,7 +97,7 @@ pub fn generate_pages_html(file_tree: &Node, current_path: &Path, config: &Confi
|
||||
} else {
|
||||
format!(
|
||||
"<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>",
|
||||
current_path.to_str().unwrap(),
|
||||
file.path,
|
||||
|
Loading…
Reference in New Issue
Block a user