diff options
| -rw-r--r-- | static/main.css | 10 | ||||
| -rw-r--r-- | templates/404.html | 7 | ||||
| -rw-r--r-- | templates/base.html | 16 | ||||
| -rw-r--r-- | templates/index.html | 2 |
4 files changed, 21 insertions, 14 deletions
diff --git a/static/main.css b/static/main.css index 89789c2..133e31d 100644 --- a/static/main.css +++ b/static/main.css @@ -1,9 +1,11 @@ +@import url("https://unpkg.com/@catppuccin/palette/css/catppuccin.css"); + :root { - --background-color: #1e1e2e; + --background-color: var(--ctp-mocha-base); --primary-font: "Noto Sans"; - --regular-text: #cdd6f4; - --blue-text: #89b4fa; - --subtext: #bac2de; + --regular-text: var(--ctp-mocha-text); + --blue-text: var(--ctp-mocha-blue); + --subtext: var(--ctp-mocha-subtext1); --medium-screen: 768px; } diff --git a/templates/404.html b/templates/404.html index 39f9d4d..e0d1ed7 100644 --- a/templates/404.html +++ b/templates/404.html @@ -6,5 +6,10 @@ {% block content %} <h1>404 :(</h1> -<img src="{{ get_url(path='/imgs/tapwater.png') }}" alt="Can I get you some tapwater?" loading="lazy" decoding="async"> +<img + src="/imgs/tapwater.png" + alt="Can I get you some tapwater?" + loading="lazy" + decoding="async" +> {% endblock content %} diff --git a/templates/base.html b/templates/base.html index 9a2c565..9a5f8de 100644 --- a/templates/base.html +++ b/templates/base.html @@ -1,7 +1,7 @@ <!doctype html> <html lang="en"> + {% block head %} <head> - {% block head %} <meta charset="UTF-8" /> <title>{% block title %}{% endblock title %}</title> <meta name="viewport" content="width=device-width,initial-scale=1" /> @@ -9,14 +9,14 @@ name="description" content="{% block description %}{% endblock description %}" /> - <link rel="stylesheet" href="{{ get_url(path='main.css') }}" /> - <link rel="sitemap" href="{{ get_url(path="sitemap.xml") }}" /> - {% endblock head %} + <link rel="stylesheet" href="/main.css" /> + <link rel="sitemap" href="/sitemap.xml" /> </head> + {% endblock head %} <body> <h1><b>getchoo's website 🦀</b></h1> + {% block nav %} <nav> - {% block nav %} <div id="nav_links"> {% for link in config.extra.nav_links %} <a href="{{ link.url }}">{{ link.name }}</a> @@ -24,13 +24,13 @@ </div> <hr /> - {% endblock nav %} </nav> + {% endblock nav %} {% block content %}{% endblock content %} + {% block footer %} <footer> - {% block footer %} <a href="{{ config.extra.repository_url }}">source code</a> - {% endblock footer %} </footer> + {% endblock footer %} </body> </html> diff --git a/templates/index.html b/templates/index.html index 3617682..db540b6 100644 --- a/templates/index.html +++ b/templates/index.html @@ -9,7 +9,7 @@ <div id="gifs"> {% for gif in config.extra.gifs %} - {% set img = '<img src="' ~ get_url(path='/imgs/gifs/' ~ gif.name) ~ '" alt="' ~ gif.alt ~ '" width=88 height=31 loading="lazy" decoding="async">' %} + {% 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 %} |
