Skip to content

Instantly share code, notes, and snippets.

@shigeya
Created July 24, 2014 22:29
Show Gist options
  • Save shigeya/546b7781bd6b64aded37 to your computer and use it in GitHub Desktop.
Save shigeya/546b7781bd6b64aded37 to your computer and use it in GitHub Desktop.
Fix to URL generation of the page
diff --git a/_plugins/monthly_archive_plugin.rb b/_plugins/monthly_archive_plugin.rb
index b6c6b59..b6ede86 100644
--- a/_plugins/monthly_archive_plugin.rb
+++ b/_plugins/monthly_archive_plugin.rb
@@ -65,7 +65,10 @@ module Jekyll
'layout' => @layout,
'type' => 'archive',
'title' => "Monthly archive for #{@year}/#{@month}",
- 'posts' => posts
+ 'posts' => posts,
+ 'url' => File.join('/',
+ site.config['monthly_archive']['path'],
+ @archive_dir_name, 'index.html')
}
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment