From c548aaed06b72b031a4d8300b065a128efa2f24f Mon Sep 17 00:00:00 2001 From: Adela Sofia Arreola Date: Fri, 10 Jul 2020 11:15:14 -0600 Subject: [PATCH] Updates Blog pages --- _layouts/blog.html | 72 ++++++++++++++++++++++----------------- _layouts/post.html | 53 ++++++++++++++++------------ _layouts/tag-archive.html | 67 ++++++++++++++++++++++++------------ _sass/asciidoc.scss | 11 ++++++ _sass/core/global.scss | 3 -- _sass/layouts/blog.scss | 71 +++++++++++++++++++++++--------------- _sass/quarkus.scss | 3 ++ 7 files changed, 175 insertions(+), 105 deletions(-) diff --git a/_layouts/blog.html b/_layouts/blog.html index 98258a9db3..3a974eab28 100644 --- a/_layouts/blog.html +++ b/_layouts/blog.html @@ -10,46 +10,54 @@

{{ page.title }}

-
- {% for post in paginator.posts %} - {% assign author = site.data.authors[post.author] %} -
- - -
+
+
+

Tags

{% assign tag_words = site.tags | sort %} {% for stats in tag_words %} {% assign tag = stats | first %} diff --git a/_layouts/post.html b/_layouts/post.html index d08c25d40a..d7c77f678f 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -3,31 +3,42 @@ ---
-
-

< Back to all posts

- -

{{ page.title }}

+
-
diff --git a/_layouts/tag-archive.html b/_layouts/tag-archive.html index e8d0f19f37..0ea8c890e0 100644 --- a/_layouts/tag-archive.html +++ b/_layouts/tag-archive.html @@ -1,34 +1,59 @@ --- layout: base +title: Tag Archive --- -
+
-

Tagged posts: '{{ page.title }}'

+

Blog

-
-
    - {% for post in page.posts %} -
  • - -
    - {{ post.title }} +
    +

    Tagged posts: '{{ page.title }}'

    + {% for post in page.posts %} + {% assign author = site.data.authors[post.author] %} +
    +
    +
    + {{ post.title }} +
    + +
    + +
    + {% if post.synopsis %} +

    {{ post.synopsis | strip_html }}

    + {% else %} +

    {{ post.content | strip_html | truncatewords: 75 }}

    + {% endif %} +
    + +
    -
  • - {% endfor %} -
-
- -
- {% for stats in site.tags %} - {% assign tag = stats | first %} - {% assign posts = stats | last %} - {{ tag }}
- {% endfor %} -
+ {% endfor %} +
+
+
+

Tags

+ {% assign tag_words = site.tags | sort %} + {% for stats in tag_words %} + {% assign tag = stats | first %} + {% assign posts = stats | last %} + {{ tag }}
+ {% endfor %} +
diff --git a/_sass/asciidoc.scss b/_sass/asciidoc.scss index d7209ae29f..8ef5822701 100755 --- a/_sass/asciidoc.scss +++ b/_sass/asciidoc.scss @@ -109,3 +109,14 @@ table.configuration-reference { table-layout: inherit;} .conum[data-value]{color:black !important; background:#CCC; } .conum[data-value] *{color:black !important} .admonitionblock>table td.content { font-weight:400; line-height: 1.5rem; } + +.quoteblock blockquote::before { + content: "\201c"; + float: left; + font-size: 2.75em; + font-weight: bold; + line-height: .6em; + margin-left: -.6em; + color: $quarkus-blue; + text-shadow: 0 1px 2px rgba(0,0,0,.1); +} diff --git a/_sass/core/global.scss b/_sass/core/global.scss index cdf041f417..1e1fa63017 100755 --- a/_sass/core/global.scss +++ b/_sass/core/global.scss @@ -252,9 +252,6 @@ table.tableblock { .paginator-btns a { margin: 1rem 0; - &:first-of-type { - margin-right: calc(100% - 372px); - } @media screen and (max-width: 768px) { display: block; width: 100%; diff --git a/_sass/layouts/blog.scss b/_sass/layouts/blog.scss index 87a398ba5a..240f428675 100644 --- a/_sass/layouts/blog.scss +++ b/_sass/layouts/blog.scss @@ -2,9 +2,6 @@ body.post { background: #E7E8EA; div.post-page { - max-width: 900px; - margin: 0 auto; - h1, h2, h3, h4, h5, h6, p, small, strong, em, table tr th, table tr td, li, i, dt, .title, .paragraph, .footnote, b { @media only screen and (max-width: 768px) { @@ -21,16 +18,21 @@ body.post { h1 { margin-top: 20px; } + .byline { + font-weight: 600; + font-size: 1.5rem; + line-height: 2.5rem; + } .note, .colist { overflow: auto; } .post-date { - color: rgb(108, 109, 110); + color: #0D1C2C; text-align: left; font-size: 1rem; } .headshot { - max-width: 3rem; + max-width: 4rem; margin-right: 1rem; } .line-through{ color: #0D1C2C; text-decoration:line-through} @@ -40,6 +42,15 @@ body.post { color: $link-hover; } } + .post-title { + margin: 1.5rem 0; + } + .tags { + a { + display: inline-block; + margin-left: .5rem; + } + } } .bibliography { @@ -49,49 +60,52 @@ body.post { } } .blog-page { - max-width: 900px; - margin: 0 auto; .blog-list-item { - margin-bottom: 3rem; - &::after { - content: ""; - display: block; - border-bottom: 1px solid #E7E8EA; - height: 3rem; - grid-column: 6 / span 2; - } + margin-bottom: 2rem; p { margin: 0; } - .read-more { - text-align: left; - } .headshot { max-width: 2rem; margin-right: .5rem; } - .post-date { - color: #E7E8EA; - font-size: 0.8rem; - text-align: left; - } .post-title { a { - font-size: 1.8rem; - line-height: 2.1rem; - text-decoration: none; + font-size: 1.5rem; + line-height: 2.5rem; } } + .tags { + margin-left: 1.5rem; + a { + display: inline-block; + margin-left: .5rem; + } + } + &:not(:last-child):after { + content: ""; + display: block; + border-bottom: 2px solid #E7E8EA; + height: 1rem; + grid-column: 4 / span 4; + } + } + + + .tags-label { + margin-top: 0; } .fa-rss-square { font-size: 2rem; color: #ee802f; - float: right; &:hover { color: darken( #ee802f, 10%); } } + .paginator-btns a:not(:last-of-type) { + margin-right: 1rem; + } } .blog-page, .post-page { @@ -109,7 +123,7 @@ body.post { .share-page { text-align: right; } - small { + small, .small { font-size: 14px; } } @@ -141,3 +155,4 @@ body.post { .post-page { padding-bottom: 6rem; } + diff --git a/_sass/quarkus.scss b/_sass/quarkus.scss index 2111627e5b..3024fe5fc5 100644 --- a/_sass/quarkus.scss +++ b/_sass/quarkus.scss @@ -123,6 +123,9 @@ input[type="submit"] { line-height: 1.2rem; font-weight: 400; padding: .5rem 2rem; + @media screen and (max-width: 768px) { + padding: .5rem 0; + } } }