{icon &&
}
-
{title}
+
{title}
{children || description}
{tags && (
diff --git a/src/components/CenterLayout.tsx b/src/components/CenterLayout.tsx
index b023df1d7..bd1704f64 100644
--- a/src/components/CenterLayout.tsx
+++ b/src/components/CenterLayout.tsx
@@ -1,4 +1,5 @@
import React from "react"
+import clsx from "clsx"
import styles from "./CenterLayout.module.css"
/**
@@ -9,10 +10,24 @@ import styles from "./CenterLayout.module.css"
* hide_table_of_contents: true
* hide_title: true
* ---
+ *
+ * You should then wrap _all_ content on the page between tags:
+ *
+ *
+ *
+ * # Page Title
+ *
+ * Content…
+ *
+ *
+ *
+ * Also note: The "markdown" class being applied is essential to preserve
+ * default styles applied by the theme e.g. with `.markdown > h2` selectors
+ *
* */
export const CenterLayout: React.FunctionComponent = ({ children }) => {
- return {children}
+ return {children}
}
export default CenterLayout
diff --git a/src/components/Course.module.css b/src/components/Course.module.css
index 9f615a54b..2a3938430 100644
--- a/src/components/Course.module.css
+++ b/src/components/Course.module.css
@@ -1,5 +1,6 @@
.author {
color: gray;
+ margin: 1.5rem 0;
}
.author img {