Skip to content

Commit

Permalink
plain html instead of plain text
Browse files Browse the repository at this point in the history
  • Loading branch information
ngalaiko committed Jan 20, 2025
1 parent d654634 commit 99b6732
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 148 deletions.
142 changes: 0 additions & 142 deletions filters/plaintext_style.lua

This file was deleted.

2 changes: 1 addition & 1 deletion scripts/convert_md.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function main() {

frontmatter="$(echo "$input" | sed -n '/^---$/,/^---$/p' | sed '1d;$d')"
body="$(echo "$input" |\
pandoc --lua-filter="$DIR/../filters/fix_links.lua" --lua-filter="$DIR/../filters/plaintext_style.lua")"
pandoc --lua-filter="$DIR/../filters/fix_links.lua")"

echo "path: $path"
echo "$(echo "$frontmatter" | grep "title:")"
Expand Down
10 changes: 7 additions & 3 deletions templates/_layout.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@
<body>
{%- block content %}
{%- endblock %}
<pre>
<a href="/privacy.html">privacy policy</a> · <a href="https://github.com/ngalaiko/galaiko.rocks">source</a> · <a href="/stats.html">stats</a></pre>

<footer>
<a href="/privacy.html">privacy policy</a>
·
<a href="https://github.com/ngalaiko/galaiko.rocks">source</a>
·
<a href="/stats.html">stats</a>
</footer>
</body>

</html>
5 changes: 4 additions & 1 deletion templates/cocktails/_cocktail.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@

{% block title %}{{ cocktail.title }}{% endblock %}


{% block content %}
<h1>{{ cocktail.title }}</h1>

<aside>
<img
width="800"
Expand All @@ -12,5 +15,5 @@
/>
</aside>

<pre>{{ cocktail.content | split("\n") | skip(1) | join("\n") | safe }}</pre>
{{ cocktail.content | split("\n") | skip(1) | join("\n") | safe }}
{% endblock %}
3 changes: 2 additions & 1 deletion templates/posts/_post.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@
{% block title %}{{ post.title }}{% endblock %}

{%- block content -%}
<pre>{{ post.content | safe }}</pre>
<h1>{{ post.title }}</h1>
{{ post.content | safe }}
{%- endblock -%}

0 comments on commit 99b6732

Please sign in to comment.