mirror of
http://101.35.51.105:3000/congyu/Hakysidian.git
synced 2026-04-28 05:50:49 +08:00
Add notes list and integrate into templates
New partial templates/notes-list.html to render the notes list. Add .notes-list CSS for styling and ensure contents areas use it. Refactor site.hs: add loadNoteLinks and provide a "notes" listField used by index and note pages.
This commit is contained in:
@@ -264,6 +264,20 @@ ul {
|
||||
list-style-type: square;
|
||||
padding-left: 2em;
|
||||
}
|
||||
.notes-list {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
.notes-list li {
|
||||
position: relative;
|
||||
padding-left: 1em;
|
||||
}
|
||||
.notes-list li::before {
|
||||
content: "-";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
li {
|
||||
margin-bottom: 0.15em;
|
||||
}
|
||||
@@ -404,6 +418,12 @@ code {
|
||||
margin-left: 0
|
||||
}
|
||||
|
||||
div#contents ul.notes-list,
|
||||
div#contents-big ul.notes-list {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
div#contents-big ul ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user