Update article.jsx
feat(core): Add pin icon for pinned articles on homepage (issue #1337)pull/1339/head
parent
b00d5ae9d9
commit
5edb008564
|
@ -48,6 +48,8 @@ module.exports = class extends Component {
|
|||
{/* Metadata */}
|
||||
{page.layout !== 'page' ? <div class="article-meta is-size-7 is-uppercase level is-mobile">
|
||||
<div class="level-left">
|
||||
{/* PIN Icon */}
|
||||
{page.top ? (<i class="fas fa-thumbtack level-item" title="Pinned"></i>) : null}
|
||||
{/* Creation Date */}
|
||||
{page.date && <span class="level-item" dangerouslySetInnerHTML={{
|
||||
__html: _p('article.created_at', `<time dateTime="${date_xml(page.date)}" title="${new Date(page.date).toLocaleString()}">${date(page.date)}</time>`)
|
||||
|
|
Loading…
Reference in New Issue