Skip to content

Commit

Permalink
Update article.jsx
Browse files Browse the repository at this point in the history
feat(core): Add pin icon for pinned articles on homepage (issue ppoffice#1337)
  • Loading branch information
AryCra07 authored and CryptArchy committed Jan 7, 2025
1 parent 578aec7 commit 4675e20
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}
{/* 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 4675e20

Please sign in to comment.