46 lines
No EOL
5.9 KiB
HTML
46 lines
No EOL
5.9 KiB
HTML
<!doctype html>
|
||
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Scriptorium Blog</title><link href="/scriptorium_blog/css/normalize.css" rel="stylesheet"><link href="/scriptorium_blog/css/magick.css" rel="stylesheet"><link href="/scriptorium_blog/css/custom.css" rel="stylesheet"><link href="/scriptorium_blog/feed" rel="alternate" type="application/atom+xml"><link rel="me" href="https://social.ahlcode.fi/@nicd"><meta name="author" content="Mikko Ahlroth"><meta name="description" content><meta itemprop="name" content><meta itemprop="author" content="Mikko Ahlroth"><meta itemprop="headline" content><meta itemprop="description" content><meta name="twitter:card" content="summary_large_image"><meta name="twitter:site" content><meta name="twitter:title" content><meta name="twitter:description" content><meta name="twitter:creator" content><meta property="og:title" content><meta property="og:type" content="website"><meta property="og:description" content><meta property="og:site_name" content="Scriptorium Blog"></head><body><header id="title" role="banner"><h1><a href="/scriptorium_blog/index.html">Scriptorium Blog</a></h1><nav><ul><li><a href="https://hex.pm/packages/scriptorium">Hex</a></li><li><a href="https://hexdocs.pm/scriptorium">HexDocs</a></li><li><a href="https://gitlab.com/Nicd/scriptorium">GitLab</a></li><li><a href="/scriptorium_blog/guide.html">User's Guide</a></li><li><a href="https://gitlab.com/Nicd/scriptorium_blog">This blog's source</a></li></ul></nav></header><main><section class="post-list"><article lang="fi" class="post"><header><a href="/scriptorium_blog/2024/06/01/kirjoita-omalla-kielellä.html"><h2>Kirjoita omalla kielellä</h2></a><p lang="en" class="post__time">Posted on <time datetime="2024-06-01T09:30:00.000+03:00">1 Jun 2024, 09:30</time>.</p><nav lang="en" aria-label="Tags"><ul><li><a href="/scriptorium_blog/tag/i18n.html">i18n</a></li></ul></nav></header><div><p>Tähän mennessä Scriptoriumilla on voinut kirjoittaa vain yhdellä kielellä, joka on ollut
|
||
konfiguroitavissa globaalisti. Uusimmassa versiossa blogimoottoriin on lisätty tuki kielen
|
||
vaihtamiseen jokaiselle tekstille tai sivulle erikseen. Hurraa! Tämä tapahtuu asettamalla
|
||
postaukselle tai sivulle otsikkotieto <code>lang</code>, esimerkiksi <kbd>lang: fi</kbd>.</p>
|
||
<p>Tämän lisäksi koko generoidun blogin voi nyt kääntää Gettextillä. Jos valitset kieleksi
|
||
<kbd>"fi"</kbd>, sivuston kiinteät tekstit kuten <span lang="en">"Posted at"</span>
|
||
vaihtuvat suomeksi. Kielitiedostot voi kääntää ja ladata itse, tai ne voi lisätä
|
||
Scriptoriumin koodipohjaan jotta kaikki voivat hyötyä niistä.</p>
|
||
<p lang="en">
|
||
And the same in English: Up until now, Scriptorium has only supported one language for
|
||
the entire blog. In the latest version (2.0.0), a header such as <kbd>lang: fi</kbd>
|
||
can be added to change the language of a single post. This affects the generated HTML
|
||
and the Atom feed.
|
||
</p>
|
||
|
||
<p lang="en">
|
||
In addition, all the fixed strings in the generated site can now also be translated
|
||
using Gettext. The user can do the translations themselves with their own translation
|
||
files, or they can be contributed to the main project to be available for all.
|
||
</p>
|
||
</div></article><article class="post"><header><a href="/scriptorium_blog/2024/04/21/scriptorium-published.html"><h2>Scriptorium 1.0 Published</h2></a><p lang="en" class="post__time">Posted on <time datetime="2024-04-21T11:00:00.000+03:00">21 Apr 2024, 11:00</time>.</p><nav lang="en" aria-label="Tags"><ul><li><a href="/scriptorium_blog/tag/hex.html">hex</a></li></ul></nav></header><div><figure>
|
||
<blockquote>
|
||
<p>
|
||
scriptorium /skrĭp-tôr′ē-əm/<br>
|
||
<br>
|
||
Writing room set aside in monastic communities for the use of scribes engaged in copying manuscripts. […]
|
||
</p>
|
||
</blockquote>
|
||
|
||
<figcaption>
|
||
<cite>
|
||
<a href="https://www.britannica.com/art/scriptorium">Encyclopædia Britannica</a>
|
||
</cite>
|
||
</figcaption>
|
||
</figure>
|
||
|
||
<p>This morning I formally published <a href="https://hexdocs.pm/scriptorium">Scriptorium</a> 1.0.0 (and 1.0.1, and
|
||
1.0.2 😅). The library now has API docs and a quickstart guide, but the full
|
||
<a href="/scriptorium_blog/guide.html">user's guide</a> is still a work-in-progress. For now if there's any
|
||
prospective user, they can contact me directly for assistance (I'm Nicd in the Gleam Discord). There's
|
||
still surely some CSS and bug fixes to do, and some refactoring.</p>
|
||
</div><footer lang="en"><a href="/scriptorium_blog/2024/04/21/scriptorium-published.html">Read more…</a></footer></article><article class="post"><header><a href="/scriptorium_blog/2024/04/14/hello-world.html"><h2>Hello, world!</h2></a><p lang="en" class="post__time">Posted on <time datetime="2024-04-14T15:25:00.000+03:00">14 Apr 2024, 15:25</time>.</p><nav lang="en" aria-label="Tags"><ul></ul></nav></header><div><p>This is the <a href="https://hexdocs.pm/scriptorium">Scriptorium</a> demo blog. This blog will contain news about
|
||
Scriptorium, and the user's guide. It also works as a demonstration of a simple blog setup. You can
|
||
find this blog's code also on <a href="https://gitlab.com/Nicd/scriptorium_blog">GitLab</a>.</p>
|
||
</div></article></section></main><section id="sidebar"><nav id="tags" aria-label="Tags"><ul><li><a href="/scriptorium_blog/tag/hex.html" style="font-size:100%;">hex</a></li><li><a href="/scriptorium_blog/tag/i18n.html" style="font-size:100%;">i18n</a></li></ul></nav><nav id="archives" aria-label="Archives"><ul><li><a href="/scriptorium_blog/archive/2024.html">2024</a><ul><li><a href="/scriptorium_blog/archive/2024/06.html">June (1)</a></li><li><a href="/scriptorium_blog/archive/2024/04.html">April (2)</a></li></ul></li></ul></nav></section><footer><p>© Mikko Ahlroth · Powered by: <a href="https://gleam.run/">Gleam</a>, <a href="https://hexdocs.pm/lustre">Lustre</a>, <a href="https://gitlab.com/Nicd/scriptorium">Scriptorium</a></p></footer></body></html> |