From 91284c88788ca62b214402b0ffc82e042df9de6f Mon Sep 17 00:00:00 2001 From: Chris Del Date: Sun, 21 Apr 2024 12:23:23 -0600 Subject: [PATCH] update home with env check for links --- _layouts/home.html | 37 +++++++++++++++++++++++++++++-------- 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/_layouts/home.html b/_layouts/home.html index 5b1538c..0f96e96 100644 --- a/_layouts/home.html +++ b/_layouts/home.html @@ -32,19 +32,40 @@ forloop.last -%} {{ comma }} {%- endunless %}

{% endif -%} {%- endfor -%} ] {%- elsif pair.value.first -%} {{ quote - }}{{ pair.key }}{{ quote }}: [ {% for value in - pair.value -%} {% if value.url -%} -

- {{ quote }}{{ value.value }}{{ quote }} {%- unless forloop.last -%} {{ comma }} {%- endunless %} -

+ }}{{ pair.key }}{{ quote }}: + [ {% for value in + pair.value -%} {% if value.url -%} + {% if pair.key == "my resumes" %} + {{jekyll.environment}} + {% if jekyll.environment != "development" %} +

+ {{ quote }}{{ value.value }}{{ quote }} {%- unless forloop.last -%} {{ comma }} {%- endunless %} +

+ {% else %} +

+ {{ quote }}{{ value.value }}{{ quote }} {%- unless forloop.last -%} {{ comma }} {%- endunless %} +

+ {% endif %} + {% else %} +

+ {{ quote }}{{ value.value }}{{ quote }} {%- unless forloop.last -%} {{ comma }} {%- endunless %} +

+ {% endif %} + + {% else -%}

{{ quote }}{{ value }}{{ quote }} {%- unless forloop.last -%} {{ comma }} {%- endunless %}

- {% endif -%} {%- endfor -%} ] {%- elsif pair.url -%} {{ quote }}{{ pair.key }}{{ quote }}: {{ quote }}