Nav, CSS, Content(index): Add favicon, better homepage and nav title

Basically all the changes involving my profile pics

- Favicon: 32x32 2-colors version
  - Both SVG and PNG provided

- Nav home link: Now having the icon next to the name
  - Configurable in config.toml (see its comment)
  - For homepage: the home link is Site.title
  - For other pages: icon next to name

- Index page h1: No more big ugly pfp, now inline
  - Using shortcodes with corresponding partials ln'ed to them

- CSS for the nav thing
  - Right now when user hovers on the home link, the portion has a
    background color. I tried to not select it but apparently failed.

    Desired behaviour: it should only have the hover effect if the home
    link does not have the image (which is the case for all pages other
    than index page, as described in second list item above).

    Current behaviour: A useless CSS selector change that did not alter
    the site's behaviour in any way whatsoever. Don't mind me, I'm
    horrible at comitting things for this repo - I tend to like to make
    a lot of changes in one go and commit using `git apply -p`. I also
    litter a lot of comments in the CSS, which apparently increases the
    size of the inline <style> in every. single. HTML file generated.
    Literally.

    Most likely switching back to external stylesheet in the future to
    save some bytes in my overall website size.

- (Most likely the worst CSS addition I've every made): A blinking
  lower-block for the h1 on index page. Seriously? CSS Animations on a
  supposedly "simple" site like this??? Hopefully I would know better
  and remove it soon.
  - It's only animated for like 5 seconds. After that it is hidden
  - For text-based browsers it willbe static and forever there. This may
    be a problem because it looks like my name has a trailing
    underscore 🤦
  - It just looks wrong. I didn't have the typewriter animation for the
    h1 text though, so ugh.
This commit is contained in:
hedy 2022-05-16 20:16:48 +08:00
parent 03a8d8d38e
commit 06198fdc7d
Signed by: hedy
GPG Key ID: B51B5A8D1B176372
14 changed files with 76 additions and 15 deletions

BIN
assets/dotslash-ppyl-32.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

8
assets/dotslash-ppyl.svg Normal file
View File

@ -0,0 +1,8 @@
<svg width="220" height="220" viewBox="0 0 220 220" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2.5" y="2.5" width="215" height="215" rx="77.5" fill="#282A36" stroke="#44475A" stroke-width="5"/>
<ellipse cx="60" cy="147.5" rx="14" ry="13.5" fill="#F1FA8C"/>
<path d="M119.719 175.088L177.835 59.7405C177.835 59.7405 183.398 49.13 172.092 45.1336C160.785 41.1373 156.648 53.2038 156.648 53.2038L99.6852 165.652C99.6852 165.652 95.279 175.287 105.454 179.767C115.63 184.246 119.719 175.088 119.719 175.088Z" fill="#BD93F9"/>
<path d="M174.619 109.063L173.894 108.663C174.024 109.155 174.079 109.569 174.058 109.905C174.034 110.229 173.944 110.532 173.79 110.812C173.484 111.365 173.038 111.676 172.452 111.746C171.869 111.808 171.2 111.63 170.443 111.212L169.834 110.876C169.099 110.47 168.614 109.965 168.381 109.361C168.152 108.75 168.231 108.094 168.618 107.394C168.73 107.191 168.863 106.999 169.017 106.819C169.171 106.639 169.343 106.469 169.532 106.309L166.822 104.812L167.298 103.951L175.071 108.243L174.619 109.063ZM170.936 110.319C171.483 110.621 171.932 110.759 172.284 110.734C172.632 110.698 172.902 110.509 173.091 110.166C173.203 109.963 173.27 109.726 173.292 109.454C173.307 109.179 173.244 108.788 173.104 108.281L170.331 106.75C170.127 106.902 169.956 107.064 169.817 107.233C169.67 107.399 169.547 107.573 169.446 107.755C169.183 108.232 169.137 108.654 169.308 109.023C169.483 109.384 169.823 109.704 170.327 109.983L170.936 110.319ZM175.45 100.657L176.08 101.005C176.822 101.415 177.301 101.931 177.515 102.552C177.734 103.166 177.647 103.827 177.257 104.534C176.87 105.234 176.357 105.659 175.717 105.808C175.077 105.957 174.386 105.827 173.644 105.417L173.013 105.069C172.285 104.667 171.812 104.159 171.593 103.545C171.372 102.92 171.456 102.254 171.847 101.546C172.238 100.839 172.754 100.416 173.397 100.278C174.037 100.128 174.722 100.255 175.45 100.657ZM174.957 101.55C174.459 101.275 174.009 101.173 173.605 101.242C173.194 101.308 172.871 101.554 172.635 101.981C172.403 102.402 172.367 102.806 172.526 103.196C172.682 103.575 173.009 103.902 173.506 104.176L174.137 104.524C174.655 104.81 175.116 104.919 175.52 104.849C175.928 104.773 176.247 104.525 176.48 104.105C176.715 103.677 176.755 103.274 176.599 102.896C176.443 102.517 176.105 102.184 175.587 101.898L174.957 101.55ZM180.623 97.7429C180.603 98.2434 180.471 98.7142 180.227 99.1554C180.018 99.5335 179.777 99.7886 179.503 99.9206C179.233 100.046 178.943 100.082 178.634 100.03C178.328 99.971 178.018 99.8545 177.703 99.6804L174.867 98.1141L174.368 99.0175L173.611 98.5998L174.11 97.6964L172.661 96.8958L173.136 96.0345L174.586 96.835L175.526 95.1333L176.282 95.551L175.342 97.2527L178.147 98.8016C178.511 99.0028 178.796 99.0825 179.002 99.0408C179.205 98.9882 179.377 98.8323 179.521 98.5732C179.59 98.4472 179.648 98.3099 179.693 98.1614C179.736 98.002 179.763 97.8205 179.775 97.6168L180.623 97.7429Z" fill="#4A4D64"/>
<path d="M183.599 91.14C183.986 90.4397 183.941 89.9581 183.465 89.6951C183.262 89.5829 183.066 89.557 182.877 89.6173C182.688 89.6776 182.459 89.8526 182.189 90.1424L181.723 90.6389C181.382 91.0081 181.024 91.2262 180.649 91.2931C180.267 91.3563 179.894 91.2873 179.53 91.0862C179.264 90.9392 179.051 90.7443 178.893 90.5015C178.728 90.2548 178.647 89.9633 178.65 89.6268C178.653 89.2903 178.768 88.9155 178.996 88.5023C179.143 88.2362 179.324 87.984 179.538 87.7457C179.748 87.4965 180.003 87.267 180.302 87.0573L180.876 87.7307C180.362 88.1143 179.991 88.5126 179.763 88.9258C179.427 89.5351 179.486 89.9654 179.941 90.2168C180.116 90.3135 180.298 90.3406 180.486 90.2982C180.674 90.2557 180.891 90.1017 181.139 89.8361L181.605 89.3396C181.972 88.9393 182.342 88.7002 182.714 88.6223C183.086 88.5445 183.471 88.6158 183.87 88.8362C184.158 88.9948 184.385 89.2028 184.554 89.4604C184.719 89.7071 184.793 90.0037 184.775 90.3503C184.761 90.6899 184.629 91.0873 184.377 91.5425C184.211 91.8436 184.013 92.1273 183.784 92.3937C183.558 92.653 183.289 92.9015 182.974 93.1393L182.388 92.5137C182.673 92.2784 182.912 92.0536 183.103 91.8394C183.294 91.6253 183.46 91.3921 183.599 91.14ZM184.791 87.567L178.278 83.9702L178.754 83.1088L185.224 86.6824C185.413 86.7868 185.572 86.8381 185.701 86.8362C185.827 86.8234 185.941 86.726 186.041 86.5439L186.134 86.3759L186.922 86.811L186.788 87.0526C186.533 87.5148 186.233 87.7692 185.887 87.8159C185.541 87.8627 185.176 87.7797 184.791 87.567ZM189.739 81.7092C189.561 82.0313 189.345 82.2498 189.089 82.3647C188.838 82.4726 188.582 82.5051 188.323 82.4622C188.434 82.9717 188.476 83.4013 188.447 83.751C188.411 84.0969 188.316 84.4099 188.162 84.69C187.91 85.1452 187.578 85.4001 187.163 85.4548C186.749 85.5094 186.329 85.4188 185.902 85.1829C185.615 85.0243 185.388 84.8306 185.222 84.6018C185.056 84.373 184.979 84.0978 184.992 83.776C184.999 83.4504 185.12 83.0741 185.356 82.6469C185.46 82.4578 185.588 82.2589 185.74 82.0503C185.885 81.8378 186.038 81.6257 186.201 81.4139L185.497 81.0252C185.105 80.8087 184.791 80.7492 184.554 80.847C184.314 80.9338 184.103 81.1418 183.921 81.471C183.674 81.9192 183.52 82.4875 183.459 83.1762L182.594 83.0548C182.625 82.6514 182.683 82.2814 182.769 81.9447C182.854 81.6081 182.98 81.2892 183.146 80.988C183.417 80.4978 183.704 80.1676 184.009 79.9975C184.313 79.8273 184.625 79.7667 184.945 79.8156C185.265 79.8645 185.583 79.976 185.898 80.1501L188.146 81.3915C188.307 81.4805 188.461 81.5244 188.608 81.5232C188.748 81.5182 188.87 81.4212 188.975 81.2321L189.038 81.1165L189.826 81.5516L189.739 81.7092ZM186.361 84.3262C186.599 84.4577 186.823 84.508 187.032 84.4772C187.241 84.4464 187.403 84.3259 187.519 84.1158C187.62 83.9337 187.683 83.6946 187.71 83.3985C187.729 83.0986 187.671 82.6826 187.535 82.1507L186.873 81.7852C186.533 82.2189 186.263 82.6178 186.062 82.9819C185.884 83.3041 185.823 83.5719 185.878 83.7855C185.934 83.999 186.095 84.1793 186.361 84.3262ZM190.488 78.6658C190.875 77.9655 190.83 77.4839 190.354 77.2209C190.15 77.1087 189.955 77.0828 189.766 77.1431C189.577 77.2034 189.348 77.3785 189.078 77.6682L188.612 78.1647C188.271 78.5339 187.913 78.752 187.538 78.819C187.156 78.8821 186.783 78.8131 186.419 78.612C186.153 78.465 185.94 78.2702 185.782 78.0273C185.617 77.7807 185.535 77.4891 185.539 77.1526C185.542 76.8162 185.657 76.4413 185.885 76.0282C186.032 75.7621 186.213 75.5098 186.427 75.2715C186.637 75.0223 186.892 74.7929 187.191 74.5831L187.765 75.2565C187.251 75.6401 186.88 76.0385 186.652 76.4517C186.316 77.0609 186.375 77.4912 186.83 77.7426C187.005 77.8393 187.187 77.8664 187.375 77.824C187.563 77.7816 187.78 77.6276 188.027 77.362L188.494 76.8654C188.861 76.4651 189.231 76.226 189.603 76.1482C189.975 76.0703 190.36 76.1416 190.759 76.362C191.046 76.5206 191.274 76.7287 191.443 76.9862C191.608 77.2329 191.682 77.5295 191.664 77.8761C191.65 78.2157 191.518 78.6131 191.266 79.0683C191.1 79.3694 190.902 79.6532 190.673 79.9195C190.447 80.1788 190.178 80.4274 189.863 80.6652L189.277 80.0396C189.562 79.8042 189.8 79.5794 189.992 79.3653C190.183 79.1511 190.349 78.9179 190.488 78.6658ZM189.831 70.7954C189.722 70.9915 189.644 71.2497 189.595 71.5699C189.55 71.8832 189.575 72.3086 189.672 72.846L193.422 74.9171L192.946 75.7784L185.173 71.4855L185.648 70.6242L188.915 72.4283C188.808 71.894 188.78 71.4488 188.83 71.0928C188.881 70.7368 188.983 70.4188 189.138 70.1386C189.405 69.6554 189.762 69.3729 190.209 69.2909C190.653 69.1981 191.156 69.3064 191.716 69.6158L195.266 71.5766L194.791 72.438L191.366 70.5468C190.652 70.1523 190.14 70.2352 189.831 70.7954Z" fill="#4A4D64"/>
</svg>

After

Width:  |  Height:  |  Size: 7.4 KiB

BIN
assets/favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

8
assets/favicon.svg Normal file
View File

@ -0,0 +1,8 @@
<svg width="220" height="220" viewBox="0 0 220 220" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect x="2.5" y="2.5" width="215" height="215" rx="77.5" fill="#282A36" stroke="#44475A" stroke-width="5"/>
<ellipse cx="60" cy="147.5" rx="14" ry="13.5" fill="#F8F8F2"/>
<path d="M119.719 175.088L177.835 59.7405C177.835 59.7405 183.398 49.13 172.092 45.1336C160.785 41.1373 156.648 53.2038 156.648 53.2038L99.6852 165.652C99.6852 165.652 95.279 175.287 105.454 179.767C115.63 184.246 119.719 175.088 119.719 175.088Z" fill="#F8F8F2"/>
<path d="M174.619 109.063L173.894 108.663C174.024 109.155 174.079 109.569 174.058 109.905C174.034 110.229 173.944 110.532 173.79 110.812C173.484 111.365 173.038 111.676 172.452 111.746C171.869 111.808 171.2 111.63 170.443 111.212L169.834 110.876C169.099 110.47 168.614 109.965 168.381 109.361C168.152 108.75 168.231 108.094 168.618 107.394C168.73 107.191 168.863 106.999 169.017 106.819C169.171 106.639 169.343 106.469 169.532 106.309L166.822 104.812L167.298 103.951L175.071 108.243L174.619 109.063ZM170.936 110.319C171.483 110.621 171.932 110.759 172.284 110.734C172.632 110.698 172.902 110.509 173.091 110.166C173.203 109.963 173.27 109.726 173.292 109.454C173.307 109.179 173.244 108.788 173.104 108.281L170.331 106.75C170.127 106.902 169.956 107.064 169.817 107.233C169.67 107.399 169.547 107.573 169.446 107.755C169.183 108.232 169.137 108.654 169.308 109.023C169.483 109.384 169.823 109.704 170.327 109.983L170.936 110.319ZM175.45 100.657L176.08 101.005C176.822 101.415 177.301 101.931 177.515 102.552C177.734 103.166 177.647 103.827 177.257 104.534C176.87 105.234 176.357 105.659 175.717 105.808C175.077 105.957 174.386 105.827 173.644 105.417L173.013 105.069C172.285 104.667 171.812 104.159 171.593 103.545C171.372 102.92 171.456 102.254 171.847 101.546C172.238 100.839 172.754 100.416 173.397 100.278C174.037 100.128 174.722 100.255 175.45 100.657ZM174.957 101.55C174.459 101.275 174.009 101.173 173.605 101.242C173.194 101.308 172.871 101.554 172.635 101.981C172.403 102.402 172.367 102.806 172.526 103.196C172.682 103.575 173.009 103.902 173.506 104.176L174.137 104.524C174.655 104.81 175.116 104.919 175.52 104.849C175.928 104.773 176.247 104.525 176.48 104.105C176.715 103.677 176.755 103.274 176.599 102.896C176.443 102.517 176.105 102.184 175.587 101.898L174.957 101.55ZM180.623 97.7429C180.603 98.2434 180.471 98.7142 180.227 99.1554C180.018 99.5335 179.777 99.7886 179.503 99.9206C179.233 100.046 178.943 100.082 178.634 100.03C178.328 99.971 178.018 99.8545 177.703 99.6804L174.867 98.1141L174.368 99.0175L173.611 98.5998L174.11 97.6964L172.661 96.8958L173.136 96.0345L174.586 96.835L175.526 95.1333L176.282 95.551L175.342 97.2527L178.147 98.8016C178.511 99.0028 178.796 99.0825 179.002 99.0408C179.205 98.9882 179.377 98.8323 179.521 98.5732C179.59 98.4472 179.648 98.3099 179.693 98.1614C179.736 98.002 179.763 97.8205 179.775 97.6168L180.623 97.7429Z" fill="#4A4D64"/>
<path d="M183.599 91.14C183.986 90.4397 183.941 89.9581 183.465 89.6951C183.262 89.5829 183.066 89.557 182.877 89.6173C182.688 89.6776 182.459 89.8526 182.189 90.1424L181.723 90.6389C181.382 91.0081 181.024 91.2262 180.649 91.2931C180.267 91.3563 179.894 91.2873 179.53 91.0862C179.264 90.9392 179.051 90.7443 178.893 90.5015C178.728 90.2548 178.647 89.9633 178.65 89.6268C178.653 89.2903 178.768 88.9155 178.996 88.5023C179.143 88.2362 179.324 87.984 179.538 87.7457C179.748 87.4965 180.003 87.267 180.302 87.0573L180.876 87.7307C180.362 88.1143 179.991 88.5126 179.763 88.9258C179.427 89.5351 179.486 89.9654 179.941 90.2168C180.116 90.3135 180.298 90.3406 180.486 90.2982C180.674 90.2557 180.891 90.1017 181.139 89.8361L181.605 89.3396C181.972 88.9393 182.342 88.7002 182.714 88.6223C183.086 88.5445 183.471 88.6158 183.87 88.8362C184.158 88.9948 184.385 89.2028 184.554 89.4604C184.719 89.7071 184.793 90.0037 184.775 90.3503C184.761 90.6899 184.629 91.0873 184.377 91.5425C184.211 91.8436 184.013 92.1273 183.784 92.3937C183.558 92.653 183.289 92.9015 182.974 93.1393L182.388 92.5137C182.673 92.2784 182.912 92.0536 183.103 91.8394C183.294 91.6253 183.46 91.3921 183.599 91.14ZM184.791 87.567L178.278 83.9702L178.754 83.1088L185.224 86.6824C185.413 86.7868 185.572 86.8381 185.701 86.8362C185.827 86.8234 185.941 86.726 186.041 86.5439L186.134 86.3759L186.922 86.811L186.788 87.0526C186.533 87.5148 186.233 87.7692 185.887 87.8159C185.541 87.8627 185.176 87.7797 184.791 87.567ZM189.739 81.7092C189.561 82.0313 189.345 82.2498 189.089 82.3647C188.838 82.4726 188.582 82.5051 188.323 82.4622C188.434 82.9717 188.476 83.4013 188.447 83.751C188.411 84.0969 188.316 84.4099 188.162 84.69C187.91 85.1452 187.578 85.4001 187.163 85.4548C186.749 85.5094 186.329 85.4188 185.902 85.1829C185.615 85.0243 185.388 84.8306 185.222 84.6018C185.056 84.373 184.979 84.0978 184.992 83.776C184.999 83.4504 185.12 83.0741 185.356 82.6469C185.46 82.4578 185.588 82.2589 185.74 82.0503C185.885 81.8378 186.038 81.6257 186.201 81.4139L185.497 81.0252C185.105 80.8087 184.791 80.7492 184.554 80.847C184.314 80.9338 184.103 81.1418 183.921 81.471C183.674 81.9192 183.52 82.4875 183.459 83.1762L182.594 83.0548C182.625 82.6514 182.683 82.2814 182.769 81.9447C182.854 81.6081 182.98 81.2892 183.146 80.988C183.417 80.4978 183.704 80.1676 184.009 79.9975C184.313 79.8273 184.625 79.7667 184.945 79.8156C185.265 79.8645 185.583 79.976 185.898 80.1501L188.146 81.3915C188.307 81.4805 188.461 81.5244 188.608 81.5232C188.748 81.5182 188.87 81.4212 188.975 81.2321L189.038 81.1165L189.826 81.5516L189.739 81.7092ZM186.361 84.3262C186.599 84.4577 186.823 84.508 187.032 84.4772C187.241 84.4464 187.403 84.3259 187.519 84.1158C187.62 83.9337 187.683 83.6946 187.71 83.3985C187.729 83.0986 187.671 82.6826 187.535 82.1507L186.873 81.7852C186.533 82.2189 186.263 82.6178 186.062 82.9819C185.884 83.3041 185.823 83.5719 185.878 83.7855C185.934 83.999 186.095 84.1793 186.361 84.3262ZM190.488 78.6658C190.875 77.9655 190.83 77.4839 190.354 77.2209C190.15 77.1087 189.955 77.0828 189.766 77.1431C189.577 77.2034 189.348 77.3785 189.078 77.6682L188.612 78.1647C188.271 78.5339 187.913 78.752 187.538 78.819C187.156 78.8821 186.783 78.8131 186.419 78.612C186.153 78.465 185.94 78.2702 185.782 78.0273C185.617 77.7807 185.535 77.4891 185.539 77.1526C185.542 76.8162 185.657 76.4413 185.885 76.0282C186.032 75.7621 186.213 75.5098 186.427 75.2715C186.637 75.0223 186.892 74.7929 187.191 74.5831L187.765 75.2565C187.251 75.6401 186.88 76.0385 186.652 76.4517C186.316 77.0609 186.375 77.4912 186.83 77.7426C187.005 77.8393 187.187 77.8664 187.375 77.824C187.563 77.7816 187.78 77.6276 188.027 77.362L188.494 76.8654C188.861 76.4651 189.231 76.226 189.603 76.1482C189.975 76.0703 190.36 76.1416 190.759 76.362C191.046 76.5206 191.274 76.7287 191.443 76.9862C191.608 77.2329 191.682 77.5295 191.664 77.8761C191.65 78.2157 191.518 78.6131 191.266 79.0683C191.1 79.3694 190.902 79.6532 190.673 79.9195C190.447 80.1788 190.178 80.4274 189.863 80.6652L189.277 80.0396C189.562 79.8042 189.8 79.5794 189.992 79.3653C190.183 79.1511 190.349 78.9179 190.488 78.6658ZM189.831 70.7954C189.722 70.9915 189.644 71.2497 189.595 71.5699C189.55 71.8832 189.575 72.3086 189.672 72.846L193.422 74.9171L192.946 75.7784L185.173 71.4855L185.648 70.6242L188.915 72.4283C188.808 71.894 188.78 71.4488 188.83 71.0928C188.881 70.7368 188.983 70.4188 189.138 70.1386C189.405 69.6554 189.762 69.3729 190.209 69.2909C190.653 69.1981 191.156 69.3064 191.716 69.6158L195.266 71.5766L194.791 72.438L191.366 70.5468C190.652 70.1523 190.14 70.2352 189.831 70.7954Z" fill="#4A4D64"/>
</svg>

After

Width:  |  Height:  |  Size: 7.4 KiB

View File

@ -83,16 +83,37 @@ footer {
}
.pfp-name {
text-decoration: none;
/* background-color: var(--accent-bg); */
color: var(--accent);
padding-left: 6px;
/* padding-right: 6px; */
padding-top: 0;
}
nav .pfp-name {
/* To have the icon and the text (.pfp-text) align */
display: table;
}
nav .pfp-text {
/* TODO: Hardcoded alignment is ugly. Please find a better fix */
vertical-align: top;
padding-left: 0.5rem;
padding-top: 0.1rem;
font-size: 1.1rem;
display: inline-block;
}
/* Homepage stuff */
#pfp {
/* The dot slash pic */
max-width: 20%;
border: 5px solid var(--border);
border-radius: 25%;
margin-left: auto;
margin-right: auto;
display: block;
margin-top: 4rem;
.blink {
opacity: 0;
color: var(--accent-light);
animation: blinker 1s step-start 5;
}
@keyframes blinker {
50% {
opacity: 100%;
}
}
nav {
@ -275,7 +296,8 @@ a:hover:not(nav) {
nav a:not(nav strong > a):not(nav ul li:last-child a):hover {
border-bottom: 2.5px solid;
}
nav a:hover {
nav a:not(.pfp-name a):hover {
/* TODO: Don't do this for the pfp on nav */
background-color: var(--accent-bg);
}

View File

@ -21,6 +21,11 @@ suffixTitle = " | ~hedy" # prepended after page titles
geminiRoot = "gemini://hedy.tilde.cafe"
# true: Use shortcode pfp-name as the home link text in nav bar
# false: Use shortTitle there instead
# true if the site is centers around the person, false for non-personal sites basically
navHomeUsePFPName = true
[author]
name = "hedy"
email = "hedy@tilde.cafe"

View File

@ -4,11 +4,8 @@ outputs:
- gemtext
---
<img id="pfp" src="https://hedy.tilde.cafe/dotslash.jpg" alt="thumbnail/cover
picture: my 'dotslash' logo"/>
# Hi, I'm ~hedy
<h1> Hi, I'm {{% pfp-name %}}<span class="blink"></span></h1>
I build **FLOSS** (Free, Libre Open Source Software) in my spare time, and I'm
quite fond of both minimalist **Text User Interface** gems as well as **graphic design**

View File

@ -10,6 +10,13 @@
<meta property="article:modified_time" content="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}">
{{- end -}}
<!--favicon-->
{{ $favicon_svg := resources.Get "/favicon.svg" | resources.Fingerprint "md5" }}
{{- printf `<link rel="icon" sizes="any" href="%s" type="image/svg+xml">` $favicon_svg.Permalink | safeHTML }}
{{ $favicon := resources.Get "/favicon.png" -}}
{{ $favicon_base64 := $favicon.Content | base64Encode }}
{{ printf `<link rel="icon" sizes="32x32" href="data:image/png;base64,%s" type="image/png">` $favicon_base64 | safeHTML }}
<link rel="webmention" href="https://webmention.io/hedy.tilde.cafe/webmention" />
<link rel="pingback" href="https://webmention.io/hedy.tilde.cafe/xmlrpc" />
<link rel="alternate" type="application/rss+xml" href="{{ .Site.BaseURL }}posts/index.xml" title="{{ $.Site.Title }}">

View File

@ -1,5 +1,14 @@
{{ $relperm := .RelPermalink | replaceRE "^/~hedy/" "/" -}}
{{ $home := .Site.Title -}}
{{ if (ne $relperm "/") -}}
{{ if .Site.Params.navHomeUsePFPName -}}
{{ $home = partial "pfp-name.html" . -}}
{{ else -}}
{{ $home = .Site.Params.shortTitle -}}
{{ end -}}
{{ end -}}
<nav>
<strong><a rel="home" href="{{ .Site.BaseURL }}">{{ .Site.Params.shortTitle }}</a></strong>
<strong><a rel="home" href="{{ .Site.BaseURL }}">{{ $home }}</a></strong>
<ul>
{{- $currentPage := . }}
{{- range .Site.Menus.main.ByWeight }}

View File

@ -0,0 +1 @@
../shortcodes/pfp-name.html

1
layouts/partials/pfp.html Symbolic link
View File

@ -0,0 +1 @@
../shortcodes/pfp.html

View File

@ -0,0 +1 @@
<span class="pfp-name">{{ partial "pfp.html" }} <span class="pfp-text">{{ .Site.Author.name }}</span></span>{{- "" -}}

View File

@ -0,0 +1,2 @@
{{ $pfp := resources.Get "/dotslash-ppyl.svg" | resources.Fingerprint "md5" -}}
<img class="pfp" width="32" height="32" src="{{ $pfp.Permalink }}">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB