Skip to content

Commit

Permalink
fix layout a little
Browse files Browse the repository at this point in the history
  • Loading branch information
ngalaiko committed Dec 17, 2024
1 parent e06614c commit 11a179e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 22 deletions.
2 changes: 1 addition & 1 deletion filters/plaintext_style.lua
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,6 @@ function Pandoc(doc)
table.insert(all_text, block_text)
end
end
local output = "<pre>" .. table.concat(all_text, "\n\n") .. "</pre>"
local output = table.concat(all_text, "\n\n")
return pandoc.Pandoc({ pandoc.RawBlock("html", output) }, doc.meta)
end
2 changes: 1 addition & 1 deletion scripts/convert_md.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function main() {
echo "$(echo "$frontmatter" | grep "title:")"
echo "$(echo "$frontmatter" | grep "date:")"
echo "$(echo "$frontmatter" | grep "id:")"
echo "content: |"
echo "content: |2"
echo "$body" | while IFS= read -r line; do
echo " $line"
done
Expand Down
5 changes: 1 addition & 4 deletions templates/_layout.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@
<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>
<a href="/privacy.html">privacy policy</a> · <a href="https://github.com/ngalaiko/galaiko.rocks">source</a> · <a href="/stats.html">stats</a></pre>

</body>

Expand Down
20 changes: 9 additions & 11 deletions templates/cocktails/_cocktail.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
{% block title %}{{ cocktail.title }}{% endblock %}

{% block content %}
<aside>
<img
width="800"
loading="lazy"
src="{{ cocktail.title | slugify }}[email protected]"
alt="Picture of {{ cocktail.title }} cocktail"
/>
</aside>
<aside>
<img
width="800"
loading="lazy"
src="{{ cocktail.title | slugify }}[email protected]"
alt="Picture of {{ cocktail.title }} cocktail"
/>
</aside>

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

{% block title %}{{ post.title }}{% endblock %}

{% block content %}
{{ post.content | safe }}
{% endblock %}
{%- block content -%}
<pre>{{ post.content | safe }}</pre>
{%- endblock -%}
2 changes: 0 additions & 2 deletions templates/posts/index.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
{% endblock %}

{% block content %}
<pre>
{%- for post in posts|sort(attribute="date",reverse=True) %}
* <time datetime="{{ post.date }}">{{ post.date }}</time> | <a href="{{ post.path | replace(".md", ".html") }}">{{ post.title }}</a>
{%- endfor %}
</pre>
{% endblock %}

0 comments on commit 11a179e

Please sign in to comment.