0625ced466
* Add Docsy, required packages and config * Apply Docsy integration work to k8s website This encompasses significant changes to the style system, layout files, as well as changes to some of the static assets. To examine this work and the iterations that were performed, the original repository can be found at https://github.com/gearbox-built/kubernetes-hugo.git * Address issues found in review The styling and positioning of the header, footer, some shortcodes and main container elements are improved. A new partial is added for favicons. The sidebars, as well as inner table of contents, have been altered for better positioning and rendering of content. Localization has also been addressed. * Enable announcements The recent Black Lives Matter announcement surfaced issues which have been addressed.
52 lines
2.2 KiB
HTML
52 lines
2.2 KiB
HTML
<div id="pre-footer">
|
|
<!-- This is at the bottom of every topic underneath the TOC and content -->
|
|
<hr/>
|
|
|
|
<div class="issue-button-container">
|
|
<p>
|
|
<a href=""><img alt="Analytics" src="https://kubernetes-site.appspot.com/UA-36037335-10/GitHub/{{ .Path }}?pixel"/></a>
|
|
</p>
|
|
{{ if and (ne .Kind "404") (not (strings.Contains .Path "search")) }}
|
|
{{ if not .Params.no_issue }}
|
|
<script type="text/javascript">
|
|
PDRTJS_settings_8345992 = {
|
|
"id": "8345992",
|
|
"unique_id": "{{ .RelPermalink }}",
|
|
"title": "{{ .Title }}",
|
|
"permalink": "{{ .Permalink }}"
|
|
};
|
|
(function (d, c, j) {
|
|
if (!document.getElementById(j)) {
|
|
var pd = d.createElement(c),
|
|
s;
|
|
pd.id = j;
|
|
pd.src = ("https:" == document.location.protocol)
|
|
? "https://polldaddy.com/js/rating/rating.js"
|
|
: "http://i0.poll.fm/js/rating/rating.js";
|
|
s = document.getElementsByTagName(c)[0];
|
|
s.parentNode.insertBefore(pd, s);
|
|
}
|
|
}(document, "script", "pd-rating-js"));
|
|
</script>
|
|
<a class="btn btn-primary mb-4 issue" href="" onclick="window.open('https://github.com/kubernetes/website/issues/new?template=bug-report.md&title=Issue%20with%20' +
|
|
'k8s.io'+window.location.pathname)">{{ T "main_github_create_an_issue" }}</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ if not .Params.noedit }}
|
|
{{ if .File }}
|
|
<a class="btn btn-primary mb-4 issue" href="https://github.com/kubernetes/website/edit/master/content/{{ site.Language.Lang }}/{{ .File.Path }}">{{ T "main_edit_this_page" }}</a>
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
{{ if and (not .Params.showcommit) $.GitInfo }}
|
|
|
|
<div class="lastedit issue-button-container" id="lastedit">
|
|
{{ T "main_page_last_modified_on" }}
|
|
{{ .GitInfo.AuthorDate.Format "January 02, 2006 at 3:04 PM PST" }}
|
|
{{ T "main_by" }}
|
|
<a href="https://github.com/kubernetes/website/commit/{{ .GitInfo.Hash }}/">{{ .GitInfo.Subject }}</a>
|
|
(<a href="https://github.com/kubernetes/website/commits/master/content/en/{{ .File.Path }}">{{ T "main_page_history" }}</a>)
|
|
</div>
|
|
{{ end }}
|
|
</div>
|