            * @return {object} Contains all page's properties, including it's sub pages
           ###
           env.addGlobal 'getPage', (obj, path, subName = 'sub') ->
-            subbedPath = _.clone(path)
-            i = 1
-            position = 1
-            while i < path.length
-              position = if (i > 1) then position + 2 else position
-              subbedPath.splice(position, 0, subName)
-              i++
-            result = _.get(obj, subbedPath)
-            if result then result else grunt.log.error('[getPage] can\'t find requested `' + subbedPath + '` inside specified object')
+            _subbedPath = _.clone(path)
+            _i = 1
+            _position = 1
+            while _i < path.length
+              _position = if (_i > 1) then _position + 2 else _position
+              _subbedPath.splice(_position, 0, subName)
+              _i++
+            result = _.get(obj, _subbedPath)
+            if result then result else grunt.log.error('[getPage] can\'t find requested `' + _subbedPath + '` inside specified object')
 
           ###*
            * Expose `moment.js` to Nunjucks' for parsing, validation, manipulation, and displaying dates

           * @example <a href="{{ localeDir() }}/blog/">blog link</a>
          ###
          env.addGlobal 'localeDir', (locale = currentLocale) ->
            localeDir = getLocaleDir(locale)
            if localeDir then '/' + localeDir else ''

          ###*
          * Load string from current locale

   * @return {string} Language code from locale
  ###
  getLangcode = (locale) ->
    _matched = locale.match(/^(\w*)-?(\w*)-?(\w*)/i)
    # In case of 3 and more matched parts assume that we're dealing with language, wich exists
    # in few forms (like Latin and Cyrillic Serbian (`sr-Latn-CS` and `sr-Cyrl-CS`)
    # For such languages we should output few first parts (`sr-Latn` and `sr-Cyrl`),
    # for other — only first part
    if _matched[3] then _matched[1] + '-' + _matched[2] else _matched[1]

  # Load and invoke content of l10n files
  # @note In native `xgettext` you can set as many domains as you wish per locale. Usually domains
