mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Clean some code and add documentation
This commit is contained in:
parent
06685bbe13
commit
9b05a0bc8e
15 changed files with 208 additions and 140 deletions
|
@ -1,3 +1,6 @@
|
|||
#sitemap.rb generates a sitemap.xml file, which also includes
|
||||
#alternate hreflang for each translated version of each page.
|
||||
|
||||
require 'yaml'
|
||||
require 'cgi'
|
||||
|
||||
|
@ -11,7 +14,6 @@ module Jekyll
|
|||
|
||||
class SitemapGenerator < Generator
|
||||
def generate(site)
|
||||
|
||||
#Load translations
|
||||
locs = {}
|
||||
Dir.foreach('_translations') do |file|
|
||||
|
@ -110,7 +112,6 @@ module Jekyll
|
|||
sitemap.puts '</urlset>'
|
||||
end
|
||||
site.static_files << SitemapFile.new(site, site.source, '', 'sitemap.xml')
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue