-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from lucperkins/lperkins/initial-website
Initial site scaffolding
- Loading branch information
Showing
17 changed files
with
152 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Hugo-generated assets | ||
public/ | ||
resources/ | ||
|
||
# npm assets | ||
node_modules/ |
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,13 @@ | ||
serve: | ||
hugo server \ | ||
--buildDrafts \ | ||
--buildFuture | ||
|
||
preview-build: | ||
hugo \ | ||
--baseURL $(DEPLOY_PRIME_URL) \ | ||
--minify | ||
|
||
production-build: | ||
hugo \ | ||
--minify |
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,10 @@ | ||
=flex | ||
display: flex | ||
|
||
=column | ||
+flex | ||
flex-direction: column | ||
|
||
=full-height-column | ||
+column | ||
min-height: 100vh |
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,5 @@ | ||
.page | ||
+full-height-column | ||
|
||
.main | ||
flex: 1 |
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,29 @@ | ||
{{ $fonts := site.Params.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 "|") }} | ||
{{ $sansSerifFont := (index (where $fonts "type" "sans_serif") 0).name }} | ||
{{ $monospaceFont := (index (where $fonts "type" "monospace") 0).name }} | ||
{{ $fontAwesomeVersion := site.Params.font_awesome_version }} | ||
{{ $fontAwesomeUrl := printf "https://use.fontawesome.com/releases/v%s/css/all.css" $fontAwesomeVersion }} | ||
|
||
@charset "utf-8" | ||
@import url({{ $fontsUrl }}) | ||
@import url({{ $fontAwesomeUrl }}) | ||
|
||
@import "variables" | ||
@import "bulma/sass/utilities/initial-variables" | ||
@import "bulma/sass/utilities/functions" | ||
|
||
// Bulma variable overwrites | ||
$primary: $opentelemetry-blue | ||
$family-sans-serif: "{{ $sansSerifFont }}", BlinkMacSystemFont, -apple-system, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", "Helvetica", "Arial", sans-serif | ||
$family-code: "{{ $monospaceFont }}", monospace | ||
|
||
@import "bulma/sass/utilities/derived-variables" | ||
@import "bulma/bulma" | ||
|
||
@import "helpers" | ||
@import "page" |
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 @@ | ||
$opentelemetry-blue: #0979b9 |
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,16 @@ | ||
title = "OpenTelemetry" | ||
baseURL = "https://opentelemetry.io" | ||
disableKinds = ["taxonomy", "taxonomyTerm"] | ||
|
||
[params] | ||
font_awesome_version = "5.8.1" | ||
|
||
[[params.fonts]] | ||
name = "Roboto" | ||
sizes = [300,400,600,700] | ||
type = "sans_serif" | ||
|
||
[[params.fonts]] | ||
name = "Roboto Mono" | ||
sizes = [400] | ||
type = "monospace" |
Empty file.
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,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
{{ partial "css.html" . }} | ||
</head> | ||
<body class="page has-navbar-fixed-top"> | ||
<main class="main"> | ||
{{ partial "navbar.html" . }} | ||
|
||
{{ block "main" . }} | ||
{{ end }} | ||
</main> | ||
</body> | ||
</html> |
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 @@ | ||
{{ define "main" }} | ||
{{ partial "home/hero.html" . }} | ||
{{ end }} |
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,16 @@ | ||
{{ $favicon := "favicon.png" | relURL }} | ||
{{ $inServerMode := site.IsServer }} | ||
{{ $includePaths := (slice "node_modules") }} | ||
{{ $sass := "sass/style.sass" }} | ||
{{ $cssOutput := "css/style.css" }} | ||
{{ $devOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "enableSourceMap" true) }} | ||
{{ $prodOpts := (dict "targetPath" $cssOutput "includePaths" $includePaths "outputStyle" "compressed") }} | ||
{{ $cssOpts := cond $inServerMode $devOpts $prodOpts }} | ||
{{ $css := resources.Get $sass | resources.ExecuteAsTemplate $sass . | toCSS $cssOpts }} | ||
{{ if $inServerMode }} | ||
<link rel="stylesheet" href="{{ $css.RelPermalink }}"> | ||
{{ else }} | ||
{{ $prodCss := $css | fingerprint }} | ||
<link rel="stylesheet" href="{{ $prodCss.RelPermalink }}" integrity="{{ $prodCss.Data.Integrity }}"> | ||
{{ end }} | ||
<link rel="shortcut icon" type="image/png" href="{{ $favicon }}"> |
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,10 @@ | ||
{{ $title := .Title }} | ||
<section class="hero is-primary"> | ||
<div class="hero-body"> | ||
<div class="container"> | ||
<p class="title is-size-1 is-size-2-mobile has-text-weight-light"> | ||
{{ $title }} | ||
</p> | ||
</div> | ||
</div> | ||
</section> |
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 @@ | ||
<nav class="navbar is-primary is-fixed-top"> | ||
|
||
</nav> |
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,12 @@ | ||
[build] | ||
publish = "public" | ||
command = "make production-build" | ||
|
||
[build.environment] | ||
HUGO_VERSION = "0.55.3" | ||
|
||
[context.deploy-preview] | ||
command = "make preview-build" | ||
|
||
[context.branch-deploy] | ||
command = "make preview-build" |
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,6 @@ | ||
{ | ||
"private": true, | ||
"devDependencies": { | ||
"bulma": "^0.7.4" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
||
bulma@^0.7.4: | ||
version "0.7.4" | ||
resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.7.4.tgz#7e74512e9118d9799021339e67e365ee0ac4f3f9" | ||
integrity sha512-krG2rP6eAX1WE0sf6O0SC/FUVSOBX4m1PBC2+GKLpb2pX0qanaDqcv9U2nu75egFrsHkI0zdWYuk/oGwoszVWg== |