mirror of https://gitlab.com/curben/blog
fix(microformat): prepend class name only to <a> tag
This commit is contained in:
parent
04f6762388
commit
b9db47fe8c
|
@ -2,7 +2,7 @@
|
|||
<div class="article-category">
|
||||
<%- list_categories(post.categories, {
|
||||
show_count: false,
|
||||
class: 'p-category article-category',
|
||||
class: 'article-category',
|
||||
style: 'none',
|
||||
separator: '/'
|
||||
}) %>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<% if (post.tags && post.tags.length) { %>
|
||||
<%- listTags(post.tags, {
|
||||
show_count: false,
|
||||
class: 'p-category article-tag',
|
||||
class: 'article-tag',
|
||||
transform: titlecase
|
||||
}) %>
|
||||
<% } %>
|
||||
|
|
|
@ -39,7 +39,7 @@ function listTagsHelper(tags, options) {
|
|||
tags.forEach(tag => {
|
||||
result += `<li class="${className}-list-item">`
|
||||
|
||||
result += `<a class="${className}-list-link" href="${self.url_for(tag.path)}${suffix}" rel="tag">`
|
||||
result += `<a class="p-category ${className}-list-link" href="${self.url_for(tag.path)}${suffix}" rel="tag">`
|
||||
result += transform ? transform(tag.name) : tag.name
|
||||
result += '</a>'
|
||||
|
||||
|
|
Loading…
Reference in New Issue