Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.

Commit a13e995

Browse files
nate-double-uzacharysarahcelestehorgan
authored
Enhancements 34, 35, 36, 50 (#40)
Enhancements: - Adding CNCF Branding Elements Near Bottom of home page. Fixes #35 - Adding Linux Foundation copyright notice to footer. Fixes #34 - Using css for logo width in navbar partial. Fixes #36 - Adding GitHub button to top level nav. Fixes #50 - Updates as per PR feedback. Co-authored-by: Zach Corleissen <[email protected]> Co-authored-by: Celeste Horgan <[email protected]> Co-authored-by: Nate W <[email protected]> Signed-off-by: Nate W <[email protected]>
1 parent 1434650 commit a13e995

File tree

8 files changed

+35
-5
lines changed

8 files changed

+35
-5
lines changed

.editorconfig

+3
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ insert_final_newline = true
77
[Makefile]
88
indent_style = tab
99

10+
[*.md]
11+
trim_trailing_whitespace = false
12+
1013
[*.{html,js,json,md,sass,yaml}]
1114
indent_style = space
1215
indent_size = 2

assets/sass/custom.sass

+3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@
6666
6767
$font-family-headers: "Fira Sans"
6868

69+
.logo
70+
max-width: 200px
71+
6972
.breadcrumb
7073
li
7174
list-style: none

config.toml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
title = "Hugo Netlify Starter"
22
disableKinds = ["taxonomy", "taxonomyTerm"]
3-
copyright = "Cloud Native Computing Foundation"
43

54
enableGitInfo = true
65

76
[markup.highlight]
87
style = "paraiso-dark"
98

109
[params]
10+
projectName = "Hugo Netlify Starter"
1111
font_awesome_version = "5.12.0"
1212
description = "Boilerplate for building beautiful websites"
1313
favicon = "favicon.png"
@@ -17,6 +17,12 @@ contentDir = "/content/"
1717
[params.logos]
1818
navbar = "cncf-color.png"
1919

20+
[[params.social]]
21+
name = "GitHub"
22+
color = "#000000"
23+
url = "https://github.com/cncf/hugo-netlify-starter"
24+
icon = "fab fa-github"
25+
2026
[[params.social]]
2127
name = "Twitter"
2228
color = "#00aced"

content/test-content/docs-section-1/_index.md

Whitespace-only changes.

layouts/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{{ define "main" }}
22
{{ partial "home/hero.html" . }}
33
{{ partial "home/content.html" . }}
4+
{{ partial "home/cncf-status.html" . }}
45
{{ end }}

layouts/partials/footer.html

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
{{ with site.Copyright }}
1+
{{ $projectName := site.Params.projectName }}
22
{{ $year := now.Year }}
33
<footer class="footer">
44
<div class="container">
55
<p>
6-
&copy; {{ $year }} {{ . }}
6+
&copy; {{ $year }} The {{ $projectName }} Authors | Documentation Distributed under CC-BY-4.0
7+
</br>
8+
&copy; {{ $year }} The Linux Foundation. All rights reserved. The Linux Foundation has registered trademarks and uses trademarks. For a list of trademarks of The Linux Foundation, please see our <a href="https://www.linuxfoundation.org/trademark-usage/">Trademark Usage</a> page.
79
</p>
810
</div>
911
</footer>
10-
{{ end }}
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{{ $title := site.Title }}
2+
<section class="container-xl">
3+
<div class="row">
4+
<div class="col-12">
5+
<hr>
6+
<p>
7+
<a href="https://cncf.io" target="_blank">
8+
<img src="img/logos/cncf-color.png" width="200">
9+
</a>
10+
</p>
11+
<p>
12+
{{ $title }} is a Cloud Native Computing Foundation sandbox project.
13+
</p>
14+
</div>
15+
</div>
16+
</section>

layouts/partials/navbar.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<a class="navbar-item" href="{{ $home }}">
1212
{{ if $logo }}
1313
{{ $url := printf "img/logos/%s" $logo | relURL }}
14-
<img src="{{ $url }}" width="200">
14+
<img src="{{ $url }}" class="logo">
1515
{{ else }}
1616
{{ $title }}
1717
{{ end }}

0 commit comments

Comments
 (0)