diff --git a/docs/_includes/news_item.html b/docs/_includes/news_item.html index e7a7dbc2..6070d051 100644 --- a/docs/_includes/news_item.html +++ b/docs/_includes/news_item.html @@ -16,7 +16,7 @@ {% assign author = post.author -%} {% avatar user=author size=24 -%} - {{ author }} + {{ author }}
diff --git a/docs/_includes/news_item_archive.html b/docs/_includes/news_item_archive.html new file mode 100644 index 00000000..553439f1 --- /dev/null +++ b/docs/_includes/news_item_archive.html @@ -0,0 +1,26 @@ +
+
+ +
+
+ +
+
diff --git a/docs/_layouts/news_item.html b/docs/_layouts/news_item.html index 74d5d91b..494b86ca 100644 --- a/docs/_layouts/news_item.html +++ b/docs/_layouts/news_item.html @@ -22,7 +22,7 @@ layout: news {% assign author = page.author -%} {% avatar user=author size=24 -%} - {{- author -}} + {{ author }}
diff --git a/docs/_sass/_style.scss b/docs/_sass/_style.scss index deafe505..4a17e410 100644 --- a/docs/_sass/_style.scss +++ b/docs/_sass/_style.scss @@ -664,13 +664,38 @@ article h2:first-child { margin-top: 0; } } .post-date, -.post-author { margin-left: 10px; } +.post-author { margin-left: 15px; } +.post-author .author-name { margin-left: 8px } .news article + article { - margin-top: -10px; - @include border-radius(0 0 10px 10px); + margin-top: -6px; + padding: 15px 40px; border-top: 1px solid #555; + border-radius: 0; @include box-shadow(0 -1px 0 #2f2f2f); + + h2.post-title { + margin-bottom: 0.45em; + } + .post-category { + margin-right: 20px; + padding-left: 0; + width: 150px; + box-sizing: border-box; + .label { + float: right; + } + } + .cell-left, .cell-right { + display: inline-block; + } + .cell-left { + max-width: 180px; + } + .cell-right { + width: calc(100% - 130px); + } + .post-date { margin-left: 0 } } /* Code Highlighting */ diff --git a/docs/pages/news.html b/docs/pages/news.html index b806b0e5..c010d2d3 100644 --- a/docs/pages/news.html +++ b/docs/pages/news.html @@ -6,5 +6,9 @@ author: all --- {% for post in site.posts -%} - {% include news_item.html -%} + {% if forloop.index == 1 -%} + {% include news_item.html -%} + {% else -%} + {% include news_item_archive.html -%} + {% endif -%} {% endfor -%} diff --git a/docs/pages/releases.html b/docs/pages/releases.html index 9736fbd8..f8416c07 100644 --- a/docs/pages/releases.html +++ b/docs/pages/releases.html @@ -6,5 +6,9 @@ author: all --- {% for post in site.categories.release -%} - {% include news_item.html -%} + {% if forloop.index == 1 -%} + {% include news_item.html -%} + {% else -%} + {% include news_item_archive.html -%} + {% endif -%} {% endfor -%}