Skip to content

Commit

Permalink
Merge pull request #1339 from AryCra07/master
Browse files Browse the repository at this point in the history
feat(core): Add pin icon for pinned articles on homepage (issue #1337)
  • Loading branch information
ppoffice authored Jan 5, 2025
2 parents b00d5ae + 5edb008 commit b7fb213
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions layout/common/article.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Check failure on line 52 in layout/common/article.jsx

View workflow job for this annotation

GitHub Actions / lint

Unnecessary parentheses around expression
{/* 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>`)
Expand Down

0 comments on commit b7fb213

Please sign in to comment.