diff --git a/_config.yml b/_config.yml index 334fbcf..6092742 100644 --- a/_config.yml +++ b/_config.yml @@ -99,6 +99,8 @@ xaymar: enabled: true tags: enabled: true + timestamp: + enabled: true comments: enabled: true provider: "disqus" diff --git a/_includes/article.liquid b/_includes/article.liquid index f4f5f3e..d145c20 100644 --- a/_includes/article.liquid +++ b/_includes/article.liquid @@ -23,18 +23,26 @@ {% if site.xaymar.meta.permalink.enabled and include.permalink != nil %} {% assign has_meta_permalink=true %} {% endif %} + {% if site.xaymar.meta.timestamp.enabled and include.timestamp %} + {% assign has_meta_timestamp=true %} + {% endif %} {% if site.xaymar.meta.tags.enabled and include.tags != nil %} {% assign has_meta_tags=true %} {% endif %} - {% if site.xaymar.meta.enabled and has_meta_permalink or has_meta_tags %} + {% if site.xaymar.meta.enabled and has_meta_permalink or has_meta_tags or has_meta_date %}
{% if has_meta_permalink %} {% endif %} + {% if has_meta_timestamp %} + + {% endif %} {% if has_meta_tags %}
Tags: diff --git a/_layouts/index.liquid b/_layouts/index.liquid index 24f7f22..31161b8 100644 --- a/_layouts/index.liquid +++ b/_layouts/index.liquid @@ -8,7 +8,7 @@ {% else %} {% assign content=data.content %} {% endif %} - {% include article.liquid type=post index=true title=data.title content=content permalink=data.url categories=data.categories tags=data.tags %} + {% include article.liquid type=post index=true title=data.title content=content permalink=data.url categories=data.categories tags=data.tags timestamp=data.date %} {% endfor %}
{% if paginator.total_pages > 1 %} diff --git a/_sass/_article.scss b/_sass/_article.scss index e651f82..59051de 100644 --- a/_sass/_article.scss +++ b/_sass/_article.scss @@ -88,6 +88,12 @@ article > .meta > .permalink { font-variant: small-caps; } +article > .meta > .timestamp { + float: right; + padding: 0.05em .5rem; + font-variant: all-small-caps; +} + article > .meta > .tags { display: inline; padding: 0 .5rem; @@ -99,6 +105,7 @@ article > .meta > .tags > span:first-child { } article > .meta > .tags > .tag { + padding: 0; } article > .meta > .tags > .tag:not(:last-child):after {