Add Bluesky and Mastadon accounts, and add some Mastodon metadata to header

This commit is contained in:
Alex Cabal 2024-11-18 13:40:21 -06:00
parent 05ac7884e9
commit 5c7a924be2
8 changed files with 69 additions and 76 deletions

View file

@ -2,17 +2,27 @@
<ul class="social-media"> <ul class="social-media">
<li> <li>
<p> <p>
<a href="https://x.com/standardebooks">X</a> <a href="https://x.com/standardebooks" rel="me">X</a>
</p> </p>
</li> </li>
<li> <li>
<p> <p>
<a href="https://www.facebook.com/standardebooks/">Facebook</a> <a href="https://www.facebook.com/standardebooks/" rel="me">Facebook</a>
</p> </p>
</li> </li>
<li> <li>
<p> <p>
<a href="https://www.instagram.com/standardebooks/">Instagram</a> <a href="https://www.instagram.com/standardebooks/" rel="me">Instagram</a>
</p>
</li>
<li>
<p>
<a href="https://mastodon.social/@standardebooks" rel="me">Mastadon</a>
</p>
</li>
<li>
<p>
<a href="https://bsky.app/profile/standardebooks.bsky.social" rel="me">Bluesky</a>
</p> </p>
</li> </li>
</ul> </ul>
@ -48,7 +58,9 @@
</ul> </ul>
<p>Content produced by or for Standard Ebooks L<sup>3</sup>C is dedicated to the <a href="https://en.wikipedia.org/wiki/Public_domain">public domain</a> via the <a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0 Universal Public Domain Dedication</a>.</p> <p>Content produced by or for Standard Ebooks L<sup>3</sup>C is dedicated to the <a href="https://en.wikipedia.org/wiki/Public_domain">public domain</a> via the <a href="https://creativecommons.org/publicdomain/zero/1.0/">CC0 1.0 Universal Public Domain Dedication</a>.</p>
<p>Content not produced by or for Standard Ebooks L<sup>3</sup>C but displayed on this website may be subject to copyright.</p> <p>Content not produced by or for Standard Ebooks L<sup>3</sup>C but displayed on this website may be subject to copyright.</p>
<p><a href="/">Standard Ebooks</a></p> <p>
<a href="/">Standard Ebooks</a>
</p>
</footer> </footer>
</body> </body>
</html> </html>

View file

@ -33,7 +33,9 @@ if(!$isXslt){
<head prefix="twitter: https://twitter.com/ schema: http://schema.org/"><? /* The `og` RDFa prefix is part of the RDFa spec */ ?> <head prefix="twitter: https://twitter.com/ schema: http://schema.org/"><? /* The `og` RDFa prefix is part of the RDFa spec */ ?>
<meta charset="utf-8"/> <meta charset="utf-8"/>
<title><? if($title != ''){ ?><?= Formatter::EscapeHtml($title) ?> - <? } ?>Standard Ebooks: Free and liberated ebooks, carefully produced for the true book lover.</title> <title><? if($title != ''){ ?><?= Formatter::EscapeHtml($title) ?> - <? } ?>Standard Ebooks: Free and liberated ebooks, carefully produced for the true book lover.</title>
<? if($description != ''){ ?><meta content="<?= Formatter::EscapeHtml($description) ?>" name="description"/><? } ?> <? if($description != ''){ ?>
<meta content="<?= Formatter::EscapeHtml($description) ?>" name="description"/>
<? } ?>
<meta content="width=device-width, initial-scale=1" name="viewport"/> <meta content="width=device-width, initial-scale=1" name="viewport"/>
<link rel="preload" as="font" href="/fonts/crimson-pro.woff2" type="font/woff2" crossorigin="anonymous"/> <? /* Fonts require the crossorigin attribute */ ?> <link rel="preload" as="font" href="/fonts/crimson-pro.woff2" type="font/woff2" crossorigin="anonymous"/> <? /* Fonts require the crossorigin attribute */ ?>
<link rel="preload" as="font" href="/fonts/league-spartan-bold.woff2" type="font/woff2" crossorigin="anonymous"/> <link rel="preload" as="font" href="/fonts/league-spartan-bold.woff2" type="font/woff2" crossorigin="anonymous"/>
@ -86,6 +88,7 @@ if(!$isXslt){
<meta content="summary_large_image" name="twitter:card"/> <meta content="summary_large_image" name="twitter:card"/>
<meta content="@standardebooks" name="twitter:site"/> <meta content="@standardebooks" name="twitter:site"/>
<meta content="@standardebooks" name="twitter:creator"/> <meta content="@standardebooks" name="twitter:creator"/>
<meta content="@standardebooks@mastodon.social" name="fediverse:creator"/>
<? } ?> <? } ?>
<? if($downloadUrl !== null){ ?> <? if($downloadUrl !== null){ ?>
<meta http-equiv="refresh" content="0; url=<?= Formatter::EscapeHtml($downloadUrl) ?>" /> <meta http-equiv="refresh" content="0; url=<?= Formatter::EscapeHtml($downloadUrl) ?>" />

View file

@ -1399,6 +1399,14 @@ footer ul.social-media a[href^="https://www.instagram.com"]::before{
background-image: url("/images/instagram.svg"); background-image: url("/images/instagram.svg");
} }
footer ul.social-media a[href^="https://bsky.app"]::before{
background-image: url("/images/bluesky.svg");
}
footer ul.social-media a[href^="https://mastodon.social"]::before{
background-image: url("/images/mastodon.svg");
}
footer ul.social-media a:hover::before{ footer ul.social-media a:hover::before{
/* This filter changes a black background to #62bfa3, which is var(--button-highlight) */ /* This filter changes a black background to #62bfa3, which is var(--button-highlight) */
filter: invert(69%) sepia(35%) saturate(459%) hue-rotate(111deg) brightness(92%) contrast(87%); filter: invert(69%) sepia(35%) saturate(459%) hue-rotate(111deg) brightness(92%) contrast(87%);

4
www/images/bluesky.svg Normal file
View file

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" height="99.44px" version="1.1" width="99.441px" viewBox="0 0 99.441 99.44">
<path d="M 10.740234 0 C 4.8082344 0 0 4.8092344 0 10.740234 L 0 88.701172 C 0 94.631172 4.8092344 99.439453 10.740234 99.439453 L 88.699219 99.439453 C 94.631219 99.439453 99.439453 94.630172 99.439453 88.701172 L 99.439453 10.740234 C 99.440453 4.8092344 94.633172 -1.1842379e-15 88.701172 0 L 10.740234 0 z M 19.958984 18.720703 C 23.046691 18.767384 26.86297 20.705986 29.775391 22.892578 C 37.848447 28.953315 46.532568 41.243081 49.720703 47.837891 C 52.909081 41.243567 61.592723 28.9532 69.666016 22.892578 C 75.491108 18.519393 84.927734 15.137112 84.927734 25.904297 C 84.927734 28.05465 83.695759 43.967251 82.972656 46.550781 C 80.459184 55.532926 71.29945 57.824085 63.152344 56.4375 C 77.39334 58.861265 81.017166 66.88959 73.193359 74.917969 C 58.334403 90.165424 51.835617 71.092304 50.169922 66.205078 C 49.864709 65.309133 49.7228 64.8897 49.720703 65.246094 C 49.718103 64.889682 49.574754 65.309159 49.269531 66.205078 C 47.604561 71.092304 41.107853 90.165903 26.248047 74.917969 C 18.424123 66.88959 22.045867 58.860779 36.287109 56.4375 C 28.139745 57.824085 18.981864 55.532919 16.46875 46.550781 C 15.745633 43.967003 14.511719 28.054411 14.511719 25.904297 C 14.511719 20.520704 16.871278 18.674022 19.958984 18.720703 z"/>
</svg>

After

Width:  |  Height:  |  Size: 1.4 KiB

View file

@ -1,44 +1,4 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) --> <svg xmlns="http://www.w3.org/2000/svg" height="99.44px" version="1.1" width="99.441px" viewBox="0 0 99.441 99.44">
<path d="M88.7,0H10.739C4.808,0,0.001,4.809,0.001,10.74V88.7c0,5.932,4.807,10.74,10.738,10.74H88.7 c5.934,0,10.74-4.809,10.74-10.74V10.74C99.44,4.809,94.634,0,88.7,0z M65.394,53.129h-11.25v30.105H42.683V53.129h-7.961v-10.84 h7.961c0,0,0-4.441,0-9.258c0-7.276,4.701-13.956,15.537-13.956c4.387,0,7.631,0.421,7.631,0.421l-0.256,10.122 c0,0-3.309-0.032-6.918-0.032c-3.908,0-4.533,1.801-4.533,4.789c0,0.369,0,0.5,0,0.507c0,0.838,0,2.873,0,7.407h11.762 L65.394,53.129z"/>
<svg
version="1.1"
id="Layer_1"
x="0px"
y="0px"
width="99.441px"
height="99.44px"
viewBox="0 0 99.441 99.44"
enable-background="new 0 0 99.441 99.44"
xml:space="preserve"
sodipodi:docname="facebook.svg"
inkscape:version="1.1.1 (3bf5ae0, 2021-09-20)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg"><defs
id="defs9" /><sodipodi:namedview
id="namedview7"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:pageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
showgrid="false"
inkscape:zoom="7.2304906"
inkscape:cx="49.720001"
inkscape:cy="49.512546"
inkscape:window-width="2560"
inkscape:window-height="1355"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="Layer_1" />
<path
fill="#3D5B99"
d="M88.7,0H10.739C4.808,0,0.001,4.809,0.001,10.74V88.7c0,5.932,4.807,10.74,10.738,10.74H88.7 c5.934,0,10.74-4.809,10.74-10.74V10.74C99.44,4.809,94.634,0,88.7,0z M65.394,53.129h-11.25v30.105H42.683V53.129h-7.961v-10.84 h7.961c0,0,0-4.441,0-9.258c0-7.276,4.701-13.956,15.537-13.956c4.387,0,7.631,0.421,7.631,0.421l-0.256,10.122 c0,0-3.309-0.032-6.918-0.032c-3.908,0-4.533,1.801-4.533,4.789c0,0.369,0,0.5,0,0.507c0,0.838,0,2.873,0,7.407h11.762 L65.394,53.129z"
id="path4"
style="fill:#000000" />
</svg> </svg>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 633 B

Before After
Before After

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" height="99.44px" version="1.1" width="99.441px" viewBox="0 0 99.441 99.44"> <svg xmlns="http://www.w3.org/2000/svg" height="99.44px" version="1.1" width="99.441px" viewBox="0 0 99.441 99.44">
<path d="M69.708,27.509h-6.66c-1.229,0-2.221,0.995-2.221,2.221v6.664c0,1.225,0.992,2.221,2.221,2.221h6.66 c1.229,0,2.223-0.996,2.223-2.221V29.73C71.931,28.504,70.937,27.509,69.708,27.509z"/> <path d="M69.708,27.509h-6.66c-1.229,0-2.221,0.995-2.221,2.221v6.664c0,1.225,0.992,2.221,2.221,2.221h6.66 c1.229,0,2.223-0.996,2.223-2.221V29.73C71.931,28.504,70.937,27.509,69.708,27.509z"/>
<path d="M67.487,49.719c0,9.813-7.953,17.766-17.766,17.766s-17.767-7.952-17.767-17.766 c0-1.536,0.217-3.021,0.584-4.444h-5.027v24.433c0,1.225,0.993,2.219,2.223,2.219h39.974c1.229,0,2.223-0.994,2.223-2.219V45.275 h-5.025C67.271,46.698,67.487,48.183,67.487,49.719z"/> <path d="M67.487,49.719c0,9.813-7.953,17.766-17.766,17.766s-17.767-7.952-17.767-17.766 c0-1.536,0.217-3.021,0.584-4.444h-5.027v24.433c0,1.225,0.993,2.219,2.223,2.219h39.974c1.229,0,2.223-0.994,2.223-2.219V45.275 h-5.025C67.271,46.698,67.487,48.183,67.487,49.719z"/>
<path d="M88.701,0h-77.96C4.809,0,0,4.809,0,10.74v77.962c0,5.93,4.809,10.738,10.74,10.738h77.96 c5.932,0,10.74-4.809,10.74-10.738V10.74C99.441,4.809,94.633,0,88.701,0z M78.593,71.926c0,3.682-2.982,6.666-6.662,6.666H27.511 c-3.68,0-6.662-2.984-6.662-6.666V27.509c0-3.68,2.982-6.661,6.662-6.661h44.419c3.68,0,6.662,2.981,6.662,6.661V71.926z"/> <path d="M88.701,0h-77.96C4.809,0,0,4.809,0,10.74v77.962c0,5.93,4.809,10.738,10.74,10.738h77.96 c5.932,0,10.74-4.809,10.74-10.738V10.74C99.441,4.809,94.633,0,88.701,0z M78.593,71.926c0,3.682-2.982,6.666-6.662,6.666H27.511 c-3.68,0-6.662-2.984-6.662-6.666V27.509c0-3.68,2.982-6.661,6.662-6.661h44.419c3.68,0,6.662,2.981,6.662,6.661V71.926z"/>

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1,020 B

Before After
Before After

6
www/images/mastodon.svg Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" height="99.44px" id="svg1" version="1.1" width="99.441px" xml:space="preserve" viewBox="0 0 99.441 99.44">
<defs id="defs1"/>
<path d="M 14.207031 0 C 6.3716913 0 2.3684758e-15 6.3697395 0 14.205078 L 0 85.234375 C 0 93.069715 6.3716912 99.439453 14.207031 99.439453 L 85.234375 99.439453 C 93.069715 99.439453 99.441406 93.069715 99.441406 85.234375 L 99.441406 14.205078 C 99.441406 6.3697395 93.069715 0 85.234375 0 L 14.207031 0 z M 49.625 17.220703 L 49.828125 17.220703 C 58.138039 17.288642 66.136901 18.186795 70.794922 20.326172 C 70.794922 20.326172 80.033203 24.460063 80.033203 38.560547 C 80.033203 38.560547 80.150399 48.964609 78.746094 56.1875 C 77.854833 60.772679 70.76341 65.789211 62.619141 66.761719 C 58.372256 67.268459 54.189225 67.735767 49.730469 67.53125 C 42.43859 67.197158 36.685547 65.791016 36.685547 65.791016 C 36.685547 66.500873 36.728856 67.176481 36.816406 67.808594 C 37.7644 75.004869 43.953142 75.435704 49.814453 75.636719 C 55.730395 75.839135 60.998047 74.177734 60.998047 74.177734 L 61.240234 79.525391 C 61.240234 79.525391 57.101845 81.747566 49.730469 82.15625 C 45.66569 82.379678 40.618705 82.053989 34.740234 80.498047 C 21.990825 77.123512 19.798383 63.533646 19.462891 49.744141 C 19.360632 45.649943 19.423828 41.789398 19.423828 38.560547 C 19.423828 24.460063 28.662109 20.326172 28.662109 20.326172 C 33.32048 18.186795 41.315085 17.288642 49.625 17.220703 z M 40.220703 28.238281 C 37.228938 28.238281 34.818821 29.288368 32.978516 31.339844 C 31.193892 33.39132 30.304688 36.164896 30.304688 39.654297 L 30.304688 56.728516 L 37.068359 56.728516 L 37.068359 40.15625 C 37.068359 36.662997 38.53858 34.890625 41.478516 34.890625 C 44.729079 34.890625 46.359375 36.993359 46.359375 41.152344 L 46.359375 50.222656 L 53.082031 50.222656 L 53.082031 41.152344 C 53.082031 36.993359 54.712327 34.890625 57.962891 34.890625 C 60.902826 34.890625 62.373047 36.662997 62.373047 40.15625 L 62.373047 56.728516 L 69.136719 56.728516 L 69.136719 39.654297 C 69.136719 36.164896 68.247164 33.39132 66.462891 31.339844 C 64.622235 29.288368 62.212118 28.238281 59.220703 28.238281 C 55.758968 28.238281 53.139043 29.56734 51.40625 32.228516 L 49.720703 35.052734 L 48.035156 32.228516 C 46.302012 29.56734 43.682088 28.238281 40.220703 28.238281 z" id="path1"/>
<g id="g1" transform="matrix(0.28016062,0,0,0.28016062,19.405103,17.220002)"/>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

View file

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" height="99.44px" version="1.1" width="99.441px" viewBox="0 0 99.441 99.44"> <svg xmlns="http://www.w3.org/2000/svg" height="99.44px" version="1.1" width="99.441px" viewBox="0 0 99.441 99.44">
<path d="M 14.20621,-2e-6 C 6.37087,-2e-6 5e-4,6.3703734 5e-4,14.205712 v 71.02857 c 0,7.83534 6.37037,14.205722 14.20571,14.205722 h 71.028576 c 7.83534,0 14.205711,-6.370382 14.205711,-14.205722 V 14.205712 C 99.440497,6.3703734 93.070126,-2e-6 85.234786,-2e-6 Z m 65.945596,18.645 -23.0399,26.324964 27.10184,35.82503 h -21.21978 l -16.60293,-21.7303 -19.022346,21.7303 H 16.82539 L 41.463426,52.627732 15.47141,18.644998 h 21.752496 l 15.02698,19.865804 17.35761,-19.865804 z M 71.761556,74.491212 34.049816,24.615839 H 27.76823 l 38.133456,49.875373 h 5.83767 z"/> <path d="M 14.20621,-2e-6 C 6.37087,-2e-6 5e-4,6.3703734 5e-4,14.205712 v 71.02857 c 0,7.83534 6.37037,14.205722 14.20571,14.205722 h 71.028576 c 7.83534,0 14.205711,-6.370382 14.205711,-14.205722 V 14.205712 C 99.440497,6.3703734 93.070126,-2e-6 85.234786,-2e-6 Z m 65.945596,18.645 -23.0399,26.324964 27.10184,35.82503 h -21.21978 l -16.60293,-21.7303 -19.022346,21.7303 H 16.82539 L 41.463426,52.627732 15.47141,18.644998 h 21.752496 l 15.02698,19.865804 17.35761,-19.865804 z M 71.761556,74.491212 34.049816,24.615839 H 27.76823 l 38.133456,49.875373 h 5.83767 z"/>
</svg> </svg>

Before

Width:  |  Height:  |  Size: 772 B

After

Width:  |  Height:  |  Size: 733 B

Before After
Before After