Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit be0d5e2

Browse files
committed
Tweak embed information
1 parent dd18d6c commit be0d5e2

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

src/endpoints/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ impl OEmbed {
156156
OEmbed {
157157
version: "1.0",
158158
_type: "photo",
159-
title: title + " | AxolotlClient",
159+
title,
160160
url,
161161
width: png.width,
162162
height: png.height,

src/endpoints/image_view.html

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
<head>
44
<title>{filename} | AxolotlClient</title>
55
<meta property="og:type" content="website" />
6-
<meta property="og:title" content="{filename} | AxolotlClient" />
6+
<meta property="og:title" content="{filename}" />
77
<meta property="og:image" content="{image_url}/raw" />
88
<meta property="og:locale" content="en_US" />
99
<meta property="og:url" content="{image_url}/view" />
1010
<meta
1111
property="og:description"
12-
content="{image_name} shared with AxolotlClient"
12+
content="Shared by {username}"
1313
/>
1414
<meta property="og:image:height" content="{image_height}" />
1515
<meta property="og:image:width" content="{image_width}" />
@@ -18,7 +18,7 @@
1818
<meta name="twitter:img:src" content="{image_url}/raw" />
1919
<meta
2020
name="twitter:img:alt"
21-
content="{image_name} shared with AxolotlClient"
21+
content="Shared by {username}"
2222
/>
2323
<meta name="twitter:image:width" content="{image_width}" />
2424
<meta name="twitter:image:height" content="{image_height}" />
@@ -56,10 +56,10 @@
5656
--navbar-bg: #f5f5f75e;
5757
--navbar-hover-bg: #00000090;
5858
--navbar-hover-text: #fff;
59-
--about-text: #2a2a2a;
59+
--about-text: #000;
6060
--switcher-color: invert(6%) sepia(1%) saturate(751%) hue-rotate(314deg)
6161
brightness(101%) contrast(71%);
62-
--bg-brightness: 1;
62+
--bg-brightness: 1.5;
6363
}
6464
:root {
6565
--default-transition: color 0.3s ease-in-out,
@@ -127,6 +127,9 @@
127127
text-align: center;
128128
color: var(--about-text);
129129
}
130+
:root[data-theme="light"] .title {
131+
text-shadow: #fff -3px -3px .75em, #fff 3px 3px .75em;
132+
}
130133
.content {
131134
height: calc(100vh - 170px);
132135
max-width: 100%;
@@ -181,7 +184,7 @@
181184
<div class="navbar-right">
182185
<img
183186
src="https://axolotlclient.com/images/moon.svg"
184-
alt=""
187+
alt="Switch Theme"
185188
id="switcher"
186189
/>
187190
</div>

0 commit comments

Comments
 (0)