diff options
Diffstat (limited to '_includes/views')
-rw-r--r-- | _includes/views/pagination.html | 13 | ||||
-rw-r--r-- | _includes/views/post-header.html | 11 |
2 files changed, 20 insertions, 4 deletions
diff --git a/_includes/views/pagination.html b/_includes/views/pagination.html index 11eb5aa..48e27bb 100644 --- a/_includes/views/pagination.html +++ b/_includes/views/pagination.html @@ -11,16 +11,23 @@ {%- for post in paginator.posts -%} <li> {%- assign date_format = site.yat.date_format | default: "%b %-d, %Y" -%} - <span class="post-meta">{{ post.date | date: date_format }}</span> - <h3> + <h2 class="post-title"> {%- assign post_url = post.url | relative_url -%} <a class="post-link" href="{{ post_url }}"> {{ post.title | escape }} </a> - </h3> + </h2> + <div class="post-meta"> + <span class="post-date">{{ post.date | date: date_format }}</span> + </div> <p class="post-excerpt"> {{ post.content | strip_html | truncatewords: 50 }} </p> + <div class="post-tags"> + {%- for tag in post.tags -%} + <a class="post-tag" href="/tags.html#{{tag}}">#{{tag}}</a> + {%- endfor -%} + </div> </li> {%- endfor -%} </ul> diff --git a/_includes/views/post-header.html b/_includes/views/post-header.html index 82329bd..d109597 100644 --- a/_includes/views/post-header.html +++ b/_includes/views/post-header.html @@ -1,6 +1,6 @@ <header class="post-header"> <h1 class="post-title p-name" itemprop="name headline">{{ heading | default: page.title | escape }}</h1> - <h3>{{ subheading | default: page.subtitle | escape }}</h3> + <h3 class="post-subtitle">{{ subheading | default: page.subtitle | escape }}</h3> <p class="post-meta"> <time class="dt-published" datetime="{{ page.date | date_to_xmlschema }}" itemprop="datePublished"> @@ -8,4 +8,13 @@ {{ page.date | date: date_format }} </time> </p> + + {%- if page.tags.size > 0 -%} + <div class="post-tags"> + {%- for tag in page.tags -%} + <a class="post-tag" href="/tags.html#{{tag}}">#{{tag}}</a> + {%- endfor -%} + </div> + {%- endif -%} + </header> |