Skip to content

Commit

Permalink
Add site icon and title override
Browse files Browse the repository at this point in the history
  • Loading branch information
kellpossible committed Apr 21, 2024
1 parent c0381c2 commit 4460b88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link href="/dist/style.css" rel="stylesheet"/>
<link rel="icon" href="/static/icon.webp"/>
<script src="/dist/htmx.js"></script>
{% block head %}
{% endblock head %}
Expand Down
10 changes: 5 additions & 5 deletions src/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
{% from "macros/forecast_intro.html" import forecast_intro %}
{% from "macros/weather.html" import weather as weather_macro, weather_wind_unit_select %}
{% extends "base.html" %}
{% block head %}
<link rel="stylesheet" href="/dist/uPlot.css">
<script src="/dist/uPlot.js"></script>
{% endblock head %}
{% macro current_forecast_block(current_forecast) %}
<div class="py-4">
{% if current_forecast %}
Expand Down Expand Up @@ -55,12 +51,16 @@ <h2 class="text-4xl font-bold">{{ fl("no-current-forecast-heading") }}</h2>
</td>
</tr>
{% endmacro %}
{% block head %}
<link rel="stylesheet" href="/dist/uPlot.css">
<script src="/dist/uPlot.js"></script>
{% endblock head %}
{% set page_title = fl("index-title") %}
{% block title %}
{{ page_title }}
{% endblock title %}
{% block body %}
<h1 class="text-5xl font-bold text-center">{{ page_title }}</h1>
{% include 'index_html/title.html' %}
<div class="flex items-center justify-center w-screen">
<div class="p-2 w-full md:min-w-3xl md:max-w-3xl text-center">
<div class="pb-2">{{ language_select() }}</div>
Expand Down
1 change: 1 addition & 0 deletions src/templates/index_html/title.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<h1 class="text-5xl font-bold text-center">{{ page_title }}</h1>

0 comments on commit 4460b88

Please sign in to comment.