Liliesh's Bloghttps://liliesh.pinkhaj.world/blog/2023-01-02T12:00:00+00:00Second Post2023-01-02T12:00:00+00:002023-01-02T12:00:00+00:00Lilieshtag:liliesh.pinkhaj.world,2023-01-02:/blog/second-post.htmlThis is the second blog post, so you can see how it looks like on the front page.<h2>Second Post</h2> <p>This page serves no purpose :)</p> <p><img alt="Blag Screenshot" src="blag.png"></p>Hello World!2023-01-01T12:00:00+00:002023-01-01T12:00:00+00:00Lilieshtag:liliesh.pinkhaj.world,2023-01-01:/blog/hello-world.htmlHello there, this is the first blog post. You should read me first.<h2>Hello World</h2> <p>This is an example blog post. Internally, blag differentiates between <strong>pages</strong> and <strong>articles</strong>. 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 <code>date</code> metadata element: Any document that contains the <code>date</code> metadata element is an article, everything else a page.</p> <p>This differentiation has consequences:</p> <ul> <li>blag uses different templates: <code>page.html</code> and <code>article.html</code></li> <li>only articles are collected in the Atom feed</li> <li>only articles are aggregated in the tag pages</li> </ul> <p>For more detailed information, please refer to the <a href="https://blag.readthedocs.io">documentation</a></p> <h3>Syntax Highlighting</h3> <div class="codehilite"><pre><span></span><code><span class="k">def</span><span class="w"> </span><span class="nf">foo</span><span class="p">(</span><span class="n">bar</span><span class="p">):</span> <span class="w"> </span><span class="sd">&quot;&quot;&quot;This is a docstring.</span> <span class="sd"> &quot;&quot;&quot;</span> <span class="c1"># comment</span> <span class="k">return</span> <span class="n">bar</span> </code></pre></div> <p>Syntax highlighting is done via <a href="https://pygments.org">Pygments</a>. 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 <a href="https://pygments.org">Pygments&rsquo; documentation</a>.</p> <h3>Next Steps</h3> <ul> <li>Adapt the files in <code>templates</code> to your needs</li> <li>Check out the files in <code>static</code> and modify as needed</li> <li>Add some content</li> <li>Change the <a href="favicon.ico">favicon.ico</a></li> </ul>