ptions();
        if (!usedOptions.locale.startsWith("{{ lang }}")) {
          // Reader is looking at a page in a language that is not their default locale
          // Set date format to page's language locale to avoid incorrect date translation.
          dateFormat = new Intl.DateTimeFormat("{{ lang }}", options)
        }
        publishedDateElement.textContent = dateFormat.format(publishedDate);

      } else {
        console.log("Could not format date");
      }
    }

    formatDates("#published-