Skip to content
Permalink
Browse files

rebuild box model for larger layout. close #51

  • Loading branch information
zutrinken committed Jan 3, 2020
1 parent aedf062 commit 823707c3b9e2ddf33189710508683a0abe6cf3bf
Showing with 94 additions and 133 deletions.
  1. +2 −2 assets/css/style.css
  2. +1 −1 author.hbs
  3. +7 −5 index.hbs
  4. +11 −9 partials/loop.hbs
  5. +9 −8 partials/pagination.hbs
  6. +63 −107 src/sass/style.scss
  7. +1 −1 tag.hbs

Large diffs are not rendered by default.

@@ -4,7 +4,7 @@

<header class="blog-header{{#if cover_image}} has-cover{{else}}{{#if @site.cover_image}} has-cover{{/if}}{{/if}}">
<div class="inner">
<div class="archive archive-author">
<div class="archive archive-author box archive-box">
<span class="archive-info">
<span class="archive-type">{{t "Creator"}}</span>
<span class="archive-count">{{plural ../pagination.total empty=(t "No Posts") singular=(t "% Post") plural=(t "% Posts")}}</span>
@@ -1,11 +1,13 @@
{{!< default}}
<header class="blog-header {{#if @site.cover_image}} has-cover{{/if}}">
<div class="inner">
<h1 class="blog-name">{{@site.title}}</h1>
{{#if @site.description}}
<span class="blog-description">{{@site.description}}</span>
{{/if}}
{{#if @site.cover_image}}
<div class="box blog-box">
<h1 class="blog-name">{{@site.title}}</h1>
{{#if @site.description}}
<span class="blog-description">{{@site.description}}</span>
{{/if}}
{{#if @site.cover_image}}
</div>
<div class="blog-cover cover">
<img
srcset="{{img_url @site.cover_image size="s"}} 320w,
@@ -6,15 +6,17 @@

<article class="{{post_class}}">
<div class="inner">
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
<span class="post-meta">
{{t "Posted by"}}
{{authors separator=", "}}
{{#primary_tag}}{{t "in"}} <a class="post-meta-tag" href="{{url}}">{{name}}</a>{{/primary_tag}}
{{t "on"}}
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time>
</span>
<p class="post-excerpt">{{excerpt}}&hellip;</p>
<div class="box post-box">
<h2 class="post-title"><a href="{{url}}">{{{title}}}</a></h2>
<span class="post-meta">
{{t "Posted by"}}
{{authors separator=", "}}
{{#primary_tag}}{{t "in"}} <a class="post-meta-tag" href="{{url}}">{{name}}</a>{{/primary_tag}}
{{t "on"}}
<time datetime="{{date format='YYYY-MM-DD'}}">{{date format="DD MMM YYYY"}}</time>
</span>
<p class="post-excerpt">{{excerpt}}&hellip;</p>
</div>
</div>
</article>

@@ -1,12 +1,13 @@
<nav class="pagination" role="pagination">
<div class="inner">
{{#if prev}}
<a class="pagination-next" href="{{page_url prev}}"><i class="icon icon-arrow-left"></i> <span class="pagination-label">{{t "Newer Posts"}}</span></a>
{{/if}}
<span class="pagination-info">{{t "Page {page} of {pages}" page=page pages=pages}}</span>
{{#if next}}
<a class="pagination-prev" href="{{page_url next}}"><span class="pagination-label">{{t "Older Posts"}}</span> <i class="icon icon-arrow-right"></i></a>
{{/if}}
<div class="clear"></div>
<div class="box pagination-box">
{{#if prev}}
<a class="pagination-next" href="{{page_url prev}}"><i class="icon icon-arrow-left"></i> <span class="pagination-label">{{t "Newer Posts"}}</span></a>
{{/if}}
<span class="pagination-info">{{t "Page {page} of {pages}" page=page pages=pages}}</span>
{{#if next}}
<a class="pagination-prev" href="{{page_url next}}"><span class="pagination-label">{{t "Older Posts"}}</span> <i class="icon icon-arrow-right"></i></a>
{{/if}}
</div>
</div>
</nav>

0 comments on commit 823707c

Please sign in to comment.
You can’t perform that action at this time.