update
This commit is contained in:
parent
291d55642d
commit
bdb302d05b
0
content/blog/first-post.md
Normal file
0
content/blog/first-post.md
Normal file
5
content/index.md
Normal file
5
content/index.md
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
title: Michael Thomson
|
||||||
|
---
|
||||||
|
|
||||||
|
|
@ -1,20 +0,0 @@
|
|||||||
---
|
|
||||||
title: Hello, World!
|
|
||||||
author: Michael
|
|
||||||
date: 2024-09-13
|
|
||||||
abstract: This is my first post
|
|
||||||
---
|
|
||||||
|
|
||||||
this is a test
|
|
||||||
- oh yeah
|
|
||||||
|
|
||||||
this is a quote:
|
|
||||||
|
|
||||||
> sdfdsfsdfdsfdsfdsfds
|
|
||||||
> sfdsfdsfsfdsfds
|
|
||||||
```c
|
|
||||||
int main()
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
```
|
|
5
gen.sh
Normal file
5
gen.sh
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
cd content
|
||||||
|
find . -type d -exec mkdir -p ../public/{} \;
|
||||||
|
find ./ -iname "*.md" -type f -exec sh -c 'pandoc "${0}" -f markdown -t html5 --template ../templates/page.html --css index.css -o "../public/$(basename ${0%.md}.html)"' {} \;
|
||||||
|
pandoc content/index.md -f markdown -t html5 --template templates/page.html --css index.css -o public/blog/index.html
|
@ -1,10 +1,34 @@
|
|||||||
|
:root {
|
||||||
|
--bg: #0d1017;
|
||||||
|
--fg: #ffffff;
|
||||||
|
--link: #ff8f40;
|
||||||
|
}
|
||||||
html {
|
html {
|
||||||
background: #0D1017;
|
background: var(--bg);
|
||||||
color: #BFBDB6;
|
color: var(--fg);
|
||||||
font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica, "Helvetica Neue", sans-serif;
|
font-family: -apple-system, BlinkMacSystemFont, "Avenir Next", Avenir, "Nimbus Sans L", Roboto, Noto, "Segoe UI", Arial, Helvetica, "Helvetica Neue", sans-serif;
|
||||||
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
max-width: 760px;
|
max-width: 760px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
|
text-decoration: none;
|
||||||
|
color: var(--link);
|
||||||
|
}
|
||||||
|
|
||||||
|
a:hover {
|
||||||
|
text-decoration: underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
border-bottom: 1px dotted var(--link);
|
||||||
|
padding: 1rem 0 1rem 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
margin-right: 0.25rem;
|
||||||
|
}
|
||||||
|
@ -1,15 +1,30 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/hybrid.min.css">
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
||||||
|
|
||||||
|
<script>hljs.highlightAll();</script>
|
||||||
<title>Michael Thomson</title>
|
<title>Michael Thomson</title>
|
||||||
<meta charset="UTF-8">
|
<link rel="stylesheet" href="index.css" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
||||||
<link rel="stylesheet" href="index.css">
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>Michael Thomson</h1>
|
<nav>
|
||||||
|
<a href="/">Home</a>
|
||||||
|
<a href="/about">About</a>
|
||||||
|
<a href="/blog">Blog</a>
|
||||||
|
<a href="/contact">Contact</a>
|
||||||
|
</nav>
|
||||||
|
<h1 class="title">Michael Thomson</h1>
|
||||||
|
<p>this is a test</p>
|
||||||
|
<ul>
|
||||||
|
<li>oh yeah</li>
|
||||||
|
</ul>
|
||||||
|
<p>this is a quote:</p>
|
||||||
|
<div class="sourceCode" id="cb1"><pre
|
||||||
|
class="sourceCode c"><code class="sourceCode c"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a><span class="dt">int</span> main<span class="op">()</span></span>
|
||||||
|
<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a><span class="op">{</span></span>
|
||||||
|
<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="cf">return</span> <span class="dv">0</span><span class="op">;</span></span>
|
||||||
|
<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a><span class="op">}</span></span></code></pre></div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
@ -7,16 +7,15 @@
|
|||||||
<link rel="stylesheet" href="index.css" />
|
<link rel="stylesheet" href="index.css" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1>Michael Thomson</h1>
|
|
||||||
<nav>
|
<nav>
|
||||||
<a href="blog">Blog</a>
|
<a href="/">Home</a>
|
||||||
<a href="about">About</a>
|
<a href="/about">About</a>
|
||||||
<a href="contact">Contact</a>
|
<a href="/blog">Blog</a>
|
||||||
|
<a href="/contact">Contact</a>
|
||||||
</nav>
|
</nav>
|
||||||
<h1 class="title">Hello, World!</h1>
|
<h1 class="title">Hello, World!</h1>
|
||||||
<p class="author">Michael</p>
|
<p class="author">Michael</p>
|
||||||
<p class="date">2024-09-13</p>
|
<p class="date">2024-09-13</p>
|
||||||
</header>
|
|
||||||
<p>this is a test - oh yeah</p>
|
<p>this is a test - oh yeah</p>
|
||||||
<p>this is a quote:</p>
|
<p>this is a quote:</p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
|
@ -1,6 +1,10 @@
|
|||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/hybrid.min.css">
|
||||||
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/highlight.min.js"></script>
|
||||||
|
|
||||||
|
<script>hljs.highlightAll();</script>
|
||||||
$for(author-meta)$
|
$for(author-meta)$
|
||||||
<meta name="author" content="$author-meta$" />
|
<meta name="author" content="$author-meta$" />
|
||||||
$endfor$
|
$endfor$
|
||||||
@ -13,14 +17,12 @@ $for(css)$
|
|||||||
$endfor$
|
$endfor$
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<header>
|
|
||||||
<h1>Michael Thomson</h1>
|
|
||||||
<nav>
|
<nav>
|
||||||
<a href="blog">Blog</a>
|
<a href="/">Home</a>
|
||||||
<a href="about">About</a>
|
<a href="/about">About</a>
|
||||||
<a href="contact">Contact</a>
|
<a href="/blog">Blog</a>
|
||||||
|
<a href="/contact">Contact</a>
|
||||||
</nav>
|
</nav>
|
||||||
</header>
|
|
||||||
$if(title)$
|
$if(title)$
|
||||||
<h1 class="title">$title$</h1>
|
<h1 class="title">$title$</h1>
|
||||||
$endif$
|
$endif$
|
Loading…
x
Reference in New Issue
Block a user