mirror of https://gitlab.com/curben/blog
fix: display badges in one line
This commit is contained in:
parent
56d2b3d0e5
commit
b59dd4406a
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
hexo.extend.filter.register('marked:renderer', (renderer) => {
|
hexo.extend.filter.register('marked:renderer', (renderer) => {
|
||||||
renderer.image = (href, title, alt) => {
|
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 (!alt) alt = ''
|
||||||
if (!title) title = alt
|
if (!title) title = alt
|
||||||
|
|
|
@ -168,7 +168,7 @@ ul {
|
||||||
|
|
||||||
li ul,
|
li ul,
|
||||||
ul {
|
ul {
|
||||||
list-style: circle;
|
list-style: disc;
|
||||||
}
|
}
|
||||||
|
|
||||||
table caption,
|
table caption,
|
||||||
|
@ -291,8 +291,11 @@ span.index-list-count:after {
|
||||||
content: ')';
|
content: ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
/* align badge to the left */
|
/* align badge in /about/ */
|
||||||
.about-body .article .article-entry img {
|
.about-body .article .article-entry img.svg {
|
||||||
|
/* display same line */
|
||||||
|
display: inline;
|
||||||
|
/* align to the left */
|
||||||
margin: auto 0 .5em;
|
margin: auto 0 .5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue