Refactoring
This commit is contained in:
parent
1e3833f7d0
commit
aa563e60ea
37 changed files with 472 additions and 2392 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,28 +1,5 @@
|
|||
|
||||
@font-face {
|
||||
font-family: Montserrat;
|
||||
/* declare weights giving two values to specify a range */
|
||||
font-weight: 400 800;
|
||||
src: url(/static/fonts/Montserrat-VariableFont_wght.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Montserrat;
|
||||
/* declare weights giving two values to specify a range */
|
||||
font-weight: 400 800;
|
||||
font-style: italic;
|
||||
src: url(/static/fonts/Montserrat-Italic-VariableFont_wght.ttf);
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: Proto;
|
||||
/* declare weights giving two values to specify a range */
|
||||
font-weight: 400 800;
|
||||
src: url(/static/fonts/0xProto-Regular.ttf);
|
||||
}
|
||||
|
||||
* {
|
||||
font-family: Montserrat, sans-serif;
|
||||
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
|
@ -136,7 +113,7 @@ h4,
|
|||
h5,
|
||||
h6 {
|
||||
color: #181818;
|
||||
font-family: Montserrat, sans-serif;
|
||||
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
|
@ -460,7 +437,7 @@ h4,
|
|||
h5,
|
||||
h6 {
|
||||
color: #181818;
|
||||
font-family: Montserrat, sans-serif;
|
||||
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
|
@ -531,7 +508,7 @@ ul.posts li {
|
|||
}
|
||||
|
||||
ul.posts span {
|
||||
font-family: 'Proto', monospace;
|
||||
font-family: monospace;
|
||||
color: #aaa;
|
||||
padding-right: 5px;
|
||||
font-size: 14px;
|
||||
|
@ -576,7 +553,7 @@ nav h2 {
|
|||
|
||||
.sidebar {
|
||||
padding-top: 25px;
|
||||
font-family: Montserrat, sans-serif;
|
||||
font-family: -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
}
|
||||
|
||||
.sidebar p {
|
||||
|
@ -588,7 +565,7 @@ nav h2 {
|
|||
}
|
||||
|
||||
text {
|
||||
font: 500 12px/22px Montserrat, sans-serif;
|
||||
font: 500 12px/22px -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
}
|
||||
|
||||
/* path, rect {
|
||||
|
@ -596,12 +573,12 @@ text {
|
|||
} */
|
||||
|
||||
g {
|
||||
font: 500 12px/22px Montserrat, sans-serif;
|
||||
font: 500 12px/22px -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
}
|
||||
/* stroke-width="2" */
|
||||
|
||||
.content {
|
||||
font: 400 16px/22px Montserrat, sans-serif;
|
||||
font: 400 16px/22px -apple-system, BlinkMacSystemFont, sans-serif;
|
||||
|
||||
padding-left: 40px;
|
||||
padding-top: 25px;
|
||||
|
@ -678,7 +655,7 @@ pre {
|
|||
|
||||
code,
|
||||
pre {
|
||||
font-family: 'Proto', monospace;
|
||||
font-family: monospace;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1,9 +0,0 @@
|
|||
---
|
||||
layout: default
|
||||
title: Content
|
||||
hidden: true
|
||||
---
|
||||
|
||||
# Content
|
||||
|
||||
there is my awasome content
|
Loading…
Add table
Add a link
Reference in a new issue