diff --git a/layout/_partials/header/menu-item.njk b/layout/_partials/header/menu-item.njk index b5adab9..4513eb3 100644 --- a/layout/_partials/header/menu-item.njk +++ b/layout/_partials/header/menu-item.njk @@ -6,10 +6,7 @@ {%- endif %}
  • {{ path | upper }}
  • {% else %} - {%- if link == '' %} - {%- set link = '/' + path %} - {% else %} - {%- set link = link + '/' + path %} - {%- endif %} + {%- set link = '/' + path if link == '' else link + '/' + path %} {%- if path.endsWith('.html') %}
  • {{ path | replace(r/\.html$/, '') | upper }}
  • {% else %} diff --git a/layout/_partials/post/post-followme.njk b/layout/_partials/post/post-followme.njk index a3a9414..2af838f 100644 --- a/layout/_partials/post/post-followme.njk +++ b/layout/_partials/post/post-followme.njk @@ -6,7 +6,7 @@
    {%- for name, value in theme.follow_me %} {%- set link = value.split('||')[0] | trim %} - {%- set icon = value.split('||')[1] | trim %} + {%- set icon = value.split('||')[1] | trim if value.split('||')[1] else '' %}