Skip to content

Add 'latest release' info + changelog #182

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ gem "jekyll"
gem "jekyll-watch"
gem "jekyll-mentions"
gem "jekyll-multiple-languages-plugin"
gem "jekyll-github-metadata"
gem "kramdown"
gem "webrick"

Expand Down
17 changes: 16 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ GEM
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
faraday (2.3.0)
faraday-net_http (~> 2.0)
ruby2_keywords (>= 0.0.4)
faraday-net_http (2.0.3)
ffi (1.15.0)
ffi (1.15.0-x64-mingw32)
forwardable-extended (2.6.0)
Expand All @@ -40,6 +44,9 @@ GEM
rouge (~> 3.0)
safe_yaml (~> 1.0)
terminal-table (~> 2.0)
jekyll-github-metadata (2.15.0)
jekyll (>= 3.4, < 5.0)
octokit (~> 4.0, != 4.4.0)
jekyll-mentions (1.6.0)
html-pipeline (~> 2.3)
jekyll (>= 3.7, < 5.0)
Expand All @@ -65,6 +72,9 @@ GEM
racc (~> 1.4)
nokogiri (1.11.3-x64-mingw32)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (4.0.6)
Expand All @@ -74,11 +84,15 @@ GEM
ffi (~> 1.0)
rexml (3.2.5)
rouge (3.26.0)
ruby2_keywords (0.0.5)
safe_yaml (1.0.5)
sassc (2.4.0)
ffi (~> 1.9)
sassc (2.4.0-x64-mingw32)
ffi (~> 1.9)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
terminal-table (2.0.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
Expand All @@ -97,6 +111,7 @@ PLATFORMS

DEPENDENCIES
jekyll
jekyll-github-metadata
jekyll-mentions
jekyll-multiple-languages-plugin
jekyll-watch
Expand All @@ -107,4 +122,4 @@ DEPENDENCIES
webrick

BUNDLED WITH
2.2.17
2.2.22
3 changes: 3 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ future: true
plugins:
- jekyll-multiple-languages-plugin
- jekyll-mentions
- jekyll-github-metadata

repository: AntennaPod/AntennaPod

permalink: /:categories/:title

Expand Down
10 changes: 9 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@
<div class="container pt-3 pb-0">
<div class="row justify-content-between align-items-center py-5">
<div class="col-12 col-lg-6 order-2 order-lg-1">
<h2 class="color-gray-900 hero-header">{% t homepage.header %}</h2>
<div class="changelog">
<details>
<summary class="latest-release"><span>Latest release:</span>{{ site.github.latest_release.name | remove: '"' }}</summary>
<!-- <a href="{{ site.github.latest_release.html_url }}" target="_blank" rel="noopener noreferrer">Link to release</a> -->
<p class="mt-2">Changelog</p>
<p>{{ site.github.latest_release.body }}</p>
</details>
</div>
<h2 class="color-gray-900 mt-3 hero-header">{% t homepage.header %}</h2>
<p class="size-20 mb-4 color-gray-900">{% t homepage.description %}</p>
<div class="row align-items-center">
<div class="col-12 col-xs-6">
Expand Down
44 changes: 41 additions & 3 deletions _sass/_custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,28 @@ a {
}
}

.latest-release {
font-size: 0.85rem;
color: $white;
background-color: $brand-dark;
padding: 0.4rem 0.8rem 0.4rem 0.4rem;
border-radius: 1rem;

&:hover {
color: $white;
background-color: $gray-800;
text-decoration: none;
}

span {
color: $white;
background-color: $brand-primary;
padding: 0.2rem 0.5rem;
border-radius: 1rem;
margin-right: 0.5rem;
}
}

// Buttons

button {
Expand Down Expand Up @@ -617,7 +639,6 @@ blockquote {
& #donate {
color: $gray-800;
}

}

.post .cover {
Expand Down Expand Up @@ -820,11 +841,11 @@ i.member-img {

.project-card > h4.text-main,
.post-content .project-card > p.text-main {
margin-bottom: 0;
margin-bottom: 0;
}

.post-content .project-card > h4.text-main {
margin-bottom: 0.5rem;
margin-bottom: 0.5rem;
}

.highlight-card {
Expand Down Expand Up @@ -1086,6 +1107,23 @@ footer {
margin-left: 0.1em;
}

.changelog {
display: inline-block;
margin-block: 1rem;
p {
color: $gray-900;
margin-bottom: 0;
}
}

details > summary {
list-style: none;
}

details > summary::-webkit-details-marker {
display: none;
}

// Pagination

.pager {
Expand Down