Skip to content

Commit 21fc1dd

Browse files
authored
Top navbar sticks to top (#78)
1 parent 16fe464 commit 21fc1dd

File tree

6 files changed

+25
-24
lines changed

6 files changed

+25
-24
lines changed

content/theme/templates/article.html

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,13 @@
99
{% include "styles.html" %}
1010
</head>
1111
<body class="d-flex flex-column h-100">
12-
<main class="flex-shrink-0">
1312
{% include "menu.html" %}
14-
{% include "breadcrumbs.html" %}
15-
16-
{% include "generic.html" %}
17-
18-
{% include "footer.html" %}
19-
</main>
20-
{% include "post.html" %}
13+
<main class="flex-shrink-0">
14+
{% include "breadcrumbs.html" %}
15+
{% include "generic.html" %}
16+
{% include "footer.html" %}
17+
</main>
18+
{% include "post.html" %}
2119
</body>
2220
</html>
2321
{% endblock %}

content/theme/templates/blog.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
{% block head %}
2-
<!doctype html>
3-
<html class="no-js" lang="en" dir="ltr">
4-
<head>
5-
<meta charset="utf-8">
6-
<meta http-equiv="x-ua-compatible" content="ie=edge">
7-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8-
<title>Blogs - {{SITENAME}}</title>
9-
{% include "styles.html" %}
10-
</head>
11-
<body class="d-flex flex-column h-100">
2+
<!doctype html>
3+
<html class="no-js" lang="en" dir="ltr">
4+
<head>
5+
<meta charset="utf-8">
6+
<meta http-equiv="x-ua-compatible" content="ie=edge">
7+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
8+
<title>Blogs - {{SITENAME}}</title>
9+
{% include "styles.html" %}
10+
</head>
11+
<body class="d-flex flex-column h-100">
12+
{% include "menu.html" %}
1213
<main class="flex-shrink-0">
1314
<div>
14-
{% include "menu.html" %}
1515
{% include "breadcrumbs.html" %}
1616
{% include "blogindex.html" %}
1717
{% include "footer.html" %}
1818
</div>
1919
</main>
2020
{% include "post.html" %}
21-
</body>
22-
</html>
21+
</body>
22+
</html>
2323
{% endblock %}

content/theme/templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
{% include "styles.html" %}
1010
</head>
1111
<body class="d-flex flex-column h-100">
12+
{% include "menu.html" %}
1213
<main class="flex-shrink-0">
1314
<div>
14-
{% include "menu.html" %}
1515
{% include "frontpage.html" %}
1616
{% include "footer.html" %}
1717
</div>

content/theme/templates/menu.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- nav bar -->
2-
<nav class="navbar navbar-expand-lg navbar-light bg-info" aria-label="Fifth navbar example">
2+
<nav class="navbar navbar-expand-lg navbar-light bg-info fixed-top" aria-label="Fifth navbar example">
33
<div class="container-fluid">
44
<a class="navbar-brand" href="/">
55
<img src="https://apache.org/img/asf_logo.png" alt="The Apache Software Foundation" style="height: 42px;">

content/theme/templates/page.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
{% include "styles.html" %}
1010
</head>
1111
<body class="d-flex flex-column h-100">
12+
{% include "menu.html" %}
1213
<main class="flex-shrink-0">
1314
<div>
14-
{% include "menu.html" %}
1515
{% include "generic.html" %}
1616
{% include "footer.html" %}
1717
</div>

content/theme/templates/styles.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
</script>
2828
<!-- pagefind search box styling -->
2929
<style>
30+
body {
31+
padding-top: 56px;
32+
}
3033
.search-form {
3134
right: 0;
3235
left: initial !important;

0 commit comments

Comments
 (0)