diff --git a/views/_globals.sample.njk b/views/_globals.sample.njk index 7726615..14bad15 100644 --- a/views/_globals.sample.njk +++ b/views/_globals.sample.njk @@ -66,7 +66,7 @@ attrs: { id: 'ShareX', title: 'ShareX user profile', - href: 'https://safe.fiery.me/safe.fiery.me.sxcu?v=' + v2 + href: 'https://safe.fiery.me/safe.fiery.me.sxcu?v=' + (versions[2] or '') }, icon: 'icon-sharex icon-2x' }, diff --git a/views/_layout.njk b/views/_layout.njk index ad95107..93119d1 100644 --- a/views/_layout.njk +++ b/views/_layout.njk @@ -1,4 +1,4 @@ -{%- import '_globals.njk' as globals -%} +{%- import '_globals.njk' as globals with context -%} {# Set root domain here to inherit values from config file #} {%- set root = utils.conf.homeDomain or utils.conf.domain -%}