From a4cb2a5de48f4ec869167d984eaa2d186a499836 Mon Sep 17 00:00:00 2001 From: Antonio Lanfranchi Date: Mon, 24 Jul 2017 16:48:37 -0700 Subject: [PATCH] Made avatar optional. It will no longer render if it is commented out in the config. (#10) Excellent. Thank you! --- layouts/index.html | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/layouts/index.html b/layouts/index.html index f0f0edf..97add95 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -1,4 +1,4 @@ - @@ -57,11 +57,14 @@

About

-
My profile picture. + {{ if .Site.Params.avatar }} +
+ My profile picture.
+ {{ end }}
{{ range .Data.Pages }} - {{if eq .Title "about" }} + {{if eq .Title "about" }} {{.Content}} {{end}} {{ end }} @@ -82,7 +85,7 @@

- {{ end }} + {{ end }} @@ -100,7 +103,7 @@

Contact

{{ range .Data.Pages }} - {{if eq .Title "contact" }} + {{if eq .Title "contact" }} {{.Content}} {{end}} {{ end }} @@ -151,4 +154,4 @@ $('a[href^="#"]').click(function(e) { }) - \ No newline at end of file +