diff --git a/README.md b/README.md index 3bccb89..fb87bfb 100644 --- a/README.md +++ b/README.md @@ -134,6 +134,7 @@ css | List of local CSS files to include in the page ex-css | List of external CSS files to include in the page googlefonts | List of Google fonts to include in the page (eg. `["Monoton", "Lobster"]`) fb-img | If you want to share a page on Facebook, by default Facebook will use the first image it can find on the page. If you want to specify an image to use when sharing the page on Facebook, then provide the image's URL here +show-avatar | If you have an avatar configured in the `_config.yml` but you want to turn it off on a specific page, use `show-avatar: false`. If you want to turn it off by default, locate the line `show-avatar: true` in the file `_config.yml` and change the `true` to `false`; then you can selectively turn it on in specific pages using `show-avatar: true`. ### RSS feed diff --git a/_config.yml b/_config.yml index 3db29ab..c56c7a2 100644 --- a/_config.yml +++ b/_config.yml @@ -88,6 +88,7 @@ defaults: path: "" # all files values: layout: "default" + show-avatar: true # Exclude these files from production site exclude: diff --git a/_includes/nav.html b/_includes/nav.html index e9aa662..9d543d2 100644 --- a/_includes/nav.html +++ b/_includes/nav.html @@ -22,7 +22,7 @@ {% assign internal = false %} {% endif %} {% endif %} - + {% if internal %} {% capture linkurl %}{{ site.baseurl }}/{{ link[1] }}{% endcapture %} {% else %} @@ -34,8 +34,8 @@ {% endfor %} - - {% if site.avatar %} + + {% if site.avatar and (layout.show-avatar or page.show-avatar) %}
@@ -44,6 +44,6 @@
{% endif %} - + - + diff --git a/_layouts/default.html b/_layouts/default.html index 3956af3..447999a 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -15,11 +15,11 @@ common-js: - + {% include head.html %} - + {% include nav.html %}
@@ -27,8 +27,8 @@ common-js:
{% include footer.html %} - + {% include footer-scripts.html %} - +