aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2021-04-25 18:42:59 -0400
committerGitHub <noreply@github.com>2021-04-25 18:42:59 -0400
commitb7226624b8a3f318199581306c1e785e16c4d5e9 (patch)
treebaf19beeb6029404ff4f8b9e6f1f68ddec7313ab /templates
parent2c5de872de9cc60980387f42ee51ea2b18f5bc79 (diff)
downloadxesite-b7226624b8a3f318199581306c1e785e16c4d5e9.tar.xz
xesite-b7226624b8a3f318199581306c1e785e16c4d5e9.zip
blog: add morph tutorial (#363)
* blog: add morph tutorial Signed-off-by: Christine Dodrill <me@christine.website> * typos Signed-off-by: Christine Dodrill <me@christine.website>
Diffstat (limited to 'templates')
-rw-r--r--templates/mara.rs.html15
1 files changed, 2 insertions, 13 deletions
diff --git a/templates/mara.rs.html b/templates/mara.rs.html
index f892c1e..ad86b1c 100644
--- a/templates/mara.rs.html
+++ b/templates/mara.rs.html
@@ -1,22 +1,11 @@
-@(mood: &str, character: &str, message: Html<String>, smol: bool)
+@(mood: &str, character: &str, message: Html<String>)
<div class="conversation">
- <div class="conversation-picture @if smol { conversation-smol }">
+ <div class="conversation-picture conversation-smol">
<picture>
<source srcset="https://cdn.christine.website/file/christine-static/stickers/@character.to_lowercase()/@(mood).avif" type="image/avif">
<source srcset="https://cdn.christine.website/file/christine-static/stickers/@character.to_lowercase()/@(mood).webp" type="image/webp">
<img src="https://cdn.christine.website/file/christine-static/stickers/@character.to_lowercase()/@(mood).png" alt="@character is @mood">
</picture>
</div>
- @if smol {
<div class="conversation-chat">&lt;<b>@character</b>&gt; @message</div>
- } else {
- <div>
- <p>
- <b>@character</b>
- </p>
- <blockquote>
- @message
- </blockquote>
- </div>
- }
</div>