From 03b7263e80e16ae3fbcdf69967604ec953e35003 Mon Sep 17 00:00:00 2001 From: kaushik327 Date: Mon, 7 Oct 2024 09:25:32 -0500 Subject: [PATCH 1/2] Remove sidebar footer when sidebar is gone The two footers say the same thing --- _includes/components/sidebar.html | 2 +- _includes/footer_custom.html | 2 +- _sass/layout.scss | 10 ++++++++++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/_includes/components/sidebar.html b/_includes/components/sidebar.html index 1f5c7d51a0..18883e7cae 100644 --- a/_includes/components/sidebar.html +++ b/_includes/components/sidebar.html @@ -30,6 +30,6 @@ {% assign color_scheme = "light" %} {% endif %} - {{site.title}} is a member of
. + {{site.title}} is a member of
diff --git a/_includes/footer_custom.html b/_includes/footer_custom.html index 10871c902c..502f39845b 100644 --- a/_includes/footer_custom.html +++ b/_includes/footer_custom.html @@ -1,5 +1,5 @@ {%- if site.footer_content -%}

{{ site.footer_content }}

{%- else -%} -

Copyright © {{ site.time | date: '%Y' }} by {{ site.title }}, a member of ACM@UIUC.

+

Copyright © {{ site.time | date: '%Y' }} by {{ site.title }}, a member of ACM@UIUC.

{%- endif -%} diff --git a/_sass/layout.scss b/_sass/layout.scss index 4cc6ee4c2f..e23a95f74d 100644 --- a/_sass/layout.scss +++ b/_sass/layout.scss @@ -53,6 +53,16 @@ } } } + + // Don't display the sidebar footer when the sidebar is gone, since + // it says the same thing as the other footer + .site-footer { + display: none; + + @include mq(md) { + display: block; + } + } } .main { From 03f28cf284cb75ea029df1c28b2313bbff4db745 Mon Sep 17 00:00:00 2001 From: kaushik327 Date: Mon, 7 Oct 2024 16:10:32 -0500 Subject: [PATCH 2/2] Add it back and make it the right size --- _includes/components/footer.html | 2 +- _sass/layout.scss | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/_includes/components/footer.html b/_includes/components/footer.html index 01b2c235d0..956106767c 100644 --- a/_includes/components/footer.html +++ b/_includes/components/footer.html @@ -11,7 +11,7 @@ {{ footer_custom }} {% if site.last_edit_timestamp or site.gh_edit_link %} -
+
{% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %}

Page last modified: {{ page.last_modified_date | date: site.last_edit_time_format }}. diff --git a/_sass/layout.scss b/_sass/layout.scss index e23a95f74d..17637c604c 100644 --- a/_sass/layout.scss +++ b/_sass/layout.scss @@ -54,15 +54,15 @@ } } - // Don't display the sidebar footer when the sidebar is gone, since - // it says the same thing as the other footer .site-footer { - display: none; - - @include mq(md) { - display: block; + img { + max-width: 100px; + @include mq(md) { + max-width: none; + } } } + } .main {