diff options
| author | seth <[email protected]> | 2024-10-08 11:49:47 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-10-08 11:49:47 -0400 |
| commit | 20d62336a446bea6c5846805e8325b67cd59fe54 (patch) | |
| tree | 46a92b1de1021eb0631b54f664ba0c2ddf6752c6 /templates/index.html | |
| parent | 07cb04200916169671b9c426fbfe9a24bb0fa79e (diff) | |
nice redesign (#145)
* nix: drop treefmt
* nix: remove .envrc
* nix: move `serve` to apps output
* nice redesign
* use local stylesheet
* nix: fix build
Diffstat (limited to 'templates/index.html')
| -rw-r--r-- | templates/index.html | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/templates/index.html b/templates/index.html index 8a9042f..9733821 100644 --- a/templates/index.html +++ b/templates/index.html @@ -1,17 +1,25 @@ {% extends "base.html" %} {% block content %} - {{ section.content | safe }} - <div id="gifs"> - {% for gif in config.extra.gifs %} - {% set img = '<img src = "/imgs/gifs/' ~ gif.name ~'" alt="' ~ gif.alt ~ '" width=88 height=31 loading="lazy" decoding="async">' %} - {% if gif.href %} - <a href="{{ gif.href }}">{{ img | safe }}</a> - {% else %} - {{ img | safe }} - {% endif %} + <div class="gif-buttons"> + {% for button in config.extra.buttons %} + <div class="gif-button"> + {% set imageTag = '<img + src="/imgs/buttons/' ~ button.name ~ '" + alt="' ~ button.alt ~ '" + width=88 + height=31 + decoding="async" + loading="lazy" + >' %} + {% if button.link %} + <a href="{{ button.link }}">{{ imageTag | safe }}</a> + {% else %} + {{ imageTag | safe }} + {% endif %} + </div> {% endfor %} </div> {% endblock content %} |
