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

Skip to content

Commit 1c7be76

Browse files
followed a tutorial then modded a header bar
1 parent 463f692 commit 1c7be76

18 files changed

+295
-1
lines changed

archetypes/default.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: "{{ replace .Name "-" " " | title }}"
33
date: {{ .Date }}
4-
draft: true
4+
tags: []
5+
draft: false
56
---
67

content/about.md

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

content/blog/_index.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
title: Blog
3+
---

content/blog/if-by-rudyard-kipling.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
---
2+
title: "If by Rudyard Kipling"
3+
date: 2023-06-18T11:44:53-07:00
4+
tags: ['poetry', 'life']
5+
draft: false
6+
---
7+
8+
If you can keep your head when all about you
9+
Are losing theirs and blaming it on you,
10+
If you can trust yourself when all men doubt you,
11+
But make allowance for their doubting too;
12+
If you can wait and not be tired by waiting,
13+
Or being lied about, don't deal in lies,
14+
Or being hated, don't give way to hating,
15+
And yet don't look too good, nor talk too wise:
16+
17+
If you can dream—and not make dreams your master;
18+
If you can think—and not make thoughts your aim;
19+
If you can meet with Triumph and Disaster
20+
And treat those two impostors just the same;
21+
If you can bear to hear the truth you've spoken
22+
Twisted by knaves to make a trap for fools,
23+
Or watch the things you gave your life to, broken,
24+
And stoop and build 'em up with worn-out tools:
25+
26+
If you can make one heap of all your winnings
27+
And risk it on one turn of pitch-and-toss,
28+
And lose, and start again at your beginnings
29+
And never breathe a word about your loss;
30+
If you can force your heart and nerve and sinew
31+
To serve your turn long after they are gone,
32+
And so hold on when there is nothing in you
33+
Except the Will which says to them: ‘Hold on!'
34+
35+
If you can talk with crowds and keep your virtue,
36+
Or walk with Kings—nor lose the common touch,
37+
If neither foes nor loving friends can hurt you,
38+
If all men count with you, but none too much;
39+
If you can fill the unforgiving minute
40+
With sixty seconds' worth of distance run,
41+
Yours is the Earth and everything that's in it,
42+
And—which is more—you'll be a Man, my son!
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
title: "That it will never come again by Emily Dickinson"
3+
date: 2019-01-12T23:24:54-06:00
4+
tags: ["poetry", "time"]
5+
draft: false
6+
---
7+
8+
That it will never come again
9+
Is what makes life so sweet.
10+
Believing what we don't believe
11+
Does not exhilarate.
12+
13+
That if it be, it be at best
14+
An ablative estate --
15+
This instigates an appetite
16+
Precisely opposite.

content/blog/trees-by-joyce-kilmer.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: "Trees by Joyce Kilmer"
3+
date: 2019-01-13T20:28:42-06:00
4+
tags: ["poetry", "trees"]
5+
draft: false
6+
---
7+
8+
I think that I shall never see
9+
A poem lovely as a tree.
10+
11+
A tree whose hungry mouth is prest
12+
Against the earth's sweet flowing breast;
13+
14+
A tree that looks at God all day,
15+
And lifts her leafy arms to pray;
16+
17+
A tree that may in Summer wear
18+
A nest of robins in her hair;
19+
20+
Upon whose bosom snow has lain;
21+
Who intimately lives with rain.
22+
23+
Poems are made by fools like me,
24+
But only God can make a tree.

hugo.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,43 @@ baseURL: 'https://osusec.org/'
22
languageCode: 'en-us'
33
title: 'OSU Security Club - Oregon State University Security Club'
44

5+
permalinks:
6+
blog: '/:filename:/'
7+
8+
taxonomies:
9+
tag: 'tags'
10+
11+
menu:
12+
main:
13+
- name: 'Home'
14+
url: '/'
15+
weight: 1
16+
- name: 'About'
17+
url: 'about/'
18+
weight: 2
19+
- name: 'Calendar'
20+
url: '/calendar/'
21+
weight: 3
22+
- name: 'Blog'
23+
url: '/blog/'
24+
weight: 4
25+
- name: 'CTF League'
26+
url: '/ctf-league/'
27+
weight: 5
28+
- name: 'Accomplishments'
29+
url: '/accomplishments/'
30+
weight: 6
31+
- name: 'Resources'
32+
url: '/resources/'
33+
weight: 7
34+
about:
35+
- name: 'Who We Are'
36+
url: '/about/'
37+
weight: 1
38+
- name: 'Club Constitution'
39+
url: '/club-constitution/'
40+
weight: 2
41+
42+
params:
43+
dateFormat: "Jan 2, 2006"
44+
homeText: 'You just made a Hugo blog from scratch.'

layouts/_default/about.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{{ define "main" }}
2+
3+
<h1>{{ .Title }}</h1>
4+
<br><br>
5+
{{ .Content }}
6+
7+
{{ end }}

layouts/_default/baseof.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<!doctype html>
2+
<html lang="en">
3+
{{ partial "head.html" . }}
4+
<body>
5+
{{ partial "header.html" . }}
6+
<div class="container">
7+
<main id="main">
8+
{{ block "main" . }}{{ end }}
9+
</main>
10+
</div>
11+
</body>
12+
</html>

layouts/_default/list.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{{ define "main" }}
2+
3+
<h1>{{ .Title }}</h1>
4+
{{ range .Pages.ByPublishDate.Reverse }}
5+
<p>
6+
<a class="font-125" href="{{ .RelPermalink }}">{{ .Title }}</a>
7+
<br>
8+
{{ partial "date-and-tags.html" . }}
9+
</p>
10+
{{ end }}
11+
12+
{{ end }}

layouts/_default/single.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{ define "main" }}
2+
3+
<h1>{{ .Title }}</h1>
4+
{{ partial "date-and-tags.html" . }}
5+
<br><br>
6+
{{ .Content }}
7+
8+
{{ end }}

layouts/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{{ define "main" }}
2+
3+
<div id="home-jumbotron" class="jumbotron text-center">
4+
<h1>{{ .Site.Title }}</h1>
5+
<p class="font-125">{{ .Site.Params.homeText | markdownify }}</p>
6+
</div>
7+
8+
{{ end }}

layouts/partials/date-and-tags.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{{ $dateTime := .PublishDate.Format "2006-01-02" }}
2+
{{ $dateFormat := .Site.Params.dateFormat | default "Jan 2, 2006" }}
3+
<i data-feather="calendar"></i> <time datetime="{{ $dateTime }}">{{ .PublishDate.Format $dateFormat }}</time>
4+
{{ with .Params.tags }}
5+
<br>
6+
<i data-feather="tag"></i>
7+
{{ range . }}
8+
{{ $href := print (relURL "tags/") (urlize .) }}
9+
<a class="btn btn-sm btn-outline-dark tag-btn" href="{{ $href }}">{{ . }}</a>
10+
{{ end }}
11+
{{ end }}
File renamed without changes.

layouts/partials/head.html

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<head>
2+
<meta charset="utf-8">
3+
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
4+
5+
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
6+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
7+
8+
<link rel="preconnect" href="https://fonts.googleapis.com">
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10+
<link href="https://fonts.googleapis.com/css2?family=Mulish:wght@300;600&family=Open+Sans:wght@400;600&display=swap" rel="stylesheet">
11+
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>
39+
40+
{{ $title := print .Title " | " .Site.Title }}
41+
{{ if .IsHome }}{{ $title = .Site.Title }}{{ end }}
42+
<title>{{ $title }}</title>
43+
</head>

layouts/partials/header.html

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
<nav class="navbar navbar-expand-lg px-lg-5 py-lg-2 border-bottom fixed-top topbar">
2+
<div class="container-fluid flex-nowrap px-lg-5">
3+
<a class="navbar-brand" href="/">
4+
<img src="osusec-banner.png" class="img-fluid" alt="OSUSEC" width="450px">
5+
</a>
6+
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
7+
<span class="navbar-toggler-icon"></span>
8+
</button>
9+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
10+
<ul class="navbar-nav me-auto mb-2 mb-lg-0"></ul>
11+
<ul class="navbar-nav d-flex mb-2 mb-lg-0">
12+
{{ $about := .Site.Menus.about }}
13+
{{ range .Site.Menus.main }}
14+
{{ $text := print .Name | safeHTML }}
15+
{{ if eq $text "About" }}
16+
<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+
<ul class="dropdown-menu">
19+
{{ range $about }}
20+
{{ $text = print .Name | safeHTML }}
21+
<li><a class="dropdown-item topbar topbar-drop" href="{{ .URL }}">{{ $text }}</a></li>
22+
{{ end }}
23+
</ul>
24+
</li>
25+
{{ else }}
26+
<li class="nav-item px-1">
27+
<a class="nav-link" href="{{ .URL }}">{{ $text }}</a>
28+
</li>
29+
{{ end }}
30+
{{ end }}
31+
</ul>
32+
</div>
33+
</div>
34+
</nav>
35+
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/.gitkeep

Whitespace-only changes.

static/osusec-banner.png

49.9 KB
Loading

0 commit comments

Comments
 (0)