summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Hallsby <karl@hallsby.com>2021-11-17 00:25:00 -0600
committerKarl Hallsby <karl@hallsby.com>2021-11-17 00:25:41 -0600
commiteff736d1312bf7799ae68eadbae860da00c35e46 (patch)
tree01209acac18745f601021134ad478bf1c570e337
parentfcd3a21a9ba3affeb87744165abf1aeb6264b2eb (diff)
Put social information in footer ALL the time
Defined a new boolean value in config.yml to enable this printing. The social logos do not show in the actual footer, but right above it. This happens on ALL pages as well.
-rw-r--r--_config.yml2
-rw-r--r--_includes/footer.html11
-rw-r--r--_layouts/about.html8
3 files changed, 12 insertions, 9 deletions
diff --git a/_config.yml b/_config.yml
index c1273bf..37101ea 100644
--- a/_config.yml
+++ b/_config.yml
@@ -52,7 +52,7 @@ og_image: # The site-wide (default for all links) Open Graph preview image
# -----------------------------------------------------------------------------
# Social integration
# -----------------------------------------------------------------------------
-
+social_footer: true
github_username: "KarlJoad" # your GitHub user name
# gitlab_username: "KarlJoad" # your GitLab user name
twitter_username: # your Twitter handle
diff --git a/_includes/footer.html b/_includes/footer.html
index 2e34521..7573af4 100644
--- a/_includes/footer.html
+++ b/_includes/footer.html
@@ -1,3 +1,14 @@
+{% if site.social_footer %}
+<hr>
+<!-- Social Information -->
+<div class="social">
+ <div class="contact-icons">
+ {% include social.html %}
+ </div>
+ <div class="contact-note">{{ site.contact_note }}</div>
+</div>
+{% endif %}
+
{% if site.footer_fixed %}
<footer class="fixed-bottom">
<div class="container mt-0">
diff --git a/_layouts/about.html b/_layouts/about.html
index bb3b6b1..4ebfa26 100644
--- a/_layouts/about.html
+++ b/_layouts/about.html
@@ -37,14 +37,6 @@ layout: default
{% include selected_papers.html %}
{% endif %}
- {% if page.social %}
- <div class="social">
- <div class="contact-icons">
- {% include social.html %}
- </div>
- <div class="contact-note">{{ site.contact_note }}</div>
- </div>
- {% endif %}
</article>
</div>