Skip to content

Commit d146a9f

Browse files
committed
put post live
1 parent badf2e4 commit d146a9f

9 files changed

Lines changed: 33 additions & 9 deletions

File tree

635 KB
Loading

content/blog/2026/04-17-ezlime-link-shortener-in-rust/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@ title = "Building ezli.me, a link shortener in Rust"
33
date = 2026-04-17
44
[extra]
55
tags = ["rust","web","infra"]
6-
hidden = true
76
custom_summary = "A small Rust link shortener with PostgreSQL, in-memory caching and batched click writes."
87
+++
98

9+
<img src="/blog/2026/04-17-ezlime-link-shortener-in-rust/ezlime-website.png" alt="ezlime website" class="inline-img" style="max-width: 50%"/>
10+
1011
In this short post we introduce [ezlime](https://github.com/rustunit/ezlime), the small Rust service behind [ezli.me](https://ezli.me).
1112

1213
# Why we built this
635 KB
Loading

docs/blog/2026/04-17-ezlime-link-shortener-in-rust/index.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,12 @@
2727
<div id="blogpage">
2828
<div class="date">2026-04-17</div>
2929

30-
<div class="hidden">hidden</div>
31-
3230
<h1 class="title">
3331
Building ezli.me, a link shortener in Rust
3432
</h1>
3533
<div class="content">
36-
<p>In this short post we introduce <a rel="external" href="https://github.com/rustunit/ezlime">ezlime</a>, the small Rust service behind <a rel="external" href="https://ezli.me">ezli.me</a>.</p>
34+
<img src="/blog/2026/04-17-ezlime-link-shortener-in-rust/ezlime-website.png" alt="ezlime website" class="inline-img" style="max-width: 50%"/>
35+
<p>In this short post we introduce <a rel="external" href="https://github.com/rustunit/ezlime">ezlime</a>, the small Rust service behind <a rel="external" href="https://ezli.me">ezli.me</a>.</p>
3736
<h1 id="why-we-built-this">Why we built this</h1>
3837
<p>We built it for a pretty boring reason. On <a rel="external" href="https://www.live-ask.com">Live-Ask.com</a> we used <a rel="external" href="https://tinyurl.com">TinyURL</a> to shorten event links, and after they tightened their free tier we were about to outgrow it.</p>
3938
<p>Paying for another SaaS plan would have solved that. But we already run a small K3s cluster with spare capacity, so at that point the question became: how much software do we actually need to redirect a URL?</p>

docs/blog/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,25 @@ <h1>Blog</h1>
3030

3131

3232

33+
<div class="post">
34+
<div class="date">2026-04-17</div>
35+
<a href="https://rustunit.com/blog/2026/04-17-ezlime-link-shortener-in-rust/">
36+
<div class="title">Building ezli.me, a link shortener in Rust</div>
37+
</a>
38+
<div class="tags">
39+
40+
<div class="tag">rust</div>
41+
42+
<div class="tag">web</div>
43+
44+
<div class="tag">infra</div>
45+
46+
</div>
47+
<div class="summary">A small Rust link shortener with PostgreSQL, in-memory caching and batched click writes.</div>
48+
<hr />
49+
</div>
50+
51+
3352

3453
<div class="post">
3554
<div class="date">2026-03-30</div>

docs/style.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
serve:
3-
zola serve
3+
ZOLA_SERVE=1 zola serve
44

55
build:
66
rm -rf docs/ | true

sass/_blog_page.scss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
margin-top: 20px;
33

44
code {
5-
color: #c4c4c4;
5+
color: #b5b5b5;
66
font-weight: bold;
7-
font-size: 12px;
7+
font-size: 14px;
88

99
span {
1010
font-weight: normal;
@@ -111,5 +111,9 @@
111111
border-radius: 15px;
112112
box-shadow: 2px 2px 10px #0000008f;
113113
}
114+
115+
pre {
116+
border-radius: 15px;
117+
}
114118
}
115119
}

templates/blog.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<div id="blog">
55
<h1>Blog</h1>
66
<div class="posts">
7+
{% set show_hidden = get_env(name="ZOLA_SERVE", default="") == "1" %}
78
{% for page in section.pages %}
8-
{% if not page.extra.hidden %}
9+
{% if show_hidden or not page.extra.hidden %}
910
<div class="post">
1011
<div class="date">{{ page.date }}</div>
1112
<a href="{{ page.permalink | safe }}">

0 commit comments

Comments
 (0)