diff options
Diffstat (limited to 'src/misc-templates.js')
-rw-r--r-- | src/misc-templates.js | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/misc-templates.js b/src/misc-templates.js index 83aae190..755ad649 100644 --- a/src/misc-templates.js +++ b/src/misc-templates.js @@ -50,7 +50,10 @@ function unbound_generateAdditionalFilesList(additionalFiles, { return html.fragment([ html.tag('p', - {id: 'additional-files'}, + { + id: 'additional-files', + class: ['content-heading'], + }, language.$('releaseInfo.additionalFiles.heading', { additionalFiles: language.countAdditionalFiles(fileCount, { unit: true, @@ -717,6 +720,19 @@ function unbound_generateNavigationLinks(current, { return language.formatUnitList(links); } +// Sticky heading, ooooo + +function unbound_generateStickyHeadingContainer(headingContent, { + html, +}) { + return html.tag('div', + {class: 'content-sticky-heading-container'}, + [ + html.tag('h1', headingContent), + html.tag('h2', {class: 'content-sticky-subheading'}), + ]); +} + // Footer stuff function unbound_getFooterLocalizationLinks(pathname, { @@ -794,5 +810,7 @@ export { unbound_generateInfoGalleryLinks as generateInfoGalleryLinks, unbound_generateNavigationLinks as generateNavigationLinks, + unbound_generateStickyHeadingContainer as generateStickyHeadingContainer, + unbound_getFooterLocalizationLinks as getFooterLocalizationLinks, } |