From 1b916a0cea9c5c6fc7c1294e691eefaaecd7e0cb Mon Sep 17 00:00:00 2001 From: Kelly Dwan Date: Tue, 10 Sep 2024 16:57:25 -0400 Subject: [PATCH] Templates: Add handbook template --- themes/wporg-5ftf-2024/functions.php | 3 ++ .../templates/single-handbook.html | 50 +++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 themes/wporg-5ftf-2024/templates/single-handbook.html diff --git a/themes/wporg-5ftf-2024/functions.php b/themes/wporg-5ftf-2024/functions.php index 6ff3007..d80b722 100644 --- a/themes/wporg-5ftf-2024/functions.php +++ b/themes/wporg-5ftf-2024/functions.php @@ -23,6 +23,9 @@ add_filter( 'get_the_excerpt', __NAMESPACE__ . '\inject_pledge_content', 1 ); add_filter( 'search_template_hierarchy', __NAMESPACE__ . '\use_archive_template' ); add_filter( 'body_class', __NAMESPACE__ . '\add_body_class' ); +// Remove table of contents. +add_filter( 'wporg_handbook_toc_should_add_toc', '__return_false' ); + /** * Enqueue scripts and styles. */ diff --git a/themes/wporg-5ftf-2024/templates/single-handbook.html b/themes/wporg-5ftf-2024/templates/single-handbook.html new file mode 100644 index 0000000..cc2c98a --- /dev/null +++ b/themes/wporg-5ftf-2024/templates/single-handbook.html @@ -0,0 +1,50 @@ + + + +
+ + +
+ + +
+ + +
+ + + + + + + + + + + +
+ + +
+ + + +
+ + +
+ + + + + + + + +
+ + +
+ + +