lib/octopress-ink/assets/page.rb in octopress-ink-1.0.0.rc.15 vs lib/octopress-ink/assets/page.rb in octopress-ink-1.0.0.rc.16
- old
+ new
@@ -19,11 +19,13 @@
end
# Add page to Jekyll pages if no other page has a conflicting destination
#
def add
- if page.url && !Octopress.config['docs_mode']
- Octopress.site.pages << page unless find_page(page)
+ if page.url && !Octopress.config['docs_mode'] && !find_page(page)
+ Octopress.site.pages << page
+ plugin.config['permalinks'] ||= {}
+ plugin.config['permalinks'][File.basename(filename, '.*')] ||= page.url
end
end
def find_page(page)
site_dir = Octopress.site.config['destination']