Skip to content
This repository was archived by the owner on Jun 14, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ insert_final_newline = true
[Makefile]
indent_style = tab

[*.md]
trim_trailing_whitespace = false

[*.{html,js,json,md,sass,yaml}]
indent_style = space
indent_size = 2
3 changes: 3 additions & 0 deletions assets/sass/custom.sass
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@

$font-family-headers: "Fira Sans"

.logo
max-width: 200px

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, sign-off on #36


.breadcrumb
li
list-style: none
Expand Down
8 changes: 7 additions & 1 deletion config.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
title = "Hugo Netlify Starter"
disableKinds = ["taxonomy", "taxonomyTerm"]
copyright = "Cloud Native Computing Foundation"

enableGitInfo = true

[markup.highlight]
style = "paraiso-dark"

[params]
projectName = "Hugo Netlify Starter"
font_awesome_version = "5.12.0"
description = "Boilerplate for building beautiful websites"
favicon = "favicon.png"
Expand All @@ -17,6 +17,12 @@ contentDir = "/content/"
[params.logos]
navbar = "cncf-color.png"

[[params.social]]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the whole, these are meant to be add-as-you-please, rather than a set that a project has to fill out – regardless, LGTM on #50

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to add it as a way of inviting folks to participate in the starter too :)

name = "GitHub"
color = "#000000"
url = "https://github.com/cncf/hugo-netlify-starter"
icon = "fab fa-github"

[[params.social]]
name = "Twitter"
color = "#00aced"
Expand Down
Empty file.
1 change: 1 addition & 0 deletions layouts/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{ define "main" }}
{{ partial "home/hero.html" . }}
{{ partial "home/content.html" . }}
{{ partial "home/cncf-status.html" . }}
{{ end }}
7 changes: 4 additions & 3 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{{ with site.Copyright }}
{{ $projectName := site.Params.projectName }}
{{ $year := now.Year }}
<footer class="footer">
<div class="container">
<p>
&copy; {{ $year }} {{ . }}
&copy; {{ $year }} The {{ $projectName }} Authors | Documentation Distributed under CC-BY-4.0
</br>
&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.
</p>
</div>
</footer>
{{ end }}
16 changes: 16 additions & 0 deletions layouts/partials/home/cncf-status.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{{ $title := site.Title }}
<section class="container-xl">
<div class="row">
<div class="col-12">
<hr>
<p>
<a href="https://cncf.io" target="_blank">
<img src="img/logos/cncf-color.png" width="200">
</a>
</p>
<p>
{{ $title }} is a Cloud Native Computing Foundation sandbox project.
</p>
</div>
</div>
</section>
2 changes: 1 addition & 1 deletion layouts/partials/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<a class="navbar-item" href="{{ $home }}">
{{ if $logo }}
{{ $url := printf "img/logos/%s" $logo | relURL }}
<img src="{{ $url }}" width="200">
<img src="{{ $url }}" class="logo">
{{ else }}
{{ $title }}
{{ end }}
Expand Down