Skip to content

Commit 2ecce5d

Browse files
committed
add meta keywords, move styles to stylesheet, add height and width for logo, set endblock names, add ignore for flask internal links
1 parent 4562abf commit 2ecce5d

3 files changed

Lines changed: 18 additions & 4 deletions

File tree

djlint.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ignore="J018"

src/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,16 @@ body {
4242
outline-offset: 8px;
4343
}
4444

45+
.navbar-brand a img {
46+
height: 2rem;
47+
}
48+
49+
.navbar-brand a span {
50+
font-size: 1.25rem;
51+
font-weight: 700;
52+
color: #4a4a4a;
53+
}
54+
4555
.nav-link svg {
4656
vertical-align: middle;
4757
margin-top: -4.5px;

templates/base.html.jinja

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
content="width=device-width, initial-scale=1, shrink-to-fit=no">
77
<meta name="description"
88
content="Python Documentation Translation Dashboard">
9+
<meta name="keywords" content="python,docs,translations,progress,status">
910
<title>Python Docs Translation Dashboard</title>
1011
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/css/bootstrap.min.css"
1112
rel="stylesheet"
@@ -19,8 +20,8 @@
1920
<div class="container-fluid">
2021
<div class="navbar-brand">
2122
<a href="./">
22-
<img src="logo.png" style="height: 2rem;" alt="Python logo">
23-
<span style="font-size: 1.25rem; font-weight: 700; color: #4a4a4a">Translation Dashboard</span>
23+
<img src="logo.png" alt="Python logo" height="269" width="277">
24+
<span>Translation Dashboard</span>
2425
</a>
2526
</div>
2627
<div class="navbar-light bg-light">
@@ -76,7 +77,8 @@
7677
</nav>
7778
</header>
7879
<main role="main">
79-
{% block main %}{% endblock %}
80+
{% block main %}
81+
{% endblock main %}
8082
</main>
8183
</body>
8284
<script>
@@ -98,5 +100,6 @@
98100
data-domain="translations.python.org"
99101
src="https://analytics.python.org/js/script.outbound-links.js"></script>
100102
<script>window.plausible = window.plausible || function() { (window.plausible.q = window.plausible.q || []).push(arguments) }</script>
101-
{% block extrascript %}{% endblock %}
103+
{% block extrascript %}
104+
{% endblock extrascript %}
102105
</html>

0 commit comments

Comments
 (0)