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

Skip to content

Commit b723483

Browse files
finish header
1 parent 882e291 commit b723483

File tree

4 files changed

+28
-5
lines changed

4 files changed

+28
-5
lines changed

content/calendar.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Calendar
3+
date: 2023-06-18T11:44:53-07:00
4+
layout: 'about'
5+
---
6+
7+
hello

hugo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ menu:
1414
url: '/'
1515
weight: 1
1616
- name: 'About'
17-
url: 'about/'
17+
url: '/about/'
1818
weight: 2
1919
- name: 'Calendar'
2020
url: '/calendar/'

layouts/partials/header.html

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<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="/">
4-
<img src="osusec-banner.png" class="img-fluid" alt="OSUSEC" width="450px">
4+
<img src="/osusec-banner.png" class="img-fluid" alt="OSUSEC" width="450px">
55
</a>
66
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
77
<span class="navbar-toggler-icon"></span>
@@ -10,21 +10,27 @@
1010
<ul class="navbar-nav me-auto mb-2 mb-lg-0"></ul>
1111
<ul class="navbar-nav d-flex mb-2 mb-lg-0">
1212
{{ $about := .Site.Menus.about }}
13+
{{ $page := .Page}}
1314
{{ range .Site.Menus.main }}
1415
{{ $text := print .Name | safeHTML }}
1516
{{ if eq $text "About" }}
1617
<li class="nav-item px-1 dropdown">
17-
<a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">{{ $text }}</a>
18+
<a class="nav-link text-black dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false">{{ $text }}</a>
1819
<ul class="dropdown-menu">
1920
{{ range $about }}
2021
{{ $text = print .Name | safeHTML }}
21-
<li><a class="dropdown-item topbar topbar-drop" href="{{ .URL }}">{{ $text }}</a></li>
22+
<li><a class="dropdown-item topbar topbar-drop shadow-none" href="{{ .URL }}">{{ $text }}</a></li>
2223
{{ end }}
2324
</ul>
2425
</li>
26+
{{ else if eq $text "Home" }}
27+
{{ $sitetitle := "OSU Security Club - Oregon State University Security Club" }}
28+
<li class="nav-item px-1">
29+
<a class="nav-link text-black {{ if eq $page.Title $sitetitle }}ghgh{{ end }}" href="{{ .URL }}">{{ $text }}</a>
30+
</li>
2531
{{ else }}
2632
<li class="nav-item px-1">
27-
<a class="nav-link" href="{{ .URL }}">{{ $text }}</a>
33+
<a class="nav-link text-black {{ if eq $text $page.Title }}ghgh{{ end }}" href="{{ .URL }}">{{ $text }}</a>
2834
</li>
2935
{{ end }}
3036
{{ end }}

static/caseyhates.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
:root {
2+
--primary-color: #dc4405;
3+
--secondary-color: #f15f25;
4+
}
5+
16
/* protip: I HATE FOOTERS */
27

38
body {
@@ -26,4 +31,9 @@ main {
2631
}
2732
.topbar-drop {
2833
text-transform: none;
34+
box-shadow: none;
35+
}
36+
37+
.ghgh {
38+
border-bottom: 3px solid var(--primary-color);
2939
}

0 commit comments

Comments
 (0)