diff --git a/Gemfile b/Gemfile index c94cf6d..00056f9 100644 --- a/Gemfile +++ b/Gemfile @@ -23,6 +23,7 @@ group :development do gem 'adsf' gem 'highline' gem 'terminal-notifier-guard' + gem 'terminal-notifier' end group :production do diff --git a/Gemfile.lock b/Gemfile.lock index 0f835be..6d6ad1e 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -84,6 +84,7 @@ GEM sass (3.4.23) shellany (0.0.1) slop (3.6.0) + terminal-notifier (1.7.1) terminal-notifier-guard (1.7.0) therubyracer (0.12.3) libv8 (~> 3.16.14.15) @@ -112,6 +113,7 @@ DEPENDENCIES kramdown nanoc (= 4.7.4) sass + terminal-notifier terminal-notifier-guard therubyracer w3c_validators diff --git a/content/assets/stylesheets/includes/blogpost.scss b/content/assets/stylesheets/includes/blogpost.scss index 7b6da5d..b0274c7 100644 --- a/content/assets/stylesheets/includes/blogpost.scss +++ b/content/assets/stylesheets/includes/blogpost.scss @@ -33,8 +33,41 @@ dl { } } -.blogwidth{ - width: 75%; - margin:auto; - word-wrap: normal; +.blog-heading { + display: flex; + flex-direction: column; + + .titlewrap { + position: relative; + margin: auto; + + .title { + font-size: 4rem; + font-weight: bolder; + } + + .subtitle { + position: absolute; + } + + .details { + right: 0; + position: absolute; + margin-top: -1.1rem; + line-height: 1; + text-align: right; + } + } + + &::after { + content: ''; + width: 80px; + height: 1px; + margin-top: 30px; + margin-right: auto; + margin-left: auto; + margin-bottom: 30px; + display: block; + background: $zeus-orange; + } } diff --git a/layouts/blogpost.erb b/layouts/blogpost.erb index 353ed17..3c869c5 100644 --- a/layouts/blogpost.erb +++ b/layouts/blogpost.erb @@ -1,22 +1,20 @@ -
-

- <%= item[:title] %> -

- <% if item[:author] %> -

- <% if item[:lang] == :en %> - by - <% else %> - door +
+
+

+ <%= item[:title] %> +

+ <% if item[:author] %> +

+ door <%= item[:author] %> +

<% end %> - <%= item[:author] %> -

- <% end %> -

- Geschreven op <%= item[:created_at] %>
- Leestijd: <%= reading_time @item %> -

-
+
+ + Geschreven op <%= item[:created_at] %>
+ Leestijd: <%= reading_time @item %> +
+
+