Skip to content

Commit 61abbb9

Browse files
committed
remove commented-out code
1 parent 1251871 commit 61abbb9

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

src/command/render/render-contexts.ts

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -505,39 +505,6 @@ async function resolveFormats(
505505
const directoryFormat = directoryFormats[format].format;
506506
const inputFormat = inputFormats[format].format;
507507

508-
// resolve theme (project-level bootstrap theme always wins for web drived output)
509-
if (
510-
project &&
511-
(isHtmlOutput(format, true) || isHtmlDashboardOutput(format)) &&
512-
formatHasBootstrap(projFormat) && projectTypeIsWebsite(projType)
513-
) {
514-
// if (formatHasBootstrap(inputFormat)) {
515-
// if (
516-
// inputFormat.metadata[kTheme] !== undefined &&
517-
// !ld.isEqual(inputFormat.metadata[kTheme], projFormat.metadata[kTheme])
518-
// ) {
519-
// warnOnce(
520-
// `The file ${file.path} contains a theme property which is being ignored. Website projects do not support per document themes since all pages within a website share the website's theme.`,
521-
// );
522-
// }
523-
// delete inputFormat.metadata[kTheme];
524-
// }
525-
// if (formatHasBootstrap(directoryFormat)) {
526-
// if (
527-
// directoryFormat.metadata[kTheme] !== undefined &&
528-
// !ld.isEqual(
529-
// directoryFormat.metadata[kTheme],
530-
// projFormat.metadata[kTheme],
531-
// )
532-
// ) {
533-
// warnOnce(
534-
// `The file ${file.path} contains a theme provided by a metadata file. This theme metadata is being ignored. Website projects do not support per directory themes since all pages within a website share the website's theme.`,
535-
// );
536-
// }
537-
// delete directoryFormat.metadata[kTheme];
538-
// }
539-
}
540-
541508
// combine user formats
542509
const userFormat = mergeFormatMetadata(
543510
projFormat || {},

0 commit comments

Comments
 (0)