Style for the page layout
This commit is contained in:
parent
010619d518
commit
b975cdff86
2 changed files with 77 additions and 68 deletions
|
|
@ -1,14 +1,18 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
<div class="post">
|
||||
|
||||
<header class="post-header">
|
||||
<h1 class="post-title">{{ page.title }}</h1>
|
||||
</header>
|
||||
|
||||
<div class="post-ribbon"></div>
|
||||
<main class="post-main mdl-layout__content">
|
||||
<div class="post-container mdl-grid">
|
||||
<div class="mdl-cell mdl-cell--2-col mdl-cell--hide-tablet mdl-cell--hide-phone"></div>
|
||||
<div class="post-section mdl-color--white mdl-shadow--4dp content mdl-color-text--grey-800 mdl-cell mdl-cell--8-col">
|
||||
<div class="mdl-color-text--grey-500">
|
||||
{{ page.date | date: "%b %-d, %Y" }}{% if page.author %} • {{ page.author }}{% endif %}{% if page.meta %} • {{ page.meta }}{% endif %}
|
||||
</div>
|
||||
<h3>{{ page.title }}</h3>
|
||||
<article class="post-content">
|
||||
{{ content }}
|
||||
<p>{{ content }}</p>
|
||||
</article>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
|||
13
index.html
13
index.html
|
|
@ -1,8 +1,9 @@
|
|||
---
|
||||
layout: default
|
||||
---
|
||||
|
||||
{% if site.post_type == 'highlight' %}
|
||||
<div class="page-content">
|
||||
<div class="mdl-grid">
|
||||
{% if site.post_type == 'highlight' %}
|
||||
|
||||
{% include highlight_post.html %}
|
||||
|
||||
|
|
@ -36,9 +37,10 @@ layout: default
|
|||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{% else %}
|
||||
{% else %}
|
||||
|
||||
{% for post in site.posts %}
|
||||
|
||||
<div class="mdl-card mdl-shadow--2dp mdl-cell mdl-cell--4-col mdl-cell--4-col-desktop mdl-cell--4-col-tablet mdl-cell--12-col-phone">
|
||||
<div class="mdl-card__title" {% if post.image %} style="background: url('{{ post.image }}') center/cover;" {% endif %}>
|
||||
<h2 class="mdl-card__title-text">{{ post.title }}</h2>
|
||||
|
|
@ -65,6 +67,9 @@ layout: default
|
|||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue