generated from cncf/hugo-netlify-starter
-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to Bootstrap 4.5.2 and sync repo with CNCF template project (#6)
- Loading branch information
1 parent
429f079
commit 287c232
Showing
33 changed files
with
547 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,7 @@ resources/ | |
|
||
# npm assets | ||
node_modules/ | ||
|
||
# files | ||
package-lock.json | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
yarn: | ||
yarn | ||
|
||
serve: yarn | ||
serve: | ||
yarn | ||
hugo server \ | ||
--buildDrafts \ | ||
--buildFuture \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
// Custom.scss | ||
@charset "utf-8" | ||
|
||
{{ $extraColors := site.Params.colors.extra }} | ||
{{ $fontAwesomeVersion := site.Params.font_awesome_version }} | ||
{{ $fonts := site.Params.fonts }} | ||
|
||
{{ with $fontAwesomeVersion }} | ||
{{ $fontAwesomeUrl := printf "https://use.fontawesome.com/releases/v%s/css/all.css" . }} | ||
@import url("{{ $fontAwesomeUrl }}") | ||
{{ end }} | ||
|
||
{{ if $fonts }} | ||
{{ $fontSlice := (slice) }} | ||
{{ range $fonts }} | ||
{{ $fontSlice = $fontSlice | append (printf "%s:%s" (replace .name " " "+") (delimit .sizes ",")) }} | ||
{{ end }} | ||
{{ $fontsUrl := printf "https://fonts.googleapis.com/css?family=%s" (delimit $fontSlice "|") }} | ||
@import url("{{ $fontsUrl }}") | ||
{{ end }} | ||
|
||
|
||
// Required | ||
@import "bootstrap/scss/functions" | ||
@import "bootstrap/scss/variables" | ||
@import "bootstrap/scss/mixins" | ||
@import "bootstrap/scss/root" | ||
|
||
//Optional | ||
@import "bootstrap/scss/reboot" | ||
@import "bootstrap/scss/type" | ||
@import "bootstrap/scss/images" | ||
@import "bootstrap/scss/code" | ||
@import "bootstrap/scss/grid" | ||
@import "bootstrap/scss/tables" | ||
@import "bootstrap/scss/forms" | ||
@import "bootstrap/scss/buttons" | ||
@import "bootstrap/scss/transitions" | ||
@import "bootstrap/scss/dropdown" | ||
//@import "bootstrap/scss/button-group" | ||
//@import "bootstrap/scss/input-group" | ||
//@import "bootstrap/scss/custom-forms" | ||
@import "bootstrap/scss/nav" | ||
@import "bootstrap/scss/navbar" | ||
//@import "bootstrap/scss/card" | ||
//@import "bootstrap/scss/breadcrumb" | ||
//@import "bootstrap/scss/pagination" | ||
//@import "bootstrap/scss/badge" | ||
@import "bootstrap/scss/jumbotron" | ||
//@import "bootstrap/scss/alert" | ||
//@import "bootstrap/scss/progress" | ||
//@import "bootstrap/scss/media" | ||
//@import "bootstrap/scss/list-group" | ||
//@import "bootstrap/scss/close" | ||
//@import "bootstrap/scss/toasts" | ||
//@import "bootstrap/scss/modal" | ||
//@import "bootstrap/scss/tooltip" | ||
//@import "bootstrap/scss/popover" | ||
//@import "bootstrap/scss/carousel" | ||
//@import "bootstrap/scss/spinners" | ||
@import "bootstrap/scss/utilities" | ||
//@import "bootstrap/scss/print" | ||
// Custom | ||
$font-family-headers: "Fira Sans" | ||
|
||
.breadcrumb | ||
li | ||
list-style: none | ||
display: inline | ||
ul | ||
padding-left: 0 | ||
|
||
.hashlink | ||
font-size: smaller !important | ||
|
||
.highlight pre | ||
padding: 0.5rem | ||
border-radius: 5px | ||
|
||
.content | ||
table | ||
@extend .table | ||
|
||
img | ||
@extend .img-fluid | ||
|
||
h1, h2, h3, h4, h5, h6 | ||
font-family: $font-family-headers | ||
scroll-margin-top: 5rem | ||
margin-top: 1.8rem | ||
|
||
nav | ||
ul | ||
list-style-type: none | ||
padding-left: 0 | ||
ul | ||
padding-left: 1.5rem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: "Docs Index" | ||
description: "index of the docs section" | ||
date: 2020-01-07T14:59:38+01:00 | ||
toc: true | ||
--- | ||
|
||
This is index content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: "Section 1 index" | ||
description: "Example description text, lorem ipsum dolor sit amet make it look good" | ||
date: 2020-01-07T14:59:38+01:00 | ||
draft: true | ||
toc: true | ||
weight: 1 | ||
--- | ||
|
||
## Section 1 {#section-1} | ||
|
||
Meow | ||
|
||
## Section 2 | ||
|
||
Meow Meow | ||
|
||
- this | ||
- is | ||
- a | ||
- list | ||
|
||
### Subsection 1 | ||
|
||
Mmeow | ||
|
||
### Subsection 2 1 with a very very long title 1 with a very very long title 1 with a very very long title | ||
|
||
Mmmeow | ||
|
||
#### Subsubsection 1 with a very very long title | ||
|
||
Hello world `code` | ||
|
||
```shell | ||
codeblock | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: "Section 1 Child Page 2" | ||
description: "Example description text, lorem ipsum dolor sit amet make it look good" | ||
date: 2020-01-07T14:59:38+01:00 | ||
draft: true | ||
toc: true | ||
weight: 3 | ||
--- | ||
|
||
## Section 1 {#section-1} | ||
|
||
Meow | ||
|
||
## Section 2 | ||
|
||
Meow Meow | ||
|
||
- this | ||
- is | ||
- a | ||
- list | ||
|
||
### Subsection 1 | ||
|
||
Mmeow | ||
|
||
### Subsection 2 1 with a very very long title 1 with a very very long title 1 with a very very long title | ||
|
||
Mmmeow | ||
|
||
#### Subsubsection 1 with a very very long title | ||
|
||
Hello world `code` | ||
|
||
```shell | ||
codeblock | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: "Section 1 Child Page 1" | ||
description: "Example description text, lorem ipsum dolor sit amet make it look good" | ||
date: 2020-01-07T14:59:38+01:00 | ||
draft: true | ||
toc: true | ||
weight: 2 | ||
--- | ||
|
||
## Section 1 {#section-1} | ||
|
||
Meow | ||
|
||
## Section 2 | ||
|
||
Meow Meow | ||
|
||
- this | ||
- is | ||
- a | ||
- list | ||
|
||
### Subsection 1 | ||
|
||
Mmeow | ||
|
||
### Subsection 2 1 with a very very long title 1 with a very very long title 1 with a very very long title | ||
|
||
Mmmeow | ||
|
||
#### Subsubsection 1 with a very very long title | ||
|
||
Hello world `code` | ||
|
||
```shell | ||
codeblock | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
Title: "Section 2 index" | ||
weight: 20 | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
Title: "Section 3 index" | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
title: "Content page in `/docs`" | ||
description: "Example description text, lorem ipsum dolor sit amet make it look good" | ||
date: 2020-01-07T14:59:38+01:00 | ||
draft: true | ||
toc: true | ||
weight: 20 | ||
--- | ||
|
||
## Section 1 {#section-1} | ||
|
||
Meow | ||
|
||
## Section 2 | ||
|
||
Meow Meow | ||
|
||
- this | ||
- is | ||
- a | ||
- list | ||
|
||
### Subsection 1 | ||
|
||
Mmeow | ||
|
||
### Subsection 2 1 with a very very long title 1 with a very very long title 1 with a very very long title | ||
|
||
Mmmeow | ||
|
||
#### Subsubsection 1 with a very very long title | ||
|
||
Hello world `code` | ||
|
||
```shell | ||
codeblock | ||
``` |
Oops, something went wrong.