/blog index page

master
VnPower 6 months ago
parent a90e7c80bb
commit d128d06738

@ -28,3 +28,9 @@ index.html: blog/*/*.md
config
inner-template
template base
*/index.html:
config
ext .html
directorify
template base

@ -26,6 +26,7 @@ printf "title: $title
author: $author
date: $date
tags: $tags
draft: true
----
" >> $folder_path/index.md

@ -1,6 +1,7 @@
title: Hello, World!
author: VnPower
date: 2022-08-09
tags: hello,testing
----
asd

@ -0,0 +1,4 @@
title: Blog
----
{{ template "articleList" (((.Site.Pages.Children "blog/").Where "Url" "/$").WhereNot "Draft" "true") }}

@ -12,14 +12,16 @@
<entry>
<id>blog/new/</id>
<id>blog/hello-world/</id>
<author><name>VnPower</name></author>
<title type="html">New blog</title>
<title type="html">Hello, World!</title>
<published>2022-08-09T00:00:00Z</published>
<category term="hello"></category>
<link href="https://tilde.club/~vnpower/blog/new/" rel="alternate"></link>
<category term="testing"></category>
<link href="https://tilde.club/~vnpower/blog/hello-world/" rel="alternate"></link>
<content type="html">
@ -27,16 +29,12 @@
</entry>
<entry>
<id>blog/test/</id>
<id>blog/index.md</id>
<author><name>VnPower</name></author>
<title type="html">Test</title>
<published>2022-07-09T00:00:00Z</published>
<category term="code"></category>
<category term="rust"></category>
<title type="html"></title>
<published>0001-01-01T00:00:00Z</published>
<link href="https://tilde.club/~vnpower/blog/test/" rel="alternate"></link>
<link href="https://tilde.club/~vnpower/blog/index.md" rel="alternate"></link>
<content type="html">

@ -0,0 +1,4 @@
title: Blog
----
{{ template "articleList" (((.Site.Pages.Children "blog/").Where "Url" "/$").WhereNot "Draft" "true") }}

@ -0,0 +1,84 @@
<!doctype html>
<html lang="en">
<head>
<title>VnPower's website: Hello, World!</title>
<meta charset="UTF-8">
<meta name="author" content="VnPower" />
<meta name="description" content="My website. Served with static files." />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="alternate" type="application/atom+xml" title="VnPower&#39;s website feed" href="/blog.atom" />
<link href="/static/style.css" rel="stylesheet">
<script defer src="/static/script.js"></script>
</head>
<body class="mocha">
<header class="center-flex">
<h1>VnPower</h1>
</header>
<main>
<nav>
<div class="buttons-list hr inline">
<a href="/">
Home
</a>
<a href="/blog">
Blog
</a>
</div>
<div class="buttons-list hr float-right inline" id="theme">
<a href="#" id="latte">
🌻 Latte
</a>
<a href="#" id="frappe">
🪴 Frappe
</a>
<a href="#" id="macchiato">
🌺 Macchiato
</a>
<a href="#" id="mocha">
🌿 Mocha
</a>
</div>
</nav>
<section class="front-content clear">
<article>
<a href="/blog"><small>Back to index</small></a>
<h1 class="title no-margin">Hello, World!</h1>
<small class="metadata subtext">by VnPower in 09/08/2022</small>
<p>
Tags:
<a href="/tags/hello/">hello</a>,
<a href="/tags/testing/">testing</a>
</p>
<div class="content">
<p><p>asd</p>
</p>
</div>
</article>
</section>
</main>
<footer class="center-text">
<p>VnPower</p>
<!--
<div class="inline">
GitHub
076's Gitea
Discord
</div>
-->
<small>Still working</small>
</footer>
</body>
</html>

@ -0,0 +1,78 @@
<!doctype html>
<html lang="en">
<head>
<title>VnPower's website: Blog</title>
<meta charset="UTF-8">
<meta name="author" content="VnPower" />
<meta name="description" content="My website. Served with static files." />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="alternate" type="application/atom+xml" title="VnPower&#39;s website feed" href="/blog.atom" />
<link href="/static/style.css" rel="stylesheet">
<script defer src="/static/script.js"></script>
</head>
<body class="mocha">
<header class="center-flex">
<h1>VnPower</h1>
</header>
<main>
<nav>
<div class="buttons-list hr inline">
<a href="/">
Home
</a>
<a href="/blog">
Blog
</a>
</div>
<div class="buttons-list hr float-right inline" id="theme">
<a href="#" id="latte">
🌻 Latte
</a>
<a href="#" id="frappe">
🪴 Frappe
</a>
<a href="#" id="macchiato">
🌺 Macchiato
</a>
<a href="#" id="mocha">
🌿 Mocha
</a>
</div>
</nav>
<section class="front-content clear">
<section class="article-list">
<ul>
<li>09/08/2022 &mdash; <a href="/blog/hello-world/">Hello, World!</a></li>
</ul>
</section>
</section>
</main>
<footer class="center-text">
<p>VnPower</p>
<!--
<div class="inline">
GitHub
076's Gitea
Discord
</div>
-->
<small>Still working</small>
</footer>
</body>
</html>

@ -65,9 +65,7 @@
<section class="article-list">
<ul>
<li>09/08/2022 &mdash; <a href="/blog/new/">New blog</a></li>
<li>09/07/2022 &mdash; <a href="/blog/test/">Test</a></li>
<li>09/08/2022 &mdash; <a href="/blog/hello-world/">Hello, World!</a></li>
</ul>
</section>

@ -53,7 +53,7 @@
<section class="article-list">
<ul>
<li>09/08/2022 &mdash; <a href="/blog/new/">New blog</a></li>
<li>09/08/2022 &mdash; <a href="/blog/hello-world/">Hello, World!</a></li>
</ul>
</section>

@ -0,0 +1,77 @@
<!doctype html>
<html lang="en">
<head>
<title>VnPower's website: testing</title>
<meta charset="UTF-8">
<meta name="author" content="VnPower" />
<meta name="description" content="My website. Served with static files." />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="alternate" type="application/atom+xml" title="VnPower&#39;s website feed" href="/blog.atom" />
<link href="/static/style.css" rel="stylesheet">
<script defer src="/static/script.js"></script>
</head>
<body class="mocha">
<header class="center-flex">
<h1>VnPower</h1>
</header>
<main>
<nav>
<div class="buttons-list hr inline">
<a href="/">
Home
</a>
<a href="/blog">
Blog
</a>
</div>
<div class="buttons-list hr float-right inline" id="theme">
<a href="#" id="latte">
🌻 Latte
</a>
<a href="#" id="frappe">
🪴 Frappe
</a>
<a href="#" id="macchiato">
🌺 Macchiato
</a>
<a href="#" id="mocha">
🌿 Mocha
</a>
</div>
</nav>
<section class="front-content clear">
<h1>`testing` tagged posts</h1>
<section class="article-list">
<ul>
<li>09/08/2022 &mdash; <a href="/blog/hello-world/">Hello, World!</a></li>
</ul>
</section>
</section>
</main>
<footer class="center-text">
<p>VnPower</p>
<!--
<div class="inline">
GitHub
076's Gitea
Discord
</div>
-->
<small>Still working</small>
</footer>
</body>
</html>
Loading…
Cancel
Save