Skip to content

Commit

Permalink
update home with env check for links
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdel101 committed Apr 21, 2024
1 parent fb7d141 commit 91284c8
Showing 1 changed file with 29 additions and 8 deletions.
37 changes: 29 additions & 8 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,40 @@
forloop.last -%} {{ comma }} {%- endunless %}
</p>
{% endif -%} {%- endfor -%} ] {%- elsif pair.value.first -%} {{ quote
}}<span class="key">{{ pair.key }}</span>{{ quote }}: [ {% for value in
pair.value -%} {% if value.url -%}
<p class="ms">
{{ quote }}<a class="value" href="{{ value.url }}" {{ target }}
>{{ value.value }}</a
>{{ quote }} {%- unless forloop.last -%} {{ comma }} {%- endunless %}
</p>
}}<span class="key">{{ pair.key }}</span>{{ quote }}:
[ {% for value in
pair.value -%} {% if value.url -%}
{% if pair.key == "my resumes" %}
{{jekyll.environment}}
{% if jekyll.environment != "development" %}
<p class="ms">
{{ quote }}<a class="value" href="chris-del-portfolio{{ value.url }}" {{ target }}
>{{ value.value }}</a
>{{ quote }} {%- unless forloop.last -%} {{ comma }} {%- endunless %}
</p>
{% else %}
<p class="ms">
{{ quote }}<a class="value" href="{{ value.url }}" {{ target }}
>{{ value.value }}</a
>{{ quote }} {%- unless forloop.last -%} {{ comma }} {%- endunless %}
</p>
{% endif %}
{% else %}
<p class="ms">
{{ quote }}<a class="value" href="{{ value.url }}" {{ target }}
>{{ value.value }}</a
>{{ quote }} {%- unless forloop.last -%} {{ comma }} {%- endunless %}
</p>
{% endif %}


{% else -%}
<p class="ms">
{{ quote }}<span class="value">{{ value }}</span>{{ quote }} {%- unless
forloop.last -%} {{ comma }} {%- endunless %}
</p>
{% endif -%} {%- endfor -%} ] {%- elsif pair.url -%} {{ quote }}<span
{% endif -%} {%- endfor -%} ]
{%- elsif pair.url -%} {{ quote }}<span
class="key"
>{{ pair.key }}</span
>{{ quote }}: {{ quote }}<a class="value" href="{{ pair.url }}" {{ target }}
Expand Down

0 comments on commit 91284c8

Please sign in to comment.