Added generation date in web files footer.
This commit is contained in:
parent
caf111e657
commit
368b476030
3 changed files with 5 additions and 4 deletions
|
|
@ -17,7 +17,7 @@
|
|||
{% endblock %}
|
||||
<footer>
|
||||
{{ footer.mentions(lang) }}
|
||||
{{ footer.generated(lang) }}
|
||||
{{ footer.generated(lang, date_format(lang, site.generated)) }}
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@
|
|||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro generated(lang) %}
|
||||
{% macro generated(lang, date) %}
|
||||
{% if lang == 'en' %}
|
||||
<p>Generated with <a href="https://metalsmith.io">Metalsmith</a> (<a href="https://apps.ti-nuage.fr/gitea/david/david.soulayrol.name">Sources</a>). Hosted by <a href="https://ti-nuage.fr">Ti Nuage</a>.</p>
|
||||
<p>Generated on {{ date }} with <a href="https://metalsmith.io">Metalsmith</a> (<a href="https://forge.ti-nuage.fr/gitea/david/david.soulayrol.name">Sources</a>). Hosted by <a href="https://ti-nuage.fr">Ti Nuage</a>.</p>
|
||||
{% else %}
|
||||
<p>Généré avec <a href="https://metalsmith.io">Metalsmith</a> (<a href="https://apps.ti-nuage.fr/gitea/david/david.soulayrol.name">Sources</a>). Hébergé par <a href="https://ti-nuage.fr">Ti Nuage</a>.</p>
|
||||
<p>Généré le {{ date }} avec <a href="https://metalsmith.io">Metalsmith</a> (<a href="https://forge.ti-nuage.fr/gitea/david/david.soulayrol.name">Sources</a>). Hébergé par <a href="https://ti-nuage.fr">Ti Nuage</a>.</p>
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
|
|
|||
|
|
@ -22,6 +22,7 @@ module.exports = new Metalsmith(config.paths.projectRoot)
|
|||
},
|
||||
remove_diatrics: function (e) { return slug(e, { mode: 'rfc3986' }) },
|
||||
site: {
|
||||
generated: new Date(),
|
||||
title: 'David Soulayrol'
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue