aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorChristine Dodrill <me@christine.website>2021-04-01 22:30:45 -0400
committerGitHub <noreply@github.com>2021-04-01 22:30:45 -0400
commit8383914aa5abc232fa56ce437e777d5024eb63e1 (patch)
treebedceacc5a8e1260e73d251a84d44838a3e25acb /templates
parent0360c87582e2e5025c06fec2431b867992dc71b0 (diff)
downloadxesite-8383914aa5abc232fa56ce437e777d5024eb63e1.tar.xz
xesite-8383914aa5abc232fa56ce437e777d5024eb63e1.zip
Unix domain socket http server (#352)
* enable ipv6 support Signed-off-by: Christine Dodrill <me@christine.website> * enable unix socket powers Signed-off-by: Christine Dodrill <me@christine.website> * unix domain socket post Signed-off-by: Christine Dodrill <me@christine.website> * bump rust Signed-off-by: Christine Dodrill <me@christine.website>
Diffstat (limited to 'templates')
-rw-r--r--templates/blogpost.rs.html2
-rw-r--r--templates/mara.rs.html8
2 files changed, 8 insertions, 2 deletions
diff --git a/templates/blogpost.rs.html b/templates/blogpost.rs.html
index 029192e..6cb6da9 100644
--- a/templates/blogpost.rs.html
+++ b/templates/blogpost.rs.html
@@ -84,6 +84,8 @@
<p>The art for Mara was drawn by <a href="https://selic.re/">Selicre</a>.</p>
+<p>The art for Cadey was drawn by <a href="https://artzorastudios.weebly.com/">ArtZora Studios</a>.</p>
+
<script>
// The actual function. Set this as an onclick function for your "Share on Mastodon" button
function share_on_mastodon() @{
diff --git a/templates/mara.rs.html b/templates/mara.rs.html
index 3161cd6..06d977e 100644
--- a/templates/mara.rs.html
+++ b/templates/mara.rs.html
@@ -1,12 +1,15 @@
-@(mood: &str, character: &str, message: Html<String>)
+@(mood: &str, character: &str, message: Html<String>, smol: bool)
<div class="conversation">
- <div class="conversation-picture">
+ <div class="conversation-picture @if smol { 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"><b>&lt;@character&gt;</b> @message</div>
+ } else {
<div>
<p>
<b>@character</b>
@@ -15,4 +18,5 @@
@message
</blockquote>
</div>
+ }
</div>