Skip to content

Commit 03b7263

Browse files
committed
Remove sidebar footer when sidebar is gone
The two footers say the same thing
1 parent a627626 commit 03b7263

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

_includes/components/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@
3030
{% assign color_scheme = "light" %}
3131
{% endif %}
3232

33-
{{site.title}} is a member of <div><a href="https://acm.illinois.edu"><img style="width: 50%;" src="/assets/images/acm-wordmark-{{ color_scheme }}.png"/></a></div>.
33+
{{site.title}} is a member of <div><a href="https://acm.illinois.edu"><img style="width: 50%;" src="/assets/images/acm-wordmark-{{ color_scheme }}.png"/></a></div>
3434
</footer>
3535
</div>

_includes/footer_custom.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{%- if site.footer_content -%}
22
<p class="text-small text-grey-dk-100 mb-0">{{ site.footer_content }}</p>
33
{%- else -%}
4-
<p class="text-small text-grey-dk-100 mb-0">Copyright &copy; {{ site.time | date: '%Y' }} by {{ site.title }}, a member of ACM@UIUC.</p>
4+
<p class="text-small text-grey-dk-100 mb-0">Copyright &copy; {{ site.time | date: '%Y' }} by {{ site.title }}, a member of <a href="https://acm.illinois.edu">ACM@UIUC</a>.</p>
55
{%- endif -%}

_sass/layout.scss

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@
5353
}
5454
}
5555
}
56+
57+
// Don't display the sidebar footer when the sidebar is gone, since
58+
// it says the same thing as the other footer
59+
.site-footer {
60+
display: none;
61+
62+
@include mq(md) {
63+
display: block;
64+
}
65+
}
5666
}
5767

5868
.main {

0 commit comments

Comments
 (0)