Skip to content

Commit b50208f

Browse files
committed
Abolish unicode
1 parent 578e827 commit b50208f

14 files changed

Lines changed: 40 additions & 172 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ jobs:
1414
with:
1515
ruby-version: "3.3"
1616
bundler-cache: true
17+
- run: bin/check_unicode
1718
- run: bundle exec jekyll build
1819
- run: bin/htmlproofer

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ date_format: "%d.%m.%Y"
2020
markdown: kramdown
2121
kramdown:
2222
syntax_highlighter: none
23+
smart_quotes: ["apos", "apos", "quot", "quot"]
24+
typographic_symbols: {mdash: "--", ndash: "--", hellip: "...", laquo: "<<", raquo: ">>", laquo_space: "<< ", raquo_space: " >>"}
2325

2426
plugins:
2527
- jekyll-sitemap

_layouts/base.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,21 +130,21 @@ <h1>{% include navlink.html href="/" label="CB341.DEV" %}</h1>
130130
{{ content }}
131131
<nav role="navigation" aria-label="Post navigation">
132132
<hr>
133-
<a href="https://github.com/cb341/cb341.github.io/blob/main/{{ page.path }}" target="_blank" rel="noopener noreferrer">GitHub &nearr;</a>
133+
<a href="https://github.com/cb341/cb341.github.io/blob/main/{{ page.path }}" target="_blank" rel="noopener noreferrer">GitHub</a>
134134
{%- if page.date %}
135135
{% if page.previous %}
136-
| <a href="{{ page.previous.url }}">&larr; {{ page.previous.title }}</a>
136+
| <a href="{{ page.previous.url }}">< {{ page.previous.title }}</a>
137137
{% endif %}
138138
{% if page.next %}
139-
| <a href="{{ page.next.url }}">{{ page.next.title }} &rarr;</a>
139+
| <a href="{{ page.next.url }}">{{ page.next.title }} ></a>
140140
{% endif %}
141141
{%- endif -%}
142142
</nav>
143143
</main>
144144

145145
<footer role="contentinfo">
146146
<hr>
147-
<p><small>&copy; {{ "now" | date: "%Y" }} cb341. Licensed under <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noopener noreferrer">CC BY 4.0</a>.</small></p>
147+
<p><small>(c) {{ "now" | date: "%Y" }} cb341. Licensed under <a href="https://creativecommons.org/licenses/by/4.0/" target="_blank" rel="noopener noreferrer">CC BY 4.0</a>.</small></p>
148148
<a href="https://discord.com/users/456151064484249612" target="_blank" rel="noopener noreferrer">Discord</a>
149149
|
150150
<a href="https://mastodon.social/deck/@cb341" target="_blank" rel="noopener noreferrer">Mastodon</a>

_posts/2022-07-01-post-1.md

Lines changed: 0 additions & 145 deletions
This file was deleted.

_posts/2024-03-07-bevy-multiplayer.md

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -164,17 +164,18 @@ I separated the ECS components into specific modules to structure the Bevy proje
164164

165165
```
166166
src
167-
├── client
168-
│ ├── components.rs
169-
│ ├── events.rs
170-
│ ├── main.rs
171-
│ ├── resources.rs
172-
│ └── systems.rs
173-
├── lib.rs
174-
└── server
175-
├── main.rs
176-
├── resources.rs
177-
└── systems.rs
167+
src/
168+
client/
169+
components.rs
170+
events.rs
171+
main.rs
172+
resources.rs
173+
systems.rs
174+
lib.rs
175+
server/
176+
main.rs
177+
resources.rs
178+
systems.rs
178179
```
179180

180181
Defining various entry points is as simple as adding this to the `Cargo.toml` file:

_posts/2024-08-03-hotwire-outside-rails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ This method of HTML updates stands out for its transparency and simplicity. Firs
181181

182182
Before introducing turbo, we added a simple event listener to reset the Form after the data has been sent to the server. We now need to bring the functionality back, but without reusing the old code. We could use a turbo-stream to reset the form or even a turbo-frame, but rather than using that, I decided to use another library of the Hotwire framework, namely Stimulus:
183183

184-
> Stimulus is a JavaScript framework with modest ambitions. It doesn't seek to take over your entire front-endin fact, it's not concerned with rendering HTML at all. Instead, it's designed to augment your HTML with just enough behavior to make it shine.
184+
> Stimulus is a JavaScript framework with modest ambitions. It doesn't seek to take over your entire front-end -- in fact, it's not concerned with rendering HTML at all. Instead, it's designed to augment your HTML with just enough behavior to make it shine.
185185
>
186186
> [https://stimulus.hotwired.dev/](https://stimulus.hotwired.dev/ "https://stimulus.hotwired.dev/")
187187

_posts/2025-08-08-local-zsh.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ Let each project define its own aliases and functions in a small `local_zsh` fil
2424
Example structure:
2525

2626
```tree
27-
├── project_1
28-
│ └── local_zsh
29-
└── project_2
30-
└── local_zsh
27+
project_1/
28+
local_zsh
29+
project_2/
30+
local_zsh
3131
```
3232

3333
In your `.zshrc`:

_posts/2025-10-25-editor-journey.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,6 @@ It is more about shaping than building line by line. It gives me a lot of flexib
4747

4848
Agents are great when they work. They produce code very quickly, but debugging can be quite a nightmare. The other day I spent time debugging an ERB file that was causing the linter to fail, only to realize the agent had used Windows line endings for some reason.
4949

50-
I am constantly catching agents silently ignoring errors, adding `rescue nil` statements, removing unit tests after they have been failing for too long, and straight up LYING about what they have done. I also hate the marketing jargon and the never ending "You're absolutely correct".
50+
I am constantly catching agents silently ignoring errors, adding `rescue nil` statements, removing unit tests after they have been failing for too long, and straight up LYING about what they have done. I also hate the marketing jargon and the never ending "You're absolutely correct".
5151

5252
I do not really like AI, but I do not want to fall behind the competition either. I want to learn the boundaries of what AI can and cannot do. I do not want to run on autopilot, blindly accepting all suggestions and producing functional but not craftsmanlike, mediocre software. I want to build good software, have fun doing it, and actually understand what I am building. I am making many mistakes and I hope that I'll learn from them eventually, Simon.

bin/check_unicode

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
set -e
3+
4+
# Check for non-ASCII characters in markdown and html source files.
5+
6+
if rg --glob "*.md" --glob "*.html" --ignore-file=<(echo "_site\n.git") '[^\x00-\x7F]' .; then
7+
echo "Non-ASCII characters found (see above)."
8+
exit 1
9+
fi
10+
11+
echo "No non-ASCII characters found."

blog/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ <h3><a href="{{ post.url }}">{{ post.title }}</a></h3>
1313
<div>
1414
<em><time datetime="{{ post.date | date_to_xmlschema }}">{{ post.date | date: site.date_format }}</time></em>
1515
{%- if post.tags %}
16-
&mdash;
16+
--
1717
{%- for tag in post.tags %}
1818
<a href="/blog/tags/#{{ tag }}">{{ tag }}</a>{%- unless forloop.last %}, {%- endunless %}
1919
{%- endfor %}

0 commit comments

Comments
 (0)