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
|
template := $(abspath ./pandoc/template.html)
|
||||||
style := ./pandoc/style.css
|
style := $(abspath ./pandoc/style.css)
|
||||||
|
|
||||||
article_list := ./articles.json
|
article_list := $(abspath ./articles.json)
|
||||||
list_template := ./pandoc/meta-json-template.txt
|
list_template := $(abspath ./pandoc/meta-json-template.txt)
|
||||||
|
|
||||||
articles := $(patsubst %.md,%.html,$(wildcard articles/*.md))
|
articles := $(patsubst %.md,%.html,$(wildcard articles/*.md))
|
||||||
|
|
||||||
|
|
@ -10,12 +10,11 @@ all: index.html about.html
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
echo '{"articles": []}' > $(article_list); \
|
echo '{"articles": []}' > $(article_list); \
|
||||||
rm $(notdir $(articles)); \
|
rm $(articles); \
|
||||||
rm index.html about.html;
|
rm index.html about.html;
|
||||||
|
|
||||||
|
|
||||||
$(articles): %.html: %.md
|
$(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;
|
jq '.articles += [$(shell pandoc $< --template $(list_template))]' $(article_list) > articles.json.tmp;
|
||||||
cat ./articles.json.tmp > articles.json;
|
cat ./articles.json.tmp > articles.json;
|
||||||
rm ./articles.json.tmp;
|
rm ./articles.json.tmp;
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
}
|
}
|
||||||
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
|
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
|
||||||
</style>
|
</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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header id="page-header">
|
<header id="page-header">
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,5 @@
|
||||||
{
|
{
|
||||||
"articles": [
|
"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",
|
"author": "Never Gude",
|
||||||
"date": "10.12.2025",
|
"date": "10.12.2025",
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
}
|
}
|
||||||
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
|
.display.math{display: block; text-align: center; margin: 0.5rem auto;}
|
||||||
</style>
|
</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>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header id="page-header">
|
<header id="page-header">
|
||||||
|
|
@ -51,14 +51,6 @@
|
||||||
<h2>Articles</h2>
|
<h2>Articles</h2>
|
||||||
<ul>
|
<ul>
|
||||||
<li>
|
<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">
|
<div class="articles-header">
|
||||||
<h3 class="articles-title">Article 1</h3>
|
<h3 class="articles-title">Article 1</h3>
|
||||||
<p class="articles-author"><em>Never Gude</em></p>
|
<p class="articles-author"><em>Never Gude</em></p>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,8 @@
|
||||||
:root {
|
:root {
|
||||||
--foreground: #1a1a1a;
|
--foreground: #1a1a1a;
|
||||||
--background: #fdfdfd;
|
--background: #fdfdfd;
|
||||||
|
--border: #c9c9c9;
|
||||||
|
--background-html: #e3e3e3;
|
||||||
--blockquote-text: #606060;
|
--blockquote-text: #606060;
|
||||||
--blockquote-border: #e6e6e6;
|
--blockquote-border: #e6e6e6;
|
||||||
}
|
}
|
||||||
|
|
@ -8,17 +10,21 @@
|
||||||
:root:has(#dark-mode-toggle:checked) {
|
:root:has(#dark-mode-toggle:checked) {
|
||||||
--foreground: #fdfdfd;
|
--foreground: #fdfdfd;
|
||||||
--background: #1a1a1a;
|
--background: #1a1a1a;
|
||||||
|
--border: #4c4c4c;
|
||||||
|
--background-html: #333333;
|
||||||
--blockquote-text: #e6e6e6;
|
--blockquote-text: #e6e6e6;
|
||||||
--blockquote-border: #606060;
|
--blockquote-border: #606060;
|
||||||
}
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
color: var(--foreground);
|
color: var(--foreground);
|
||||||
background-color: var(--background);
|
background-color: var(--background-html);
|
||||||
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
|
font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
|
background-color: var(--background);
|
||||||
|
border: solid 1px var(--border);
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
max-width: 36em;
|
max-width: 36em;
|
||||||
padding-left: 50pt;
|
padding-left: 50pt;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue