Added jekyll variables to store version and other info
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/commit/66249a4f Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/tree/66249a4f Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/diff/66249a4f Branch: refs/heads/master Commit: 66249a4f1430bbd2251490d8cd20e5f1ee95e795 Parents: 29556b1 Author: Matt Post <[email protected]> Authored: Wed May 20 11:20:12 2015 -0400 Committer: Matt Post <[email protected]> Committed: Wed May 20 11:20:12 2015 -0400 ---------------------------------------------------------------------- _config.yml | 38 ++------------------------------------ _data/joshua.yaml | 2 ++ _layouts/default6.html | 4 ++-- index.md | 4 ++-- releases/index.md | 4 ++-- 5 files changed, 10 insertions(+), 42 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/blob/66249a4f/_config.yml ---------------------------------------------------------------------- diff --git a/_config.yml b/_config.yml index 2cd848e..0238845 100644 --- a/_config.yml +++ b/_config.yml @@ -1,36 +1,2 @@ -source: . -plugins: ./_plugins -url: http://joshua-decoder.org/ - -future: true -lsi: false -pygments: true -markdown: kramdown -permalink: /:title.html - -#exclude: index.html,docs.html,images,indian-parallel-corpora,joshua.bib,publications,style.css,CNAME,joshua.css - -maruku: - use_tex: false - use_divs: false - png_engine: blahtex - png_dir: images/latex - png_url: /images/latex - -rdiscount: - extensions: [] - -kramdown: - auto_ids: true, - footnote_nr: 1 - entity_output: as_char - toc_levels: 1..6 - use_coderay: false - - coderay: - coderay_wrap: div - coderay_line_numbers: inline - coderay_line_numbers_start: 1 - coderay_tab_width: 4 - coderay_bold_every: 10 - coderay_css: style +timezone: US/Eastern +markdown: kramdown http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/blob/66249a4f/_data/joshua.yaml ---------------------------------------------------------------------- diff --git a/_data/joshua.yaml b/_data/joshua.yaml new file mode 100644 index 0000000..23c55d6 --- /dev/null +++ b/_data/joshua.yaml @@ -0,0 +1,2 @@ +release_version: 6.0.2 +release_date: April 10, 2015 http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/blob/66249a4f/_layouts/default6.html ---------------------------------------------------------------------- diff --git a/_layouts/default6.html b/_layouts/default6.html index 5c981ea..63a8adf 100644 --- a/_layouts/default6.html +++ b/_layouts/default6.html @@ -51,8 +51,8 @@ </div> <hr> <center> - <a href="/releases/6.0/" target="_blank"><button class="button">Download Joshua 6.0.2</button></a> - <p>Released April 10, 2015</p> + <a href="/releases/current/" target="_blank"><button class="button">Download Joshua {{ site.data.joshua.release_version }}</button></a> + <p>Released {{ site.data.joshua.release_date }}</p> </center> <hr> <!-- <div class="sidebar-module"> --> http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/blob/66249a4f/index.md ---------------------------------------------------------------------- diff --git a/index.md b/index.md index 6d9a9df..b9a9644 100644 --- a/index.md +++ b/index.md @@ -12,8 +12,8 @@ at [Johns Hopkins University](http://www.jhu.edu/). ### Latest Release -The latest release of Joshua is version 6.0.2 (April 10, -2015). Information about downloading and using Joshua can be found +The latest release of Joshua is version {{ site.data.joshua.release_version }} +({{ site.data.joshua.release_date }}). Information about downloading and using Joshua can be found [in the Joshua documentation](/6.0/). You can [download it here](releases/6.0/) (tarball). ### Features http://git-wip-us.apache.org/repos/asf/incubator-joshua-site/blob/66249a4f/releases/index.md ---------------------------------------------------------------------- diff --git a/releases/index.md b/releases/index.md index c08aebd..c44b676 100644 --- a/releases/index.md +++ b/releases/index.md @@ -3,8 +3,8 @@ layout: default6 title: Joshua releases --- -The current release of Joshua is version 6.0.2, which can be [downloaded -here](6.0/). It was released on April 10, 2015. +The current release of Joshua is version {{ site.data.joshua.release_version }}, which can be [downloaded +here](current/). It was released on {{ site.data.joshua.release_date }}. Older versions are also available:
