fixed moving subtitle if subtitle doesn’t exist
This commit is contained in:
parent
e8e18d6084
commit
b012489340
@ -187,8 +187,11 @@ Future<void> reorganizeHtml() async {
|
|||||||
await makeNavbar().then((navbar) {
|
await makeNavbar().then((navbar) {
|
||||||
querySelector('body').insertAdjacentElement('afterBegin', navbar);
|
querySelector('body').insertAdjacentElement('afterBegin', navbar);
|
||||||
querySelector('nav').insertAdjacentElement('afterEnd', makeHeader());
|
querySelector('nav').insertAdjacentElement('afterEnd', makeHeader());
|
||||||
querySelector('.title')
|
final subtitle = querySelector('.subtitle');
|
||||||
.insertAdjacentElement('afterEnd', querySelector('.subtitle'));
|
if (subtitle != null) {
|
||||||
|
querySelector('header').append(subtitle);
|
||||||
|
}
|
||||||
|
querySelector('.title br').remove();
|
||||||
querySelector('#toc-drop')
|
querySelector('#toc-drop')
|
||||||
.append(querySelector('#table-of-contents')..classes.add('dropdown'));
|
.append(querySelector('#table-of-contents')..classes.add('dropdown'));
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user