mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Merge branch 'license'
This commit is contained in:
commit
64a6f780be
276 changed files with 527 additions and 172 deletions
|
@ -1,3 +1,6 @@
|
|||
# This file is licensed under the MIT License (MIT) available on
|
||||
# http://opensource.org/licenses/MIT.
|
||||
|
||||
#sitemap.rb generates a sitemap.xml file, which also includes
|
||||
#alternate hreflang for each translated version of each page.
|
||||
|
||||
|
@ -24,7 +27,7 @@ module Jekyll
|
|||
enabled = ENV['ENABLED_LANGS'];
|
||||
enabled = enabled.split(' ') if !enabled.nil?
|
||||
Dir.foreach('_translations') do |file|
|
||||
next if file == '.' or file == '..'
|
||||
next if file == '.' or file == '..' or file == 'COPYING'
|
||||
lang=file.split('.')[0]
|
||||
#Ignore lang if disabled
|
||||
if lang != 'en' and !enabled.nil? and !enabled.include?(lang)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue