You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by zr...@apache.org on 2020/12/03 23:11:02 UTC

[camel-website] branch master updated: refactor: authors with date below the title

This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 2d9c249  refactor: authors with date below the title
2d9c249 is described below

commit 2d9c24953dc85c17db487506d60d3a5dcc316469
Author: Zoran Regvart <zr...@apache.org>
AuthorDate: Fri Dec 4 00:10:53 2020 +0100

    refactor: authors with date below the title
    
    Moves author(s) from the bottom to the top beneath the title, along with
    the publication date. Adds some spacing between the title and the
    content and adds a small 50px dash below the date & author line.
---
 antora-ui-camel/src/css/blog.css | 6 ++++++
 layouts/blog/summary.html        | 3 +--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/antora-ui-camel/src/css/blog.css b/antora-ui-camel/src/css/blog.css
index 41e0ca2..c415d8e 100644
--- a/antora-ui-camel/src/css/blog.css
+++ b/antora-ui-camel/src/css/blog.css
@@ -45,9 +45,15 @@ article.blog p {
   background: none;
 }
 
+.blog header {
+  margin-bottom: 0.4rem;
+  border-image: linear-gradient(to right, #303284, #303284 50px, #fff 50px) 1 / 0 0 1px 0;
+}
+
 .blog header h1 {
   font-size: 2rem;
   font-weight: bold;
+  padding-bottom: 0.2rem;
 }
 
 .blog header time {
diff --git a/layouts/blog/summary.html b/layouts/blog/summary.html
index 8f1bb61..56f7f2e 100644
--- a/layouts/blog/summary.html
+++ b/layouts/blog/summary.html
@@ -2,7 +2,7 @@
 
     <header>
         <a href="{{ .RelPermalink }}"><h1>{{ .Title }}</h1></a>
-        <time itemprop="published" datetime="{{ dateFormat "2006-01-02" .PublishDate }}" title="{{ dateFormat "Monday, January 2, 2006" .PublishDate }}">{{ dateFormat "January 2, 2006" .PublishDate }}</time>
+        <time itemprop="published" datetime="{{ dateFormat "2006-01-02" .PublishDate }}" title="{{ dateFormat "Monday, January 2, 2006" .PublishDate }}">{{ dateFormat "January 2, 2006" .PublishDate }}</time>, by {{ range $idx, $author := .Params.authors }}{{ if gt $idx 0 }}, {{ end }}<span rel="author">{{ (getJSON  "https://api.github.com/users/" $author).name }}</span>{{ end }}
     </header>
     <p>{{ .Summary }}</p>
     <p><a class="continue" href="{{ .RelPermalink }}">Continue reading &#10095;</a></p>
@@ -10,7 +10,6 @@
         {{ if .Params.categories }}
             {{ range .Params.categories }}<a class="category" href="{{ "/categories/" | relURL }}{{ . | urlize }}/">{{ upper . }}</a>{{ end }}
         {{end}}
-         &#11825; {{ range $idx, $author := .Params.authors }}{{ if gt $idx 0 }}, {{ end }}<span rel="author">{{ (getJSON  "https://api.github.com/users/" $author).name }}</span>{{ end }}
     </p>
 
 </article>