Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/rafed/ramium.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafed Muhammad Yasir <rafed123@yahoo.com>2020-05-02 23:00:11 +0300
committerRafed Muhammad Yasir <rafed123@yahoo.com>2020-05-02 23:00:11 +0300
commit61904c9e0bed0036b5e882e7bed20b0c0c6961ac (patch)
tree286f8158eca2b7705c5e8073a4459b27fde76bf9
parent65448e7f5b3cc916a6b4f774ac64ad182a554275 (diff)
Added custom sitemap
-rw-r--r--archetypes/default.md2
-rw-r--r--archetypes/posts/default.md7
-rw-r--r--exampleSite/content/posts/6. Happy birthday chords.md4
-rw-r--r--layouts/sitemap.xml18
-rw-r--r--theme.toml2
5 files changed, 32 insertions, 1 deletions
diff --git a/archetypes/default.md b/archetypes/default.md
index 4535518..816517d 100644
--- a/archetypes/default.md
+++ b/archetypes/default.md
@@ -13,3 +13,5 @@ For other options, put these in the front matter:
showDate: true/false to enable/disable showing dates
math: true to enable showing equations (katex)
chordsheet: true to add chordsheet styelsheet
+ lastmod: 2020-4-11 after modifying an article, set lastmod to let google know
+ that you have updated the article (SEO)
diff --git a/archetypes/posts/default.md b/archetypes/posts/default.md
index 4535518..facbfd2 100644
--- a/archetypes/posts/default.md
+++ b/archetypes/posts/default.md
@@ -13,3 +13,10 @@ For other options, put these in the front matter:
showDate: true/false to enable/disable showing dates
math: true to enable showing equations (katex)
chordsheet: true to add chordsheet styelsheet
+
+For better seo you can set
+ lastmod: 2020-4-11 after modifying an article, set lastmod to let google know
+ that you have updated the article (SEO)
+ sitemap:
+ changefreq: "yearly" to let know how often article is changed
+ priority: 0.9 (0-1) to show how important the page is \ No newline at end of file
diff --git a/exampleSite/content/posts/6. Happy birthday chords.md b/exampleSite/content/posts/6. Happy birthday chords.md
index 135358d..659d07d 100644
--- a/exampleSite/content/posts/6. Happy birthday chords.md
+++ b/exampleSite/content/posts/6. Happy birthday chords.md
@@ -5,6 +5,10 @@ description: Chords for Happy Birthday Song
tags: ["chords", "music"]
chordsheet: true
image: "/image/staff.jpg"
+lastmod: 2020-05-02
+sitemap:
+ changefreq: "never"
+ priority: 0.9
---
<div class="chord-sheet"><div class="paragraph"></div><div class="paragraph"><div class="row"><div class="column"><div class="chord"></div><div class="lyrics">Happy </div></div><div class="column"><div class="chord">A</div><div class="lyrics">Birthday </div></div><div class="column"><div class="chord">E</div><div class="lyrics">to you</div></div></div><div class="row"><div class="column"><div class="chord"></div><div class="lyrics">Happy </div></div><div class="column"><div class="chord">E</div><div class="lyrics">Birthday </div></div><div class="column"><div class="chord">A</div><div class="lyrics">to you</div></div></div><div class="row"><div class="column"><div class="chord"></div><div class="lyrics">Happy </div></div><div class="column"><div class="chord">A7</div><div class="lyrics">Birthday dear </div></div><div class="column"><div class="chord">D</div><div class="lyrics">Johnny</div></div></div><div class="row"><div class="column"><div class="chord"></div><div class="lyrics">Happy </div></div><div class="column"><div class="chord">A</div><div class="lyrics">Birthday </div></div><div class="column"><div class="chord">E</div><div class="lyrics">to </div></div><div class="column"><div class="chord">A</div><div class="lyrics">you</div></div></div></div><div class="paragraph"></div></div>
diff --git a/layouts/sitemap.xml b/layouts/sitemap.xml
new file mode 100644
index 0000000..6b6be8d
--- /dev/null
+++ b/layouts/sitemap.xml
@@ -0,0 +1,18 @@
+<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
+ {{ range .Data.Pages }}
+ {{ if not (or (strings.HasSuffix .RelPermalink "/addons/") (strings.HasSuffix .RelPermalink "/admin/")) }}
+
+ <url>
+ <loc>{{- .Permalink -}}</loc>
+ <lastmod>{{ .Lastmod.Format "2006-01-02T15:04:05-07:00" }}</lastmod>
+ {{ with .Sitemap.ChangeFreq }}
+ <changefreq>{{ . }}</changefreq>
+ {{ end }}
+
+ {{ if ge .Sitemap.Priority 0.0 }}
+ <priority>{{ .Sitemap.Priority }}</priority>
+ {{ end }}
+ </url>
+ {{ end }}
+ {{ end }}
+</urlset> \ No newline at end of file
diff --git a/theme.toml b/theme.toml
index 0b44da4..a52ebaa 100644
--- a/theme.toml
+++ b/theme.toml
@@ -6,7 +6,7 @@ license = "MIT"
licenselink = "https://github.com/rafed/ramium/blob/master/LICENSE"
description = "A modern hugo theme for awesome blogs"
homepage = "https://github.com/rafed/ramium/"
-tags = ["blog", "responsive", "google analytics", "disqus", "chords", "google search", "bulma", fast", "social media share", "code", "math equations", "seo"]
+tags = ["blog", "responsive", "google analytics", "disqus", "chords", "google search", "bulma", "fast", "social media share", "code", "math equations", "seo"]
features = ["chordsheetjs", "admin panel", "social media share", "math equations"]
min_version = "0.57.2"