Skip to content

Commit d36ffc3

Browse files
committed
Fix "warning" callout
1 parent 6c202f9 commit d36ffc3

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

content/posts/2025-04-28-async-tests-in-elixir/index.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This post is about beautiful, elegant, robust asynchronous tests in Elixir. It's
1616

1717
![Cover image of a bench with very geometric lines.](cover-image.jpg)
1818

19-
{{ unsplash_credit(name="鱼 鱼", link="https://unsplash.com/photos/a-wooden-room-with-a-bench-in-the-middle-of-it-klE0kbCfrwk?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash") }}
19+
{{ unsplash_credit(name="鱼 鱼", link="<https://unsplash.com/photos/a-wooden-room-with-a-bench-in-the-middle-of-it-klE0kbCfrwk?utm_content=creditCopyText&utm_medium=referral&utm_source=unsplash>") }}
2020

2121

2222
## When Is It Hard to Parallelize Tests?
@@ -43,8 +43,9 @@ test "writes output to a file" do
4343
end
4444
```
4545

46-
> [!warning] Don't do this at home
47-
> Use ExUnit's `tmp_dir` tag. It cleans up for you and it's nicer and it protects kittens (probably).
46+
{% callout(type="warning", title="Don't Do This at Home") %}
47+
Use ExUnit's `tmp_dir` tag. It cleans up for you and it's nicer and it protects kittens (probably).
48+
{% end %}
4849

4950
Cool, you can run many of these tests in parallel and they won't step on each other's toes, even though the system under test is all about the side effect.
5051

sass/_variables.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ $handwrittenFontStack: "Andrea", sans-serif;
1414
$siteBackground: #f4f5f0;
1515
$text: #212424;
1616
$callout-background-info: rgba(#81d2d4, 0.3);
17+
$callout-background-warning: rgba(#f4d482, 0.3);
1718

1819
--color-site-background: #{$siteBackground};
1920
--color-site-background-accented: #{darken($siteBackground, 5)};
@@ -27,6 +28,9 @@ $handwrittenFontStack: "Andrea", sans-serif;
2728

2829
--color-callout-info-background: #{$callout-background-info};
2930
--color-callout-info-background-title: #{darken($callout-background-info, 20)};
31+
32+
--color-callout-warning-background: #{$callout-background-warning};
33+
--color-callout-warning-background-title: #{darken($callout-background-warning, 20)};
3034
}
3135

3236
@include darkMode {

sass/style.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,14 @@ aside.callout {
336336
background-color: var(--color-callout-info-background-title);
337337
}
338338
}
339+
340+
&.callout-warning {
341+
background-color: var(--color-callout-warning-background);
342+
343+
h5 {
344+
background-color: var(--color-callout-warning-background-title);
345+
}
346+
}
339347
}
340348

341349
@import "components/header";

0 commit comments

Comments
 (0)