summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2021-11-22 20:32:46 -0500
committerSacha Chua <sacha@sachachua.com>2021-11-22 20:32:46 -0500
commitd96794493cc4ee2939b461f84a4029d5b92c1400 (patch)
treec739653bb1e85b498fb391703cdfde084b4dae2d
parentd9d5c53b6a1d1bbf380661e77969abf2b3c8f18e (diff)
downloademacsconf-wiki-d96794493cc4ee2939b461f84a4029d5b92c1400.tar.xz
emacsconf-wiki-d96794493cc4ee2939b461f84a4029d5b92c1400.zip
Make sidebar optional
Diffstat (limited to '')
-rw-r--r--local.css2
-rw-r--r--templates/page.tmpl5
2 files changed, 5 insertions, 2 deletions
diff --git a/local.css b/local.css
index 4e6eabc7..4ad12b50 100644
--- a/local.css
+++ b/local.css
@@ -19,7 +19,7 @@ h1 { font-weight: bold }
.pageheader { border: none }
-#content {
+body.has-sidebar #content {
max-width: 38rem;
margin: 0;
line-height: 1.5;
diff --git a/templates/page.tmpl b/templates/page.tmpl
index 6df947c6..d6cd9e3e 100644
--- a/templates/page.tmpl
+++ b/templates/page.tmpl
@@ -107,7 +107,7 @@
// @license-end
</script>
</head>
-<body>
+<body <TMPL_IF SIDEBAR>class="has-sidebar"</TMPL_IF>>
<TMPL_IF HTML5><article class="page"><TMPL_ELSE><div class="page"></TMPL_IF>
@@ -304,6 +304,9 @@ Last edited <TMPL_VAR MTIME>
transcriptDiv.appendChild(transcriptLink)
if (resources) { resources.prepend(transcriptDiv); }
}
+ if (document.querySelector('.chat-iframe')) {
+ document.querySelector('.chat-iframe').innerHTML = '<iframe src="https://chat.emacsconf.org" height="600" width="100%"></iframe>';
+}
// @license-end
</script>
</body>