Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 882e291

Browse files
separated css, added favicon
1 parent 1c7be76 commit 882e291

File tree

5 files changed

+32
-54
lines changed

5 files changed

+32
-54
lines changed

layouts/_default/baseof.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{{ partial "head.html" . }}
44
<body>
55
{{ partial "header.html" . }}
6-
<div class="container">
6+
<div class="container" style="margin-top: 150px;">
77
<main id="main">
88
{{ block "main" . }}{{ end }}
99
</main>

layouts/partials/head.html

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,7 @@
99
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1010
<link href="https://fonts.googleapis.com/css2?family=Mulish:wght@300;600&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
1111

12-
13-
<!-- protip: I HATE FOOTERS -->
14-
<style>
15-
body {
16-
min-height: 100vh;
17-
display: flex;
18-
flex-direction: column;
19-
}
20-
main {
21-
flex-grow: 1;
22-
}
23-
24-
.heading {
25-
font-family: 'Mulish', sans-serif;
26-
font-weight: 600;
27-
}
28-
.topbar {
29-
font-family: 'Open Sans',sans-serif;
30-
font-weight: 600;
31-
letter-spacing: 1px;
32-
font-size: 15px;
33-
text-transform: uppercase;
34-
}
35-
.topbar-drop {
36-
text-transform: none;
37-
}
38-
</style>
12+
<link rel="stylesheet" href="/caseyhates.css">
3913

4014
{{ $title := print .Title " | " .Site.Title }}
4115
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}

layouts/partials/header.html

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav class="navbar navbar-expand-lg px-lg-5 py-lg-2 border-bottom fixed-top topbar">
1+
<nav class="navbar navbar-expand-lg px-lg-5 py-lg-2 fixed-top topbar">
22
<div class="container-fluid flex-nowrap px-lg-5">
33
<a class="navbar-brand" href="/">
44
<img src="osusec-banner.png" class="img-fluid" alt="OSUSEC" width="450px">
@@ -33,28 +33,3 @@
3333
</div>
3434
</nav>
3535

36-
37-
38-
<div style="margin-top: 1000px">
39-
<div id="nav-border" class="container">
40-
<nav id="nav" class="nav justify-content-center">
41-
{{ $about := .Site.Menus.about }}
42-
{{ range .Site.Menus.main }}
43-
{{ $text := print .Name | safeHTML }}
44-
{{ if eq $text "About" }}
45-
<li class="nav-item dropdown">
46-
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">{{ $text }}</a>
47-
<ul class="dropdown-menu">
48-
{{ range $about }}
49-
{{ $text = print .Name | safeHTML }}
50-
<li><a class="dropdown-item" href="{{ .URL }}">{{ $text }}</a></li>
51-
{{ end }}
52-
</ul>
53-
</li>
54-
{{ else }}
55-
<a class="nav-link" href="{{ .URL }}">{{ $text }}</a>
56-
{{ end }}
57-
{{ end }}
58-
</nav>
59-
</div>
60-
</div>

static/caseyhates.css

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
/* protip: I HATE FOOTERS */
2+
3+
body {
4+
min-height: 100vh;
5+
display: flex;
6+
flex-direction: column;
7+
}
8+
main {
9+
flex-grow: 1;
10+
}
11+
12+
/* styling top bar */
13+
14+
.heading {
15+
font-family: 'Mulish', sans-serif;
16+
font-weight: 600;
17+
}
18+
.topbar {
19+
font-family: 'Open Sans',sans-serif;
20+
font-weight: 600;
21+
letter-spacing: 1px;
22+
font-size: 15px;
23+
text-transform: uppercase;
24+
25+
box-shadow: 0 0 5px 2px rgba(0,0,0,.33);
26+
}
27+
.topbar-drop {
28+
text-transform: none;
29+
}

static/favicon.ico

13.4 KB
Binary file not shown.

0 commit comments

Comments
 (0)