Skip to content

Commit

Permalink
fix(layout): allow readme to use custom link
Browse files Browse the repository at this point in the history
  • Loading branch information
ppoffice committed Aug 16, 2020
1 parent ef3d019 commit f4a2748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layout/common/article.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ module.exports = class extends Component {
})}
</div> : null}
{/* "Read more" button */}
{index && page.excerpt ? <a class="article-more button is-small size-small" href={`${url_for(page.path)}#more`}>{__('article.more')}</a> : null}
{index && page.excerpt ? <a class="article-more button is-small size-small" href={`${url_for(page.link || page.path)}#more`}>{__('article.more')}</a> : null}
{/* Share button */}
{!index ? <Share config={config} page={page} helper={helper} /> : null}
</article>
Expand Down

0 comments on commit f4a2748

Please sign in to comment.