Created
July 24, 2014 22:29
-
-
Save shigeya/546b7781bd6b64aded37 to your computer and use it in GitHub Desktop.
Fix to URL generation of the page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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