-
Notifications
You must be signed in to change notification settings - Fork 16
Conversation
Deploy preview: https://deploy-preview-40--cncf-hugo-starter.netlify.app/ |
- 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 Co-authored-by: Celeste Horgan <celeste@cncf.io> Co-authored-by: Nate W <nwaddington@cncf.io> Signed-off-by: Nate W <nwaddington@cncf.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nate-double-u Some small changes. Thanks for upstreaming these!
layouts/partials/footer.html
Outdated
{{ with site.Copyright }} | ||
© {{ $year }} {{ . }} </br> | ||
{{ end }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This renders oddly on the page. I don't know if the CNCF holds trademarks independently from the LF, and I would avoid adding custom boilerplate without clear guidance from legal.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the odd rendering is an artifact of the page responsiveness--this element tracks with the header, and not the content, so for some viewports it can look odd.
I think we should probably open an issue for responsiveness generally, and probably one for mobile rendering specifically.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know if the CNCF holds trademarks independently from the LF, and I would avoid adding custom boilerplate without clear guidance from legal.
The double copyright lines has confused me for a couple weeks now. I see it on a lot of our project pages. I can try to find the issue i mentioned it in before.
Specifically for the template though, the "Cloud Native Computing Foundation" comes in from the config.toml, which we are expecting people to change when they generate a site from the template, so in practice we'd never actually see both of:
© 2020 Cloud Native Computing Foundation
© 2020 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 Trademark Usage page.
So because the CNCF copyright mark should be removed as a part of the initial site setup work, I think I'm OK leaving this as is.
That all said, how do we get that clear guidance from legal?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Issue for responsiveness issues: #52
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@zacharysarah – What renders as © 2020 Cloud Native Computing Foundation
is actually © 2020 ProjectName
in reality. So for Longhorn, this would be © 2020 Longhorn
, for Vitess © 2020 Vitess
, etc.
What I suggest for this, @nate-double-u:
- Change the string to render to
© 2020 The ProjectName Authors | Documentation Distributed under CC-BY-4.0
, which is what we actually use on 98% of projects.
The reason the second copyright line is there: the first copyright line (ProjectName Authors
) == covers the actual code and docs. The second copyright line (Linux Foundation
) covers the logos and trademarks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense @celestehorgan, I'll add that change in; however, @zacharysarah, do we still need legal review? If so, at which stage of the process do we need it?
It's already published at https://cncf-hugo-starter.netlify.app/, as follows:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Change the string to render to `© 2020 The ProjectName Authors | Documentation Distributed under CC-BY-4.0`
@celestehorgan is it reasonable/safe, at least in the template here, to use the site.Title
parameter within that string in place of "ProjectName"? (see my commit here for how I intend to make this edit)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we do it that way, likely we can take the copyright
entry out of the config.toml
file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nate-double-u I would actually do the following:
-
Rename
copyright
toprojectName
here (to make it clearer) -
Reference
projectName
in the copyright footer, but also anywhere else we might use it.
Let title
be its own thing that populates a page's <title>
tag, i.e.
The reason I'd do it this way is because sometimes sites SEO-ify their <title>
tag, and so we can't be guaranteed it's going to be a clean string of the project name every time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@celestehorgan that sounds good, I'll make that update.
Removing markup from anchor text. Signed-off-by: Nate W <nwaddington@cncf.io> Co-authored-by: Zach Corleissen <zacharysarah@users.noreply.github.com>
Removing unneeded period. Signed-off-by: Nate W <nwaddington@cncf.io> Co-authored-by: Zach Corleissen <zacharysarah@users.noreply.github.com>
Removing conference callout. Signed-off-by: Nate W <nwaddington@cncf.io> Co-authored-by: Zach Corleissen <zacharysarah@users.noreply.github.com>
fixes: #50 Signed-off-by: Nate W <nwaddington@cncf.io>
Signed-off-by: Nate W <nwaddington@cncf.io>
Signed-off-by: Nate W <nwaddington@cncf.io>
@@ -66,6 +66,9 @@ | |||
|
|||
$font-family-headers: "Fira Sans" | |||
|
|||
.logo | |||
max-width: 200px |
There was a problem hiding this comment.
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
@@ -17,6 +17,12 @@ contentDir = "/content/" | |||
[params.logos] | |||
navbar = "cncf-color.png" | |||
|
|||
[[params.social]] |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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 :)
@@ -1,5 +1,6 @@ | |||
--- | |||
title: "Section 1 index" | |||
linkTitle: "Section 1 index and linkTitle Sample" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
layouts/partials/github-edit.html
Outdated
@@ -1,7 +1,7 @@ | |||
<div class="col col-4"> | |||
{{ $repoUrl := .Site.Params.repositoryUrl }} | |||
{{ $filePath := .File.Path }} | |||
{{ $editUrl := print $repoUrl "/content/" $filePath }} | |||
{{ $editUrl := print $repoUrl "/blob/main/content/" $filePath }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Signed-off-by: Nate W <nwaddington@cncf.io> Co-authored-by: Celeste Horgan <celeste@cncf.io>
Removing `</br>`, wrapping both lines with `<p>` Signed-off-by: Nate W <nwaddington@cncf.io> Co-authored-by: Celeste Horgan <celeste@cncf.io>
Signed-off-by: Nate W <nwaddington@cncf.io>
Signed-off-by: Nate W <nwaddington@cncf.io>
…ht notice. Signed-off-by: Nate W <nwaddington@cncf.io>
@zacharysarah @celestehorgan can we merge this in and open a separate tix for the legal/copyright discussion? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Per @nate-double-u's suggestion, let's get clarification on the copyright seperately and merge this.
Nate, please rebase the PR and merge.
Signed-off-by: Nate W <nwaddington@cncf.io> # Conflicts: # content/test-content/docs-section-1/_index.md
Approving and continuing conversation in a subsequent pr
Using css for logo width in navbar partial. Fixes #36
Adding CNCF Branding Elements Near Bottom of home page. Fixes #35
Adding Linux Foundation copyright notice to footer. Fixes #34
Add GitHub button to top level nav. Fixes #50