From 39745a92247dbe798f03dd239b7d627a1f729a9b Mon Sep 17 00:00:00 2001 From: Maruan Al-Shedivat Date: Sat, 2 May 2020 15:45:16 -0400 Subject: [PATCH] Minor fixes to navbar --- _config.yml | 7 +++---- _includes/header.html | 35 +++++++++++++++++++++++------------ _layouts/about.html | 2 +- _sass/_base.scss | 8 ++++++++ 4 files changed, 35 insertions(+), 17 deletions(-) diff --git a/_config.yml b/_config.yml index f24ab3a..d008cce 100644 --- a/_config.yml +++ b/_config.yml @@ -21,7 +21,6 @@ last_updated: false # set to true if you want to display last updated in the foo navbar_fixed: true footer_fixed: false -social_icons_pos: bottom # TODO: add layout settings (single page vs. multi-page) # ----------------------------------------------------------------------------- @@ -80,7 +79,7 @@ news_limit: 5 # Build settings markdown: kramdown -highlighter: pygments +highlighter: rouge # Includes & excludes include: ['_pages'] @@ -125,12 +124,12 @@ scholar: # ----------------------------------------------------------------------------- enable_google_analytics: false -enable_highlight: true +enable_highlight: false enable_katex: true enable_mansory: false enable_progressbar: false enable_tooltips: false -show_social_icons: true +show_social_icons: false # ----------------------------------------------------------------------------- # Library versions diff --git a/_includes/header.html b/_includes/header.html index a6803ba..b55758c 100644 --- a/_includes/header.html +++ b/_includes/header.html @@ -6,7 +6,7 @@ {% if page.title != "about" %} {% assign name = site.title | split: ' ' %} {{ name | first }} {{ name | last }} - {% elsif site.social_icons_pos == 'top' %} + {% elsif site.show_social_icons %}
{% include social.html %} @@ -21,7 +21,8 @@ diff --git a/_layouts/about.html b/_layouts/about.html index 6bcdb22..683d186 100644 --- a/_layouts/about.html +++ b/_layouts/about.html @@ -24,7 +24,7 @@ layout: page {% include news.html %} {% endif %} -{% if page.social and site.social_icons_pos == 'bottom' %} +{% if page.social %}