Skip to content

Commit

Permalink
Adds Linux foundation copyright, privacy, and terms footer
Browse files Browse the repository at this point in the history
Adjusts theme to support CD Foundation's requirements for copyright, privacy, and terms footer.

Adds favicon.ico at root

Fixes #13
  • Loading branch information
skaegi authored and tekton-robot committed Mar 30, 2020
1 parent 5943112 commit 1db8c97
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 2 deletions.
2 changes: 0 additions & 2 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,6 @@ weight = 1
# Everything below this are Site Params

[params]
copyright = "The Tekton Project"
privacy_policy = "https://www.linuxfoundation.org/privacy/"

# First one is picked as the Twitter card image if not set on page.
# images = ["images/project-illustration.png"]
Expand Down
43 changes: 43 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@


# UI strings. Buttons and similar.

[ui_pager_prev]
other = "Previous"

[ui_pager_next]
other = "Next"

[ui_read_more]
other = "Read more"

[ui_search]
other = "Search this site…"

# Used in sentences such as "Posted in News"
[ui_in]
other = "in"

# Footer text
[footer_all_rights_reserved]
other = """
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](https://www.linuxfoundation.org/trademark-usage).
Linux is a registered trademark of Linus Torvalds. [Privacy Policy](https://www.linuxfoundation.org/privacy/) and [Terms of Use](https://www.linuxfoundation.org/terms/).
"""

# Post (blog, articles etc.)
[post_byline_by]
other = "By"
[post_created]
other = "Created"
[post_last_mod]
other = "Last modified"
[post_edit_this]
other = "Edit this page"
[post_create_issue]
other = "Create documentation issue"
[post_create_project_issue]
other = "Create project issue"
[post_posts_in]
other = "Posts in"
38 changes: 38 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{{ $links := .Site.Params.links }}
<footer class="auto-height bg-dark py-5 row d-print-none">
<div class="container-fluid mx-sm-5">
<div class="row">
<div class="col-6 col-sm-4 text-xs-center order-sm-2">
{{ with $links }}
{{ with index . "user"}}
{{ template "footer-links-block" . }}
{{ end }}
{{ end }}
</div>
<div class="col-6 col-sm-4 text-right text-xs-center order-sm-3">
{{ with $links }}
{{ with index . "developer"}}
{{ template "footer-links-block" . }}
{{ end }}
{{ end }}
</div>
<div class="col-12 col-sm-4 text-center py-2 order-sm-2">
<small class="text-white">&copy; {{ now.Year}} {{ T "footer_all_rights_reserved" | markdownify}}</small>
{{ if not .Site.Params.ui.footer_about_disable }}
{{ with .Site.GetPage "about" }}<p class="mt-2"><a href="{{ .RelPermalink }}">{{ .Title }}</a></p>{{ end }}
{{ end }}
</div>
</div>
</div>
</footer>
{{ define "footer-links-block" }}
<ul class="list-inline mb-0">
{{ range . }}
<li class="list-inline-item mx-2 h3" data-toggle="tooltip" data-placement="top" title="{{ .name }}" aria-label="{{ .name }}">
<a class="text-white" target="_blank" href="{{ .url }}">
<i class="{{ .icon }}"></i>
</a>
</li>
{{ end }}
</ul>
{{ end }}
Binary file added static/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions static/stylesheets/tabs.css
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,6 @@ code {
width: 60%;
}

footer.auto-height {
min-height: auto;
}

0 comments on commit 1db8c97

Please sign in to comment.