mirror of
https://github.com/Ellpeck/TinyLifeWeb.git
synced 2024-11-16 17:03:13 +01:00
10 lines
376 B
Ruby
10 lines
376 B
Ruby
|
# copy changelog and news to includes
|
||
|
FileUtils.cp '../InGameNews.md', '_includes/__news.md'
|
||
|
FileUtils.cp '../Changelog.md', '_includes/__changelog.md'
|
||
|
|
||
|
# after the site is generated, copy changelog and news media into it
|
||
|
Jekyll::Hooks.register :site, :post_write do
|
||
|
FileUtils.cp_r "../media/news", "_site/media"
|
||
|
FileUtils.cp_r "../media/changelog", "_site/media"
|
||
|
end
|