diff --git a/_config.yml b/_config.yml --- a/_config.yml +++ b/_config.yml @@ -18,7 +18,7 @@ Latest Roadmap: "https://www.bitcoincash.org/roadmap.html" Blog: "https://blog.bitcoinabc.org/" Download: - - Binaries: "https://download.bitcoinabc.org/latest/" + - Binaries: "releases/" - Source Code: "https://github.com/Bitcoin-ABC/bitcoin-abc" - Ubuntu Packages: "https://launchpad.net/~bitcoin-abc/+archive/ubuntu/ppa" - Archived Binaries: "https://download.bitcoinabc.org/" diff --git a/css/main.css b/css/main.css --- a/css/main.css +++ b/css/main.css @@ -684,3 +684,14 @@ width: 100%; font-size: 1.7vh; } + +.hero-box { + text-align: center; + background: #e9f4ff; + border-radius: 12px; + padding: 20px; +} + +.download-button { + font-size: 20px; +} diff --git a/index.html b/index.html --- a/index.html +++ b/index.html @@ -20,7 +20,7 @@ Install the latest version ({{ latestVersion }}):
Source Code - Binaries + Binaries
Packages:
diff --git a/releases.html b/releases.html new file mode 100644 --- /dev/null +++ b/releases.html @@ -0,0 +1,74 @@ +--- +layout: page +use-site-title: true +--- + +{% assign releases = site.data.github-releases %} +{% assign latestVersion = releases[0].name %} + +
+

Download Bitcoin ABC {{ latestVersion }}

+ +
Published: {{ releases[0].published_at | date: "%a %b %e %Y" }}
+ +
+ + + Linux + + + + OSX + + + + Windows + + + + Source + +
+
+ +{% capture include_release_notes %}{% include_relative abc_md_docs/doc/release-notes/release-notes-{{ latestVersion }}.md %}{% endcapture %} +{{ include_release_notes | markdownify }} + +
+ +
+

Past Releases

+ + + + + + + + + {% assign pastReleases = releases | slice:1,15 %} + {% for release in pastReleases %} + {% assign version = release.name %} + + + + + + + {% endfor %} + +
VersionPublishedDownloadsRelease Notes
{{ version }}{{ release.published_at | date: "%Y %b %e" }} + + + + + + + + + + + + + {{ version }} Release Notes
+
diff --git a/scripts/fetch_markdown_files.sh b/scripts/fetch_markdown_files.sh --- a/scripts/fetch_markdown_files.sh +++ b/scripts/fetch_markdown_files.sh @@ -20,11 +20,17 @@ for FILE in "${FILES[@]}" do - FILE_DST="${ABC_MD_DOCS_BASE}/${FILE}" + BASE_NAME=${FILE%.*} + FILE_DST="${ABC_MD_DOCS_BASE}/${BASE_NAME}.page.md" mkdir -p "$(dirname ${FILE_DST})" - NAME="${FILE}" \ - PERMALINK="/${FILE%.*}.html" \ + NAME="${BASE_NAME}.md" \ + PERMALINK="/${BASE_NAME}.html" \ envsubst < "${TOPLEVEL}/scripts/md_docs_frontmatter.yml.in" > "${FILE_DST}" cat "${FILE}" >> "${FILE_DST}" + + FILE_DST="${ABC_MD_DOCS_BASE}/${BASE_NAME}.md" + # Jekyll breaks without frontmatter, so give it an empty line + echo "" > "${FILE_DST}" + cat "${FILE}" >> "${FILE_DST}" done