|
9 | 9 | const citationConfig = paperFooter.citation || {}; |
10 | 10 | const citationTitle = citationConfig.title ?? "Citation"; |
11 | 11 | const citationBibtex = citationConfig.bibtex ?? ""; |
12 | | - const showCitation = citationConfig.show !== false && Boolean(citationBibtex); |
| 12 | + const showCitation = |
| 13 | + String(citationConfig.show) !== "false" && Boolean(citationBibtex); |
13 | 14 |
|
14 | 15 | // Related Work configuration (as paragraph) |
15 | 16 | const relatedWorkConfig = paperFooter.relatedWork || {}; |
16 | 17 | const relatedWorkTitle = relatedWorkConfig.title ?? "Related Work"; |
17 | 18 | const relatedWorkText = relatedWorkConfig.text ?? ""; |
18 | 19 | const showRelatedWork = |
19 | | - relatedWorkConfig.show !== false && Boolean(relatedWorkText); |
| 20 | + String(relatedWorkConfig.show) !== "false" && Boolean(relatedWorkText); |
20 | 21 |
|
21 | 22 | // Funding configuration |
22 | 23 | const fundingConfig = paperFooter.funding || {}; |
23 | 24 | const fundingTitle = fundingConfig.title ?? "Funding"; |
24 | 25 | const fundingDescription = fundingConfig.description ?? ""; |
25 | 26 | const showFunding = |
26 | | - fundingConfig.show !== false && Boolean(fundingDescription); |
| 27 | + String(fundingConfig.show) !== "false" && Boolean(fundingDescription); |
27 | 28 |
|
28 | 29 | // Acknowledgements configuration |
29 | 30 | const acknowledgementsConfig = paperFooter.acknowledgements || {}; |
30 | 31 | const acknowledgementsTitle = |
31 | 32 | acknowledgementsConfig.title ?? "Acknowledgements"; |
32 | 33 | const acknowledgementsText = acknowledgementsConfig.text ?? ""; |
33 | 34 | const showAcknowledgements = |
34 | | - acknowledgementsConfig.show !== false && Boolean(acknowledgementsText); |
| 35 | + String(acknowledgementsConfig.show) !== "false" && |
| 36 | + Boolean(acknowledgementsText); |
35 | 37 | </script> |
36 | 38 |
|
37 | 39 | <footer> |
|
0 commit comments