fix: Add hidden navigation link to article HTML (#11465)
This commit is contained in:
parent
8fabccec4e
commit
4fabc3a5e6
1 changed files with 11 additions and 0 deletions
|
|
@ -267,10 +267,21 @@ function buildArticleHTML(article) {
|
|||
'</div></a>';
|
||||
}
|
||||
|
||||
var navigationLink = `
|
||||
<a
|
||||
href="${article.path}"
|
||||
aria-labelledby="article-link-${article.id}"
|
||||
class="crayons-story__hidden-navigation-link"
|
||||
>
|
||||
${article.title}
|
||||
</a>
|
||||
`;
|
||||
|
||||
return `<article class="crayons-story"
|
||||
data-article-path="${article.path}"
|
||||
id="article-${article.id}"
|
||||
data-content-user-id="${article.user_id}">\
|
||||
${navigationLink}\
|
||||
<div role="presentation">\
|
||||
${videoHTML}\
|
||||
<div class="crayons-story__body">\
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue