Commit 008e1152 authored by Murukesh Mohanan's avatar Murukesh Mohanan

add subtitles to blog list and tag list

parent 178c6e84
Pipeline #1384 failed with stage
...@@ -6,12 +6,12 @@ layout: default ...@@ -6,12 +6,12 @@ layout: default
{% assign tag = site.data.tags[page.tag] %} {% assign tag = site.data.tags[page.tag] %}
<section class="tag-title"> <section class="tag-title">
<header> <header>
<h1>Tag: {{ tag.name }}</h1> <h1>Tag: {{ tag.name }}</h1>
</header> </header>
<hr> <hr>
{{ tag.desc }} {{ tag.desc }}
</section> </section>
{% for post in site.posts %} {% for post in site.posts %}
...@@ -20,11 +20,16 @@ layout: default ...@@ -20,11 +20,16 @@ layout: default
<header class="post-title"> <header class="post-title">
<h1> <h1>
<a href="{{site.base-url}}{{ post.url }}#main">{{ post.title }}</a> <a href="{{site.base-url}}{{ post.url }}#main">{{ post.title }}</a>
<time datetime="{{ post.date | date_to_xmlschema }}" class="post-date"> </h1>
{{ post.date | date: "%B %e, %Y" }} <time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">
</time> {{ post.date | date: "%B %e, %Y" }}
{% if post.tags.size > 0 %} </time>
</h1> {% if post.subtitle %}
<h2>
{{ post.subtitle }}
</h2>
{% endif %}
{% if post.tags.size > 0 %}
<ol class="tags-list"> <ol class="tags-list">
{% for post_tag in post.tags %} {% for post_tag in post.tags %}
{% assign tag = site.data.tags[post_tag] %} {% assign tag = site.data.tags[post_tag] %}
......
...@@ -9,11 +9,16 @@ layout: default ...@@ -9,11 +9,16 @@ layout: default
<header class="post-title"> <header class="post-title">
<h1> <h1>
<a href="{{site.base-url}}{{ post.url }}#main">{{ post.title }}</a> <a href="{{site.base-url}}{{ post.url }}#main">{{ post.title }}</a>
<time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">
{{ post.date | date: "%B %e, %Y" }}
</time>
{% if post.tags.size > 0 %}
</h1> </h1>
<time datetime="{{ post.date | date_to_xmlschema }}" class="post-date">
{{ post.date | date: "%B %e, %Y" }}
</time>
{% if post.subtitle %}
<h2>
{{ post.subtitle }}
</h2>
{% endif %}
{% if post.tags.size > 0 %}
<ol class="tags-list"> <ol class="tags-list">
{% for post_tag in post.tags %} {% for post_tag in post.tags %}
{% assign tag = site.data.tags[post_tag] %} {% assign tag = site.data.tags[post_tag] %}
......
...@@ -218,6 +218,7 @@ header>h1>a:link, header>h1>a:visited { ...@@ -218,6 +218,7 @@ header>h1>a:link, header>h1>a:visited {
.post-title>h2 { .post-title>h2 {
flex-basis: 50%; flex-basis: 50%;
margin: auto 0; margin: auto 0;
font-size: 1.3em;
} }
.post-title>ol.tags-list { .post-title>ol.tags-list {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment