Add unpublished text to recent blog posts
This commit is contained in:
parent
2d5eec9dfe
commit
e69b7df500
@ -19,6 +19,7 @@
|
|||||||
{{ article.title }}
|
{{ article.title }}
|
||||||
</h4>
|
</h4>
|
||||||
<span class="article-date" :title="absDate(article.date)">{{ relDate(article.date) }}</span>
|
<span class="article-date" :title="absDate(article.date)">{{ relDate(article.date) }}</span>
|
||||||
|
<span class="article-published" v-if="!article.published">Unpublished</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
9
resources/scss/_blog.scss
vendored
9
resources/scss/_blog.scss
vendored
@ -68,13 +68,20 @@ section.blog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.article-desc,
|
.article-desc,
|
||||||
.article-date {
|
.article-date,
|
||||||
|
.article-published {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.article-date {
|
.article-date {
|
||||||
color: darken($text-color, 15%);
|
color: darken($text-color, 15%);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.article-published {
|
||||||
|
text-transform: uppercase;
|
||||||
|
font-size: 1rem;
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user