serhii.net

In the middle of the desert you can say anything you want

16 Sep 2020

Day 625

English / Interesting

Tohu wa-bohu - Wikipedia “is a Biblical Hebrew phrase found in the Genesis creation narrative (Genesis 1:2) that describes the condition of the earth (eretz) immediately before the creation of light in Genesis 1:3.”

Now let’s play with Jekyll and UTF-8.

וְהָאָ֗רֶץ הָיְתָ֥ה תֹ֙הוּ֙ וָבֹ֔הוּ וְחֹ֖שֶׁךְ עַל־פְּנֵ֣י תְהֹ֑ום וְר֣וּחַ אֱלֹהִ֔ים מְרַחֶ֖פֶת עַל־פְּנֵ֥י הַמָּֽיִם‎

— Genesis 1:2, Westminster Leningrad Codex

Now the earth was formless and empty, darkness was over the surface of the deep, and the spirit of God was hovering over the waters.

— Genesis 1:2, New International Version

Better master file

So, before we had this file:

echo "Concatting all existing days"
cd _posts
echo \
"---
layout: page
title: Master file
permalink: /master/
---
"\
> ../master_file.md

cat * | grep -v "layout: post" | grep -v "categories: \[" | grep -v "title:  \"Day" | grep -v "date:   20" | grep -v "\-\-\-"  >> ../master_file.md

This didn’t really work well for various reasons, now I did this right:

{% raw %}---
layout: default
---

<div class="home">
  {%- if page.title -%}
    <h1 class="page-heading">{{ page.title }}</h1>
  {%- endif -%}

  {{ content }}

      <ul class="post-list">
      {% for post in site.posts %}
      <h1><a href="{{ post.url }}">{{ post.title }}</a></h1>
        <p class="author">
          {% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %}
          <span class="post-meta">{{ post.date | date: date_format }}</span>
        </p>
        <div class="content">
          {{ post.content }}
          <br>
        </div>
      {% endfor %}
    </ul>
</div>{% endraw %}

Master file is at the same URI: Master file | Diensttagebuch

Jekyll raw

The nice tags for raw input, of course, work immediately, no spaces between (%raw%)And the start of the actual content(%endraw%).

Nel mezzo del deserto posso dire tutto quello che voglio.