Skip to content

Commit 7fe5512

Browse files
authored
Make CNCF logo relative to site root (#19)
Previously with it being page-relative, the logo would render on the main page at '/' but would not work for nested pages such as '/about/'. I've updated both the "main" template and the juice template, although it appears that only the juice template is actually used by the site. Signed-off-by: John Eckersberg <jeckersb@redhat.com>
1 parent dd22451 commit 7fe5512

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

templates/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ <h3 class="title-text text-center">
5353
{% block footer %}
5454
<footer>
5555
<p class="subtext">We are a Cloud Native Computing Foundation sandbox project.</p>
56-
<p><a href="https://cncf.io"><img src="img/cncf-color-bg.svg" height="75px" alt="CNCF logo"></a></p>
56+
<p><a href="https://cncf.io"><img src="{{ get_url(path='img/cncf-color-bg.svg') }}" height="75px" alt="CNCF logo"></a></p>
5757
<p class="subtext">
5858
bootc, originally created by Red Hat and donated to open source with ❤<br/>
5959
Copyright © bootc, a Series of LF Projects, LLC<br/>
6060
For website terms of use, trademark policy and other project policies please see <a href="https://lfprojects.org/policies/">lfprojects.org/policies/</a>.
6161
</p>
6262
</footer>
63-
{% endblock footer %}
63+
{% endblock footer %}

themes/juice/templates/base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
{% block footer %}
7979
<footer>
8080
<p class="subtext">We are a Cloud Native Computing Foundation sandbox project.</p>
81-
<p><a href="https://cncf.io"><img src="img/cncf-color-bg.svg" height="75px" alt="CNCF logo"></a></p>
81+
<p><a href="https://cncf.io"><img src="{{ get_url(path='img/cncf-color-bg.svg') }}" height="75px" alt="CNCF logo"></a></p>
8282
<p class="subtext">
8383
bootc, originally created by Red Hat and donated to open source with ❤<br/>
8484
Copyright © bootc, a Series of LF Projects, LLC<br/>
@@ -112,4 +112,4 @@
112112
items.forEach(item => observer.observe(item));
113113
</script>
114114

115-
</html>
115+
</html>

0 commit comments

Comments
 (0)