blog/second-post/index.html

101 lines · 5657 bytes

  1<!DOCTYPE html>
  2<html>
  3	<head id="head">
  4		<meta charset="utf-8">
  5		<meta name="viewport" content="initial-scale=1">
  6		<title>Welcome to befree</title>
  7		<link type="text/css" rel="stylesheet" href="/befree/style.css">
  8		<link type="text/css" rel="stylesheet" href="/befree/highlight.css">
  9		<!-- mathtex -->
 10		<link type="text/css" rel="stylesheet" href="/befree/Temml-Local.css">
 11		<script defer src="/befree/temml.min.js"></script>
 12		<script defer src="/befree/render-mathtex.js"></script>
 13		<!-- /mathtex -->
 14		
 15	<style>
 16		#prev-next {
 17			display: flex;
 18			flex-direction: row;
 19			justify-content: space-between;
 20			margin-top: 40px;
 21		}
 22		
 23		figure {
 24			align-self: center;
 25			text-align: center;
 26			font-style: italic;
 27		}
 28		
 29		.post {
 30			display:flex;
 31			flex-direction: column;
 32		}
 33	</style>
 34
 35	</head>
 36	<body id="body">
 37		<h1 class="site-title">Welcome to befree</h1>
 38		<nav>
 39			<a href="/befree/">Home</a>
 40			&nbsp; • &nbsp;
 41			<a href="/befree/about/">About</a>
 42			&nbsp; • &nbsp;
 43			<a href="/befree/blog/">Blog</a>
 44			
 45				&nbsp; • &nbsp;
 46				<a href="/befree/devlog/2026/">Devlog</a>
 47			
 48		</nav>
 49		
 50	<h1>Second Post</h1>
 51	<div class="post"><p>This second post is mainly here to show you that you can also create single file posts for convenience. The first post contains more interesting content.</p><p>Don’t forget to read <a href="https://zine-ssg.io/docs/supermd/">the official SuperMD docs</a> to know how to <em>style</em> your content.</p><h1>Math</h1><p>Btw this sample website also includes the JS/CSS dependencies required to render math:</p><script type="math/tex">\begin{aligned}
 52f(t) &= \int_{-\infty}^\infty F(\omega) \cdot (-1)^{2 \omega t} \mathrm{d}\omega \\
 53F(\omega) &= \int_{-\infty}^\infty f(t) \div (-1)^{2 \omega t} \mathrm{d}t \\
 54\end{aligned}
 55</script><p>This: <script type="math/tex">(-1)^x = \cos(\pi x) + i\sin(\pi x)</script> is an inline equation instead!</p><h1>Code blocks</h1><pre><code class="zig"><span class="comment_documentation comment spell">/// Shaper that uses CoreText.</span>
 56<span class="comment_documentation comment spell">///</span>
 57<span class="comment_documentation comment spell">/// CoreText shaping differs in subtle ways from HarfBuzz so it may result</span>
 58<span class="comment_documentation comment spell">/// in inconsistent rendering across platforms. But it also fixes many</span>
 59<span class="comment_documentation comment spell">/// issues (some macOS specific):</span>
 60<span class="comment_documentation comment spell">///</span>
 61<span class="comment_documentation comment spell">///   - Theta hat offset is incorrect in HarfBuzz but correct by default</span>
 62<span class="comment_documentation comment spell">///     on macOS applications using CoreText. (See:</span>
 63<span class="comment_documentation comment spell">///     https://github.com/harfbuzz/harfbuzz/discussions/4525)</span>
 64<span class="comment_documentation comment spell">///</span>
 65<span class="comment_documentation comment spell">///   - Hyphens (U+2010) can be synthesized by CoreText but not by HarfBuzz.</span>
 66<span class="comment_documentation comment spell">///     See: https://github.com/mitchellh/ghostty/issues/1643</span>
 67<span class="comment_documentation comment spell">///</span>
 68<span class="keyword_modifier">pub</span> <span class="keyword">const</span> <span class="constant variable_builtin type variable">Shaper</span> <span class="operator">=</span> <span class="keyword_type">struct</span> <span class="punctuation_bracket">{</span>
 69    <span class="comment_documentation comment spell">/// The allocated used for the feature list, font cache, and cell buf.</span>
 70    <span class="constant variable_builtin type variable_member variable">alloc</span><span class="punctuation_delimiter">:</span> <span class="constant variable_builtin type variable">Allocator</span><span class="punctuation_delimiter">,</span>
 71
 72    <span class="comment_documentation comment spell">/// The string used for shaping the current run.</span>
 73    <span class="constant variable_builtin type variable_member variable">run_state</span><span class="punctuation_delimiter">:</span> <span class="constant variable_builtin type variable">RunState</span><span class="punctuation_delimiter">,</span>
 74
 75    <span class="comment_documentation comment spell">/// CoreFoundation Dictionary which represents our font feature settings.</span>
 76    <span class="constant variable_builtin type variable_member variable">features</span><span class="punctuation_delimiter">:</span> <span class="operator">*</span><span class="constant variable_builtin type variable">macos</span><span class="punctuation_delimiter">.</span><span class="constant variable_builtin type variable_member variable">foundation</span><span class="punctuation_delimiter">.</span><span class="constant variable_builtin type variable_member variable">Dictionary</span><span class="punctuation_delimiter">,</span>
 77<span class="comment_documentation comment spell">// ...</span>
 78</code></pre>
 79<p>If you open the web inspector on the code below, you will see that the code has been correctly tagged for syntax highlighting, but it’s currently on you to come up with CSS definitions for styling each class.</p></div>
 80	<div id="prev-next">
 81		<div>
 82			<a href="/befree/blog/first-post/">
 83				←
 84				<span>Rant: Dominance of privacy invasive spyware in education</span>
 85			</a>
 86		</div>
 87		<div>
 88			<a href="/befree/blog/third-post/">
 89				<span>Test1</span>
 90				→
 91			</a>
 92		</div>
 93	</div>
 94
 95		<!-- <footer>
 96			<hr>
 97			<h5>SITE UNDER CONSTRUCTION</h5>
 98			<img src="$site.asset('under-construction.gif').link()" width=90>
 99		</footer> -->
100	</body>
101</html>