Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-pwd committed Dec 7, 2021
0 parents commit d7eaf83
Show file tree
Hide file tree
Showing 19 changed files with 145 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
resources/
Empty file added .hugo_build.lock
Empty file.
6 changes: 6 additions & 0 deletions archetypes/default.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

8 changes: 8 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
baseURL: "http://example.org/"
languageCode: en-au
title: Sticky Header/Footer

markup:
goldmark:
renderer:
unsafe: true
15 changes: 15 additions & 0 deletions content/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
title: "Home"
date: 2021-11-16T23:04:08+11:00
draft: false
menu: main
weight: 10
heading: My first Bootstrap & Hugo Site
btn1:
text: Bootstrap 5 Docs
url: https://getbootstrap.com/
btn2:
text: Hugo Docs
url: https://gohugo.io/
---
Lorem ipsum dolor sit, amet consectetur adipisicing elit. Omnis quod autem ullam illum dicta perferendis, quaerat dolore sunt, soluta incidunt, repellat aspernatur maxime. Dignissimos quibusdam voluptas, ipsam iusto, quo maxime earum officiis optio consequatur fugit voluptatem nobis error sed natus, voluptatum eveniet expedita aliquam id reiciendis molestiae necessitatibus accusantium impedit?
13 changes: 13 additions & 0 deletions content/about/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: "About"
date: 2021-09-12T18:24:17+10:00
draft: false
menu: main
weight: 20
---

Sample Text.

**Bold text**

*Italic*
Empty file added data/.gitkeep
Empty file.
18 changes: 18 additions & 0 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html lang="{{ .Lang }}">
<head>
{{ partial "head" . }}
</head>
<body>
<header>
{{/* partial "header" . */}}
{{ partial "navbar" . }}
</header>
<main>
{{ block "main" . }}{{ end }}
</main>
<footer>
{{ partial "footer" . }}
</footer>
</body>
</html>
Empty file added layouts/_default/list.html
Empty file.
13 changes: 13 additions & 0 deletions layouts/_default/single.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{{ define "main" }}
<div class="container">
<div class="row">
<div class="col">
<h2 class="text-primary">{{ .Title }}</h2>
{{ with .Params.subtitle }}
<h3 class="text-muted">{{ . }}</h3>
{{ end }}
{{ .Content | markdownify }}
</div>
</div>
</div>
{{ end }}
27 changes: 27 additions & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{{ define "main" }}
<section class="hero">
<div class="container col-xxl-8">
<div class="row align-items-center justify-content-center py-5 g-5">
<div class="col-10 col-sm-8 col-lg-6">
<img src="/img/bootstrap-themes.png" alt="Bootstrap Themes" class="img-fluid d-block mx-auto">
</div>
<div class="col-lg-6 order-lg-first">
<h1>{{ .Params.heading }}</h1>
<p class="lead">{{ .Content | markdownify }}</p>
<div class="d-grid gap-2 d-md-flex">
{{ with .Params.btn1 }}
{{ if and .text .url }}
<a role="button" href="{{ .url }}" class="btn btn-lg btn-primary px-4 me-md-2" target="_blank">{{ .text }}</a>
{{ end }}
{{ end }}
{{ with .Params.btn2 }}
{{ if and .text .url }}
<a role="button" href="{{ .url }}" class="btn btn-lg btn-outline-secondary px-4" target="_blank">{{ .text }}</a>
{{ end }}
{{ end }}
</div>
</div>
</div>
</div>
</section>
{{ end }}
16 changes: 16 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<div class="d-block bg-dark">
<div class="p-2 text-light">
<small>&copy; 2021 - {{ .Site.Title }}</small>
</div>
</div>

<!-- Optional JavaScript; choose one of the two! -->

<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.bundle.min.js" integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM" crossorigin="anonymous"></script>

<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js" integrity="sha384-IQsoLXl5PILFhosVNubq5LC7Qb9DXgDA9i+tQ8Zj3iwWAwPtgFTxbJ8NT4GN1R8p" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/js/bootstrap.min.js" integrity="sha384-cVKIPhGWiC2Al4u+LWgxfKTRIcfu0JTxR+EQDz/bgldoEyl4H0zUF0QKbrJ0EcQF" crossorigin="anonymous"></script>
-->
8 changes: 8 additions & 0 deletions layouts/partials/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
<link rel="stylesheet" href="/css/main.css">
<title>{{ if not .IsHome }}{{ .Title }} - {{ end }}{{ .Site.Title }}</title>
3 changes: 3 additions & 0 deletions layouts/partials/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="d-block bg-secondary text-center">
<h1 class="p-2 text-light">{{ .Site.Title}}</h1>
</div>
17 changes: 17 additions & 0 deletions layouts/partials/navbar.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<nav class="navbar navbar-expand-lg navbar-light bg-white mb-3 ">
<div class="container-fluid">
<a class="navbar-brand" href="/">{{ .Site.Title }}</a>
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
{{ range .Site.Menus.main }}
<li class="nav-item">
<a class="nav-link {{ if $.IsMenuCurrent "main" . }} active" aria-current="page{{ end }}" href="{{ .URL }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
</div>
</div>
</nav>
Empty file added static/.gitkeep
Empty file.
Empty file added static/css/main.css
Empty file.
Binary file added static/img/bootstrap-themes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file added themes/.gitkeep
Empty file.

0 comments on commit d7eaf83

Please sign in to comment.