Build update

This commit is contained in:
Liliesh 2025-07-14 20:27:09 +02:00
parent 9206d3572f
commit e198638d3f
Signed by: liliesh
GPG key ID: 680387646C7BAE8E
6 changed files with 27 additions and 114 deletions

View file

@ -21,7 +21,6 @@
<li><h2><a href="/blog">Blog</a></h2></li>
<li><h2><a href="/blog/archive.html">Archive</a></h2></li>
<li><h2><a href="/blog/tags/">Tags</a></h2></li>
<li><h2><a href="/blog/about.html">About Me</a></h2></li>
</ul>
</nav>
</header>
@ -33,25 +32,11 @@
<article>
<header>
<time datetime="2023-01-02 12:00:00+00:00">2023-01-02</time>
<time datetime="2025-07-14 20:11:00+00:00">2025-07-14</time>
<div>
<h2><a href="second-post.html">Second Post</a></h2>
<h2><a href="first-entry.html">First Entry</a></h2>
<p>— This is the second blog post, so you can see how it looks like on the front page.</p>
</div>
</header>
</article>
<article>
<header>
<time datetime="2023-01-01 12:00:00+00:00">2023-01-01</time>
<div>
<h2><a href="hello-world.html">Hello World!</a></h2>
<p>— Hello there, this is the first blog post. You should read me first.</p>
<p>— After around 1000 tries, here is another try on having a block.</p>
</div>
</header>

View file

@ -1,37 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Liliesh's Blog</title><link href="https://liliesh.pinkhaj.world/blog/" rel="alternate"></link><link href="https://liliesh.pinkhaj.world/blog/atom.xml" rel="self"></link><id>https://liliesh.pinkhaj.world/blog/</id><updated>2023-01-02T12:00:00+00:00</updated><entry><title>Second Post</title><link href="https://liliesh.pinkhaj.world/blog/second-post.html" rel="alternate"></link><published>2023-01-02T12:00:00+00:00</published><updated>2023-01-02T12:00:00+00:00</updated><author><name>Liliesh</name></author><id>tag:liliesh.pinkhaj.world,2023-01-02:/blog/second-post.html</id><summary type="html">This is the second blog post, so you can see how it looks like on the front page.</summary><content type="html">&lt;h2&gt;Second Post&lt;/h2&gt;
&lt;p&gt;This page serves no purpose :)&lt;/p&gt;
&lt;p&gt;&lt;img alt="Blag Screenshot" src="blag.png"&gt;&lt;/p&gt;</content></entry><entry><title>Hello World!</title><link href="https://liliesh.pinkhaj.world/blog/hello-world.html" rel="alternate"></link><published>2023-01-01T12:00:00+00:00</published><updated>2023-01-01T12:00:00+00:00</updated><author><name>Liliesh</name></author><id>tag:liliesh.pinkhaj.world,2023-01-01:/blog/hello-world.html</id><summary type="html">Hello there, this is the first blog post. You should read me first.</summary><content type="html">&lt;h2&gt;Hello World&lt;/h2&gt;
&lt;p&gt;This is an example blog post. Internally, blag differentiates between &lt;strong&gt;pages&lt;/strong&gt;
and &lt;strong&gt;articles&lt;/strong&gt;. Intuitively, pages are simple pages and articles are blog
posts. The decision whether a document is a page or an article is made
depending on the presence of the &lt;code&gt;date&lt;/code&gt; metadata element: Any document that
contains the &lt;code&gt;date&lt;/code&gt; metadata element is an article, everything else a page.&lt;/p&gt;
&lt;p&gt;This differentiation has consequences:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;blag uses different templates: &lt;code&gt;page.html&lt;/code&gt; and &lt;code&gt;article.html&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;only articles are collected in the Atom feed&lt;/li&gt;
&lt;li&gt;only articles are aggregated in the tag pages&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;For more detailed information, please refer to the &lt;a href="https://blag.readthedocs.io"&gt;documentation&lt;/a&gt;&lt;/p&gt;
&lt;h3&gt;Syntax Highlighting&lt;/h3&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;&lt;span class="k"&gt;def&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="nf"&gt;foo&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;bar&lt;/span&gt;&lt;span class="p"&gt;):&lt;/span&gt;
&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="sd"&gt;&amp;quot;&amp;quot;&amp;quot;This is a docstring.&lt;/span&gt;
&lt;span class="sd"&gt; &amp;quot;&amp;quot;&amp;quot;&lt;/span&gt;
&lt;span class="c1"&gt;# comment&lt;/span&gt;
&lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="n"&gt;bar&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Syntax highlighting is done via &lt;a href="https://pygments.org"&gt;Pygments&lt;/a&gt;. For code blocks, blag
generates the necessary CSS classes by default, which you can use to style your
code using CSS. It provides you with a default light- and dark theme, for more
information on how to generate a different theme, please refer to &lt;a href="https://pygments.org"&gt;Pygments&amp;rsquo;
documentation&lt;/a&gt;.&lt;/p&gt;
&lt;h3&gt;Next Steps&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;Adapt the files in &lt;code&gt;templates&lt;/code&gt; to your needs&lt;/li&gt;
&lt;li&gt;Check out the files in &lt;code&gt;static&lt;/code&gt; and modify as needed&lt;/li&gt;
&lt;li&gt;Add some content&lt;/li&gt;
&lt;li&gt;Change the &lt;a href="favicon.ico"&gt;favicon.ico&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</content></entry></feed>
<feed xmlns="http://www.w3.org/2005/Atom"><title>Liliesh's Blog</title><link href="https://liliesh.pinkhaj.world/blog/" rel="alternate"></link><link href="https://liliesh.pinkhaj.world/blog/atom.xml" rel="self"></link><id>https://liliesh.pinkhaj.world/blog/</id><updated>2025-07-14T20:11:00+00:00</updated><entry><title>First Entry</title><link href="https://liliesh.pinkhaj.world/blog/first-entry.html" rel="alternate"></link><published>2025-07-14T20:11:00+00:00</published><updated>2025-07-14T20:11:00+00:00</updated><author><name>Liliesh</name></author><id>tag:liliesh.pinkhaj.world,2025-07-14:/blog/first-entry.html</id><summary type="html">After around 1000 tries, here is another try on having a block.</summary><content type="html"></content></entry></feed>

View file

@ -6,10 +6,10 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="light dark">
<meta name="author" content="Liliesh">
<meta name="description" content="">
<meta name="description" content="After around 1000 tries, here is another try on having a block.">
<link rel="alternate" href="/blog/atom.xml" type="application/atom+xml">
<link rel="stylesheet" href="/blog/style.css" type="text/css">
<title>#blag | </title>
<title>First Entry | </title>
</head>
<body>
@ -21,7 +21,6 @@
<li><h2><a href="/blog">Blog</a></h2></li>
<li><h2><a href="/blog/archive.html">Archive</a></h2></li>
<li><h2><a href="/blog/tags/">Tags</a></h2></li>
<li><h2><a href="/blog/about.html">About Me</a></h2></li>
</ul>
</nav>
</header>
@ -29,37 +28,22 @@
<main>
<h2>Articles tagged "blag"</h2>
<h2>First Entry</h2>
<aside>
<p>published on 2025-07-14
<article>
<header>
<time datetime="2023-01-02 12:00:00+00:00">2023-01-02</time>
<div>
<h2><a href="../second-post.html">Second Post</a></h2>
· tagged with
<p>— This is the second blog post, so you can see how it looks like on the front page.</p>
</div>
</header>
</article>
<article>
<header>
<time datetime="2023-01-01 12:00:00+00:00">2023-01-01</time>
<div>
<h2><a href="../hello-world.html">Hello World!</a></h2>
<p>— Hello there, this is the first blog post. You should read me first.</p>
</div>
</header>
</article>
<a href="/blog/tags/iliketomeow.html">#iliketomeow</a>
</p>
</aside>
</main>

View file

@ -21,7 +21,6 @@
<li><h2><a href="/blog">Blog</a></h2></li>
<li><h2><a href="/blog/archive.html">Archive</a></h2></li>
<li><h2><a href="/blog/tags/">Tags</a></h2></li>
<li><h2><a href="/blog/about.html">About Me</a></h2></li>
</ul>
</nav>
</header>
@ -33,25 +32,11 @@
<article>
<header>
<time datetime="2023-01-02 12:00:00+00:00">2023-01-02</time>
<time datetime="2025-07-14 20:11:00+00:00">2025-07-14</time>
<div>
<h2><a href="second-post.html">Second Post</a></h2>
<h2><a href="first-entry.html">First Entry</a></h2>
<p>— This is the second blog post, so you can see how it looks like on the front page.</p>
</div>
</header>
</article>
<article>
<header>
<time datetime="2023-01-01 12:00:00+00:00">2023-01-01</time>
<div>
<h2><a href="hello-world.html">Hello World!</a></h2>
<p>— Hello there, this is the first blog post. You should read me first.</p>
<p>— After around 1000 tries, here is another try on having a block.</p>
</div>
</header>

View file

@ -9,7 +9,7 @@
<meta name="description" content="">
<link rel="alternate" href="/blog/atom.xml" type="application/atom+xml">
<link rel="stylesheet" href="/blog/style.css" type="text/css">
<title>#pygments | </title>
<title>#iliketomeow | </title>
</head>
<body>
@ -21,7 +21,6 @@
<li><h2><a href="/blog">Blog</a></h2></li>
<li><h2><a href="/blog/archive.html">Archive</a></h2></li>
<li><h2><a href="/blog/tags/">Tags</a></h2></li>
<li><h2><a href="/blog/about.html">About Me</a></h2></li>
</ul>
</nav>
</header>
@ -29,17 +28,17 @@
<main>
<h2>Articles tagged "pygments"</h2>
<h2>Articles tagged "iliketomeow"</h2>
<article>
<header>
<time datetime="2023-01-01 12:00:00+00:00">2023-01-01</time>
<time datetime="2025-07-14 20:11:00+00:00">2025-07-14</time>
<div>
<h2><a href="../hello-world.html">Hello World!</a></h2>
<h2><a href="../first-entry.html">First Entry</a></h2>
<p>Hello there, this is the first blog post. You should read me first.</p>
<p>After around 1000 tries, here is another try on having a block.</p>
</div>
</header>

View file

@ -21,7 +21,6 @@
<li><h2><a href="/blog">Blog</a></h2></li>
<li><h2><a href="/blog/archive.html">Archive</a></h2></li>
<li><h2><a href="/blog/tags/">Tags</a></h2></li>
<li><h2><a href="/blog/about.html">About Me</a></h2></li>
</ul>
</nav>
</header>
@ -32,11 +31,7 @@
<ul>
<li>
<a href="blag.html">blag (2 articles)</a>
</li>
<li>
<a href="pygments.html">pygments (1 articles)</a>
<a href="iliketomeow.html">iliketomeow (1 articles)</a>
</li>
</ul>