Refactoring

This commit is contained in:
Artur Gurgul 2025-06-08 21:57:33 +02:00
parent 1e3833f7d0
commit aa563e60ea
37 changed files with 472 additions and 2392 deletions

View file

@ -3,12 +3,12 @@ html(lang="en")
head
meta(charset="utf-8")
meta(name="viewport" content="width=device-width, initial-scale=1")
title Artur Gurgul - #{title}
title Artur Gurgul - #{page.title}
meta(name="author" content="Artur Gurgul")
meta(name="description" content="This is my notepad")
link(rel="shortcut icon" href="/favicon.png")
link(rel="alternate" type="application/atom+xml" title="#{site.data.theme.name}" href="#{site.url}/atom.xml")
link(rel="alternate" type="application/atom+xml" title=page.title href="#{site.url}/atom.xml")
link(rel="stylesheet" href="/static/css/all.css")
link(rel="stylesheet" href="/static/css/hightlight.css")
body
@ -17,7 +17,7 @@ html(lang="en")
include sidebar.pug
.scroll
.content
h1.title= title
#post!= content
h1.title= page.title
#post!= page.file.html
.footer
include footer.pug

View file

@ -4,7 +4,7 @@ nav
h2(style="font-size: 15px; margin-top: -0.5em;") and this is my notepad.
hr.hr-text(data-content="Contents")
ul#blog-posts.posts
each page in pages.filter(it => it.hidden != true && it.title != undefined )
each page in context.pages
li
span »
a(href=page.url, style=(false ? "font-weight: bold;" : ""))= page.title
a(href=page.url, style=(page.isCurrent ? "font-weight: bold;" : ""))= page.title