Skip to content

Commit de11f01

Browse files
committed
docs: add homepage announcement support + announce v1.1 RC
1 parent bba04ae commit de11f01

File tree

5 files changed

+37
-6
lines changed

5 files changed

+37
-6
lines changed

_config.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ kramdown:
3232
math_engine: mathjax # cannot customize
3333
syntax_highligher: rouge # cannot customize
3434

35-
gems:
35+
plugins:
3636
- jekyll-redirect-from
3737

3838
exclude:
@@ -79,6 +79,10 @@ defaults:
7979

8080
latest_version: 1.0
8181
excerpt_separator: ""
82+
announcement: |
83+
**[JSON:API v1.1 RC1](/format/1.1/) has been published!** Please review and
84+
try out this upcoming version of the spec before its planned release date of
85+
January 31, 2019.
8286
8387
navigation:
8488
- title: JSON API

_layouts/page.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ <h2>A specification for building APIs in JSON</h2>
3333
<a href="{{link.url}}" title="{{link.title}}">{{link.title}}</a>
3434
{% endfor %}
3535
</div>
36+
{% if site.announcement %}
37+
<div class="announcement">
38+
{{ site.announcement|markdownify }}
39+
</div>
40+
{% endif %}
3641
</div>
3742
</header>
3843
{% endif %}

stylesheets/all.css

Lines changed: 12 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stylesheets/all.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

stylesheets/all.sass

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ address
199199

200200
header
201201
.content
202-
padding: 29px $page-padding 41px
202+
padding: 32px $page-padding 41px
203203
background: $color-masthead
204204
border-bottom: 1px solid $color-light-rule
205205

@@ -215,7 +215,7 @@ header
215215

216216
h2
217217
text-align: center
218-
margin: 15px 0 40px 0
218+
margin: 17px 0 37px 0
219219
padding: 0
220220
left: 0
221221
font-size: 124%
@@ -238,6 +238,18 @@ header
238238
text-decoration: none
239239
text-align: center
240240

241+
.announcement
242+
margin: 22px auto 0
243+
max-width: 38em
244+
text-align: center
245+
position: relative
246+
top: 15px // intentionally eat into parent's padding-bottom
247+
color: $color-main
248+
249+
*
250+
color: inherit
251+
margin: 0
252+
241253
@media screen and (max-width: $mobile-breakpoint)
242254
.content
243255
padding-top: 20px

0 commit comments

Comments
 (0)