REFACTOR optimizing injecting id to h2 by injecting in php instead of javascript
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
71ee6d1bb6
commit
54b671d902
|
|
@ -1,7 +1,6 @@
|
||||||
import handleIndexPanel from './index-panel';
|
import handleIndexPanel from './index-panel';
|
||||||
import handleFootnoteFormat from './footnote-format';
|
import handleFootnoteFormat from './footnote-format';
|
||||||
import handleCiteButton from './cite-button';
|
import handleCiteButton from './cite-button';
|
||||||
import { injectIdToNativeTitles } from './sommaire';
|
|
||||||
import { handleArticleToolbar } from './article-toolbar.ts';
|
import { handleArticleToolbar } from './article-toolbar.ts';
|
||||||
|
|
||||||
export default function singles(): void {
|
export default function singles(): void {
|
||||||
|
|
@ -9,8 +8,6 @@ export default function singles(): void {
|
||||||
const isSingleArticle: HTMLElement | null = document.querySelector('.page--single-articles');
|
const isSingleArticle: HTMLElement | null = document.querySelector('.page--single-articles');
|
||||||
if (!isSingleRevue && !isSingleArticle) return;
|
if (!isSingleRevue && !isSingleArticle) return;
|
||||||
|
|
||||||
injectIdToNativeTitles();
|
|
||||||
|
|
||||||
handleIndexPanel();
|
handleIndexPanel();
|
||||||
handleFootnoteFormat();
|
handleFootnoteFormat();
|
||||||
handleCiteButton();
|
handleCiteButton();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user