gen script
This commit is contained in:
parent
bdb302d05b
commit
a42a63faac
1
gen.sh
Normal file → Executable file
1
gen.sh
Normal file → Executable file
@ -2,4 +2,3 @@
|
||||
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 +0,0 @@
|
||||
Not found
|
20
public/first-post.html
Normal file
20
public/first-post.html
Normal file
@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<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>first-post</title>
|
||||
<link rel="stylesheet" href="index.css" />
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<a href="/">Home</a>
|
||||
<a href="/about">About</a>
|
||||
<a href="/blog">Blog</a>
|
||||
<a href="/contact">Contact</a>
|
||||
</nav>
|
||||
|
||||
</body>
|
||||
</html>
|
@ -16,15 +16,6 @@
|
||||
<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>
|
||||
</html>
|
||||
|
@ -1,30 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta name="author" content="Michael" />
|
||||
<meta name="dcterms.date" content="2024-09-13" />
|
||||
<title>Hello, World!</title>
|
||||
<link rel="stylesheet" href="index.css" />
|
||||
</head>
|
||||
<body>
|
||||
<nav>
|
||||
<a href="/">Home</a>
|
||||
<a href="/about">About</a>
|
||||
<a href="/blog">Blog</a>
|
||||
<a href="/contact">Contact</a>
|
||||
</nav>
|
||||
<h1 class="title">Hello, World!</h1>
|
||||
<p class="author">Michael</p>
|
||||
<p class="date">2024-09-13</p>
|
||||
<p>this is a test - oh yeah</p>
|
||||
<p>this is a quote:</p>
|
||||
<blockquote>
|
||||
<p>sdfdsfsdfdsfdsfdsfds sfdsfdsfsfdsfds</p>
|
||||
</blockquote>
|
||||
<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>
|
||||
</html>
|
Loading…
x
Reference in New Issue
Block a user