add icon to header of index page

This commit is contained in:
Kay Faraday 2024-08-13 14:13:37 -07:00
parent c0040dfe45
commit 4cd7b8b118
3 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,7 @@
<meta name=viewport content="width=device-width, initial-scale=1.0">
<link rel=icon href="/static/img/favicon.png">
<link rel=stylesheet href="/static/css/common.css">
{% block head %}{% endblock head %}
<body>
<h1>{% block titleheader %}{{ self.title() }}{% endblock titleheader %}</h1>
{% block header %}

View File

@ -1,6 +1,9 @@
{% extends 'base.j2.html' %}
{% block head %}<link rel=stylesheet href="/static/css/index.css">{% endblock %}
{% block title %}Freak University{% endblock title%}
{% block titleheader %}<img src="/static/img/favicon.png"> {{ self.title() }}{% endblock titleheader %}
{# the home page does not need a link back to home #}
{% block header %}{% endblock header %}

5
static/css/index.css Normal file
View File

@ -0,0 +1,5 @@
img {
max-width: 1em;
object-fit: contain;
vertical-align: middle;
}