stuff
This commit is contained in:
parent
bed0f202bb
commit
db47b232bd
7 changed files with 15 additions and 25 deletions
|
|
@ -1,8 +1,8 @@
|
|||
template := ./pandoc/template.html
|
||||
style := ./pandoc/style.css
|
||||
template := $(abspath ./pandoc/template.html)
|
||||
style := $(abspath ./pandoc/style.css)
|
||||
|
||||
article_list := ./articles.json
|
||||
list_template := ./pandoc/meta-json-template.txt
|
||||
article_list := $(abspath ./articles.json)
|
||||
list_template := $(abspath ./pandoc/meta-json-template.txt)
|
||||
|
||||
articles := $(patsubst %.md,%.html,$(wildcard articles/*.md))
|
||||
|
||||
|
|
@ -10,12 +10,11 @@ all: index.html about.html
|
|||
|
||||
clean:
|
||||
echo '{"articles": []}' > $(article_list); \
|
||||
rm $(notdir $(articles)); \
|
||||
rm $(articles); \
|
||||
rm index.html about.html;
|
||||
|
||||
|
||||
$(articles): %.html: %.md
|
||||
pandoc $< --template $(abspath $(template)) --css $(abspath $(style)) --highlight-style zenburn --mathml --toc --output $(notdir $@); \
|
||||
pandoc $< --template $(template) --css $(style) --highlight-style zenburn --mathml --toc --output $@; \
|
||||
jq '.articles += [$(shell pandoc $< --template $(list_template))]' $(article_list) > articles.json.tmp;
|
||||
cat ./articles.json.tmp > articles.json;
|
||||
rm ./articles.json.tmp;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
}
|
||||
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
|
||||
</style>
|
||||
<link rel="stylesheet" href="./pandoc/style.css" />
|
||||
<link rel="stylesheet" href="/home/never/Documents/nevereverever.de/public_html/eh/eh/eh/eh-eh/pandoc/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
|
|
|
|||
|
|
@ -1,12 +1,5 @@
|
|||
{
|
||||
"articles": [
|
||||
{
|
||||
"author": "Never Gude",
|
||||
"date": "25.7.2025",
|
||||
"subtitle": "Neat things I picked up along the way",
|
||||
"summary": "Testing dsa dsa dsa dsa DDDDDDDDDDDa",
|
||||
"title": "Random linux utilities"
|
||||
},
|
||||
{
|
||||
"author": "Never Gude",
|
||||
"date": "10.12.2025",
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@
|
|||
}
|
||||
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
|
||||
</style>
|
||||
<link rel="stylesheet" href="./pandoc/style.css" />
|
||||
<link rel="stylesheet" href="/home/never/Documents/nevereverever.de/public_html/eh/eh/eh/eh-eh/pandoc/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header id="page-header">
|
||||
|
|
@ -51,14 +51,6 @@
|
|||
<h2>Articles</h2>
|
||||
<ul>
|
||||
<li>
|
||||
<div class="articles-header">
|
||||
<h3 class="articles-title">Random linux utilities</h3>
|
||||
<p class="articles-author"><em>Never Gude</em></p>
|
||||
</div>
|
||||
<p class="articles-summary">Testing dsa dsa dsa dsa DDDDDDDDDDDa</p>
|
||||
<p class="articles-date">25.7.2025</p>
|
||||
</li>
|
||||
<li>
|
||||
<div class="articles-header">
|
||||
<h3 class="articles-title">Article 1</h3>
|
||||
<p class="articles-author"><em>Never Gude</em></p>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
:root {
|
||||
--foreground: #1a1a1a;
|
||||
--background: #fdfdfd;
|
||||
--border: #c9c9c9;
|
||||
--background-html: #e3e3e3;
|
||||
--blockquote-text: #606060;
|
||||
--blockquote-border: #e6e6e6;
|
||||
}
|
||||
|
|
@ -8,17 +10,21 @@
|
|||
:root:has(#dark-mode-toggle:checked) {
|
||||
--foreground: #fdfdfd;
|
||||
--background: #1a1a1a;
|
||||
--border: #4c4c4c;
|
||||
--background-html: #333333;
|
||||
--blockquote-text: #e6e6e6;
|
||||
--blockquote-border: #606060;
|
||||
}
|
||||
|
||||
html {
|
||||
color: var(--foreground);
|
||||
background-color: var(--background);
|
||||
background-color: var(--background-html);
|
||||
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: var(--background);
|
||||
border: solid 1px var(--border);
|
||||
margin: 0 auto;
|
||||
max-width: 36em;
|
||||
padding-left: 50pt;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue