Skip to content

Commit

Permalink
Reformat html files
Browse files Browse the repository at this point in the history
  • Loading branch information
treeman committed Sep 2, 2023
1 parent 3c39a57 commit 6ca15d7
Show file tree
Hide file tree
Showing 9 changed files with 169 additions and 150 deletions.
9 changes: 9 additions & 0 deletions .vale.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
StylesPath = styles

MinAlertLevel = suggestion

Packages = write-good

[*]
BasedOnStyles = Vale, write-good

18 changes: 15 additions & 3 deletions drafts/rewriting_my_neovim_config_in_lua.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,21 @@ I've got tons of things to do; clean the bathrooms, prototype an idea for a SaaS

Like all the cool kids.

https://neovimcraft.com/
https://github.com/catgoose/nvim
[neovimcraft]: https://neovimcraft.com/
[catgoose]: https://github.com/catgoose/nvim

# New to me plugins
# Favorite new to me plugins

- Lazy.nvim
- melange-nvim
- vim-cool
- neogit
- alpha-nvim
- conform

Maybe...

- lualine
- nvim-colorizer

# Is lua worth it?
54 changes: 27 additions & 27 deletions templates/homepage.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,48 +46,48 @@ <h2>Recommended posts</h2>
<h2>Blog</h2>

<nav class="">
<h3>Latest posts</h3>
<h3>Latest posts</h3>

<ul>
<li><a href="">I beat FTL on Hard with all ships in the game</a></li>
<li><a href="">Battling burnout</a></li>
<li><a href="">2022 in review</a></li>
<li><a href="">The current T-34 keyboard layout</a></li>
<li><a href="">Rewriting my blog in Rust for fun and profit</a></li>
</ul>
<ul>
<li><a href="">I beat FTL on Hard with all ships in the game</a></li>
<li><a href="">Battling burnout</a></li>
<li><a href="">2022 in review</a></li>
<li><a href="">The current T-34 keyboard layout</a></li>
<li><a href="">Rewriting my blog in Rust for fun and profit</a></li>
</ul>
</nav>

<nav class="">
<h3>Try these posts</h3>
<h3>Try these posts</h3>

<ul>
<li><a href="">The T-34 keyboard layout</a></li>
<li><a href="">How I wrote a book using Pollen</a></li>
<li><a href="">Game Design Analysis: World of Goo</a></li>
<li><a href="">Summer job at Configura</a></li>
<li><a href="">A friendly game of Twilight Imperium</a></li>
</ul>
<ul>
<li><a href="">The T-34 keyboard layout</a></li>
<li><a href="">How I wrote a book using Pollen</a></li>
<li><a href="">Game Design Analysis: World of Goo</a></li>
<li><a href="">Summer job at Configura</a></li>
<li><a href="">A friendly game of Twilight Imperium</a></li>
</ul>
</nav>

<nav class="">
<ul>
<li><a href="/blog/tags">Series</a></li>
<li><a href="/archive">Archive</a></li>
<li><a href="/blog/tags">Tags</a></li>
</ul>
<ul>
<li><a href="/blog/tags">Series</a></li>
<li><a href="/archive">Archive</a></li>
<li><a href="/blog/tags">Tags</a></li>
</ul>
</nav>
</section>

<section>
<h2>Projects</h2>

<nav class="">
<ul>
<li><a href="/archive">T-34 Keyboard layout</a></li>
<li><a href="/blog">Why Cryptocurrencies?</a></li>
<li><a href="/blog/tags">MARC</a></li>
<li><a href="/blog/tags">Rapid game prototypes</a></li>
</ul>
<ul>
<li><a href="/archive">T-34 Keyboard layout</a></li>
<li><a href="/blog">Why Cryptocurrencies?</a></li>
<li><a href="/blog/tags">MARC</a></li>
<li><a href="/blog/tags">Rapid game prototypes</a></li>
</ul>
</nav>
</section>
</div>
Expand Down
65 changes: 33 additions & 32 deletions templates/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,60 +10,61 @@ <h1><a href="{{url}}">{{title}}</a></h1>
</header>

{% if series %}
<div class="post-series post-series-head">
<div>
This post is part {{series.part_number}} of the <a href="{{series.url}}">{{series.title}}</a> series.</div>
<div class="post-series post-series-head">
<div>
This post is part {{series.part_number}} of the <a href="{{series.url}}">{{series.title}}</a> series.</div>

<div>{{series.post_note}}</div>
</div>
<div>{{series.post_note}}</div>
</div>
{% endif %}

{{content}}

{% if series %}
<div class="post-series post-series-footer">
<div>
{% if series.last_part %}
This post the last part of the <a href="{{series.url}}">{{series.title}}</a> series.
{% else %}
This post is part {{series.part_number}} of the <a href="{{series.url}}">{{series.title}}</a> series.
{% endif %}
</div>
<div class="post-series post-series-footer">
<div>
{% if series.last_part %}
This post the last part of the <a href="{{series.url}}">{{series.title}}</a> series.
{% else %}
This post is part {{series.part_number}} of the <a href="{{series.url}}">{{series.title}}</a> series.
{% endif %}
</div>

{% if not series.next_url %}
<div>
{% if series.completed %}
This series is completed.
{% else %}
This series is ongoing.
{% endif %}
</div>
{% if not series.next_url %}
<div>
{% if series.completed %}
This series is completed.
{% else %}
This series is ongoing.
{% endif %}
</div>
{% endif %}

<div>{{series.post_note}}</div>
<div>{{series.post_note}}</div>

<div>
{% if series.next_url %}
<a href="{{series.next_url}}">Read the next part</a>
{% else %}
<a href="/series">View all series</a>
{% endif %}
</div>
<div>
{% if series.next_url %}
<a href="{{series.next_url}}">Read the next part</a>
{% else %}
<a href="/series">View all series</a>
{% endif %}
</div>
</div>
{% endif %}

<div class="post-footer">
<nav class="tag-links">
Posted in {% for tag in tags %}{% if loop.index0 > 0 %}, {% endif %}<a href="{{ tag.href }}">{{ tag.name }}</a>{% endfor %}.
Posted in {% for tag in tags %}{% if loop.index0 > 0 %}, {% endif %}<a href="{{ tag.href }}">{{ tag.name }}</a>{%
endfor %}.
</nav>

{#
<nav class="post-nav">
{% if prev %}
<span class="prev"><a href="{{ prev.url }}">Previous</a></span>
<span class="prev"><a href="{{ prev.url }}">Previous</a></span>
{% endif %}
{% if next %}
<span class="next"><a href="{{ next.url }}">Next</a></span>
<span class="next"><a href="{{ next.url }}">Next</a></span>
{% endif %}
</nav>
#}
Expand Down
30 changes: 16 additions & 14 deletions templates/projects.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ <h1>{{ title }}</h1>

{% for project in projects %}
<article class="project">
<header>
{% if project.link %}
<h2><a href="{{ project.link }}">{{ project.title }}</a></h2>
{% else %}
<h2>{{ project.title }}</h2>
{% endif %}
<time datetime="{{ project.year }}">{{ project.year }}</time>
</header>
<header>
{% if project.link %}
<h2><a href="{{ project.link }}">{{ project.title }}</a></h2>
{% else %}
<h2>{{ project.title }}</h2>
{% endif %}
<time datetime="{{ project.year }}">{{ project.year }}</time>
</header>

{{ project.descr }}
{{ project.descr }}
</article>
{% endfor %}

Expand All @@ -30,18 +30,20 @@ <h2>Games</h2>

{% for game in games %}
<section class="game">
<a href="{{ game.url }}"><img src="{{ game.img }}" width="160" height="100"/></a>
<a href="{{ game.url }}"><img src="{{ game.img }}" width="160" height="100" /></a>
<div class="descr">
<a href="{{ game.url }}" class="title"><h1 class="title">{{ game.title }}</h1></a>
<a href="{{ game.url }}" class="title">
<h1 class="title">{{ game.title }}</h1>
</a>
<time datetime="{{ game.ymd }}">{{ game.date }}</time>
{% if game.event_link %}
<span class="subtitle"><a href="{{ game.event_link}}">{{ game.event }}</a></span>
<span class="subtitle"><a href="{{ game.event_link}}">{{ game.event }}</a></span>
{% else %}
<span class="subtitle">{{ game.event }}</span>
<span class="subtitle">{{ game.event }}</span>
{% endif %}
</div>
</section>
{% endfor %}
{% endfor %}

</article>
</div>
Expand Down
3 changes: 1 addition & 2 deletions templates/series.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ <h1><a href="{{url}}">{{title}}</a></h1>
<div class="series-footer">

{% if post_note %}
<div class="post_note">{{post_note}}</div>
<div class="post_note">{{post_note}}</div>
{% endif %}

<div>{% if completed %} This series is completed. {% else %} This series is ongoing. {% endif %}</div>
</div>
</article>
{% endblock content %}

22 changes: 12 additions & 10 deletions templates/series_archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,16 @@ <h1>Series</h1>

<div>
<p>
Series are form of long-form content that outgrew the size of a post and that forms a more structured story compared to <a href="/blog/tags">tags</a>. They're a collection of posts, sometimes planned for in advance but other times the series materialized after a couple of posts.
Series are form of long-form content that outgrew the size of a post and that forms a more structured story
compared to <a href="/blog/tags">tags</a>. They're a collection of posts, sometimes planned for in advance but
other times the series materialized after a couple of posts.
</p>
</div>

<ul>
{% for serie in series %}
{% set first_post = serie.posts | first %}
{% set last_post = serie.posts | last %}
{% for serie in series %}
{% set first_post = serie.posts | first %}
{% set last_post = serie.posts | last %}
<li class="series-item">
<section>
<header>
Expand All @@ -29,15 +31,15 @@ <h2><a href="{{ serie.url }}" class="title">{{ serie.title }}</a></h2>
<div><a href="{{ first_post.url }}">Read part 1</a></div>

{#
{% if serie.completed %}
<div class="status completed">completed</div>
{% else %}
<div class="status ongoing">ongoing</div>
{% endif %}
{% if serie.completed %}
<div class="status completed">completed</div>
{% else %}
<div class="status ongoing">ongoing</div>
{% endif %}
#}
</section>
</li>
{% endfor %}
{% endfor %}
</ul>

</article>
Expand Down
Loading

0 comments on commit 6ca15d7

Please sign in to comment.