From 991fd7a6d67ee017c57beaaa21fc31c4bee7944d Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Sat, 7 Oct 2023 06:48:07 +0800 Subject: feat(version): versions --- src/templates/partials/source-file.html | 44 +++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/templates/partials/source-file.html (limited to 'src/templates/partials/source-file.html') diff --git a/src/templates/partials/source-file.html b/src/templates/partials/source-file.html new file mode 100644 index 00000000..928e35de --- /dev/null +++ b/src/templates/partials/source-file.html @@ -0,0 +1,44 @@ + + + +
+
+ + + + {% if page.meta.git_revision_date_localized %} + {{ lang.t("source.file.date.updated") }}: + {{ page.meta.git_revision_date_localized }} + {% if page.meta.git_creation_date_localized %} +
+ {{ lang.t("source.file.date.created") }}: + {{ page.meta.git_creation_date_localized }} + {% endif %} + + + {% elif page.meta.revision_date %} + {{ lang.t("source.file.date.updated") }}: + {{ page.meta.revision_date }} + {% endif %} +
+
-- cgit v1.2.3-70-g09d2