fix: display badges in one line

This commit is contained in:
MDLeom 2020-02-19 07:50:26 +00:00
parent 56d2b3d0e5
commit b59dd4406a
No known key found for this signature in database
GPG Key ID: 5D9DB57A25D34EE3
2 changed files with 7 additions and 4 deletions

View File

@ -11,7 +11,7 @@
hexo.extend.filter.register('marked:renderer', (renderer) => {
renderer.image = (href, title, alt) => {
if (href.endsWith('.svg')) return `<img src="${href}" alt="${alt}">`
if (href.endsWith('.svg')) return `<img class="svg" src="${href}" alt="${alt}">`
if (!alt) alt = ''
if (!title) title = alt

View File

@ -168,7 +168,7 @@ ul {
li ul,
ul {
list-style: circle;
list-style: disc;
}
table caption,
@ -291,8 +291,11 @@ span.index-list-count:after {
content: ')';
}
/* align badge to the left */
.about-body .article .article-entry img {
/* align badge in /about/ */
.about-body .article .article-entry img.svg {
/* display same line */
display: inline;
/* align to the left */
margin: auto 0 .5em;
}