From 764239468a728daae24e947a4c7484ebef5e8689 Mon Sep 17 00:00:00 2001 From: Achilleas Pipinellis Date: Mon, 9 Apr 2018 13:42:08 +0200 Subject: Add dynamic archives --- layouts/archives.html | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 layouts/archives.html (limited to 'layouts/archives.html') diff --git a/layouts/archives.html b/layouts/archives.html new file mode 100644 index 00000000..ec3f9188 --- /dev/null +++ b/layouts/archives.html @@ -0,0 +1,39 @@ + + + +<%= render '/head.*' %> + + + <%= render '/header.*' %> +
+
+
+ <%= yield %> +
+ <% if ENV['NANOC_ENV'] == 'production' && ENV['CI_COMMIT_REF_NAME'] == 'master' %> + <%# Show Edit button only in production and on master branch (hide archives) %> +
+ <%= edit_on_gitlab(@item) %> +
+ <% end %> + <% if @item[:last_updated] %> +
+

+ Last updated <%= @item[:last_updated] %> +

+ <% end %> + <%= render '/disqus.*' %> +
+
+
+ + + + + <%= render '/footer.*' %> + <%= render '/docsearch.*' %> + <%= render '/analytics.*' %> + <%= render '/https_redirect.*' %> + <%= render '/schema-microdata.*' %> + + -- cgit v1.2.3