mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Misc updates
- Remove redirects to removed pages - Add some folders to ignore list - Update URL in sitemap plugin
This commit is contained in:
parent
c8266c68af
commit
f3631fb9f4
5 changed files with 9 additions and 187 deletions
|
@ -50,13 +50,13 @@ module Jekyll
|
|||
#Don't add a page if their url is not translated
|
||||
next if locs[lang]['url'][id].nil? or locs[lang]['url'][id] == ''
|
||||
sitemap.puts '<url>'
|
||||
sitemap.puts ' <loc>https://bitcoin.org/'+lang+'/'+CGI::escape(locs[lang]['url'][id])+'</loc>'
|
||||
sitemap.puts ' <loc>https://dash-docs.github.io/'+lang+'/'+CGI::escape(locs[lang]['url'][id])+'</loc>'
|
||||
locs.each do |altlang,value|
|
||||
next if locs[altlang]['url'][id].nil? or locs[altlang]['url'][id] == '' or altlang == lang
|
||||
sitemap.puts ' <xhtml:link'
|
||||
sitemap.puts ' rel="alternate"'
|
||||
sitemap.puts ' hreflang="'+altlang+'"'
|
||||
sitemap.puts ' href="https://bitcoin.org/'+altlang+'/'+CGI::escape(locs[altlang]['url'][id])+'" />'
|
||||
sitemap.puts ' href="https://dash-docs.github.io/'+altlang+'/'+CGI::escape(locs[altlang]['url'][id])+'" />'
|
||||
end
|
||||
sitemap.puts '</url>'
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue