shiro-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fpa...@apache.org
Subject [shiro-site] branch master updated: [SHIRO-249] Create XML sitemap
Date Tue, 31 Mar 2020 15:12:43 GMT
This is an automated email from the ASF dual-hosted git repository.

fpapon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shiro-site.git


The following commit(s) were added to refs/heads/master by this push:
     new 9d08c0d  [SHIRO-249] Create XML sitemap
     new cfb6460  Merge pull request #56 from bmhm/SHIRO-249
9d08c0d is described below

commit 9d08c0da8cc3a772401bd7557407136507f0fd87
Author: Benjamin Marwell <bmarwell@gmail.com>
AuthorDate: Sun Mar 29 21:11:23 2020 +0200

    [SHIRO-249] Create XML sitemap
    
      - moved existing site.xml to sitemap.xml
      - referenced in new file robots.txt
      - added link header to default template.
---
 robots.txt              | 1 +
 site.xml => sitemap.xml | 0
 templates/default.vtl   | 1 +
 3 files changed, 2 insertions(+)

diff --git a/robots.txt b/robots.txt
new file mode 100644
index 0000000..ef7a895
--- /dev/null
+++ b/robots.txt
@@ -0,0 +1 @@
+Sitemap: https://shiro.apache.org/sitemap.xml
diff --git a/site.xml b/sitemap.xml
similarity index 100%
rename from site.xml
rename to sitemap.xml
diff --git a/templates/default.vtl b/templates/default.vtl
index 0829a1a..e349169 100644
--- a/templates/default.vtl
+++ b/templates/default.vtl
@@ -24,6 +24,7 @@
     <meta name="google-site-verification" content="ecFap6dWJgS_GCCtxmJQJ_nFYQhM6EgSpBPZDU7xsCE">
     <meta name="msvalidate.01" content="0B57EB46CBFAD8FD45008D2DB6B6C68C">
     <meta name="y_key" content="e47896cd6bae4920">
+    <link rel="sitemap" type="application/xml" title="Sitemap" href="/sitemap.xml">
 
     <title>
     #if ($title)


Mime
View raw message