Added localization support

This commit is contained in:
Giuseppe Pignataro 2019-02-25 18:50:56 +01:00
parent 180f272e6e
commit c873495130

View file

@ -1,8 +1,8 @@
{{ define "content" }} {{ define "content" }}
<div class="notfound"> <div class="notfound">
<h1 class="error-emoji"></h1> <h1 class="error-emoji"></h1>
<p class="error-text">/* 404 page not found. */</p> <p class="error-text">/* 404 {{ i18n "page" }} {{ i18n "not" }} {{ i18n "found" }}. */</p>
<p class="error-link"><a href="{{ .Site.BaseURL }}">Back to Home</a></p> <p class="error-link"><a href="{{ .Site.BaseURL }}">{{ i18n "Back" }} {{ i18n "to" }} {{ i18n "Home" }}</a></p>
</div> </div>
<script> <script>
var errorEmojiContainer = document.getElementsByClassName('error-emoji')[0]; var errorEmojiContainer = document.getElementsByClassName('error-emoji')[0];