feat: give project and show archives their own templates
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
3 files changed
+23
-1
No files matched your search
@@ -0,0 +1,12 @@
|
||||
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
|
||||
|
||||
<!-- wp:group {"tagName":"main","anchor":"chrnx-main","className":"chrnx-archive chrnx-project-archive","layout":{"type":"constrained"}} -->
|
||||
<main id="chrnx-main" class="wp-block-group chrnx-archive chrnx-project-archive" tabindex="-1">
|
||||
<!-- wp:query-title {"type":"archive","level":1,"showPrefix":false} /-->
|
||||
<!-- wp:chrnx/project-detail /-->
|
||||
<!-- wp:chrnx/journal-stream /-->
|
||||
<!-- wp:chrnx/subscribe-cta {"className":"is-style-quiet"} /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
||||
@@ -0,0 +1,10 @@
|
||||
<!-- wp:template-part {"slug":"header","tagName":"header"} /-->
|
||||
|
||||
<!-- wp:group {"tagName":"main","anchor":"chrnx-main","className":"chrnx-archive chrnx-show-archive","layout":{"type":"constrained"}} -->
|
||||
<main id="chrnx-main" class="wp-block-group chrnx-archive chrnx-show-archive" tabindex="-1">
|
||||
<!-- wp:query-title {"type":"archive","level":1,"showPrefix":false} /-->
|
||||
<!-- wp:chrnx/show-links /-->
|
||||
</main>
|
||||
<!-- /wp:group -->
|
||||
|
||||
<!-- wp:template-part {"slug":"footer","tagName":"footer"} /-->
|
||||
@@ -2,7 +2,7 @@ import assert from 'node:assert/strict';
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import test from 'node:test';
|
||||
|
||||
const templates = [ 'home', 'single', 'page', 'archive', 'search', '404' ];
|
||||
const templates = [ 'home', 'single', 'page', 'archive', 'search', '404', 'taxonomy-chrnx_project', 'taxonomy-chrnx_show', 'taxonomy-chrnx_release' ];
|
||||
const readTemplate = (name) => readFile(new URL(`../../templates/${name}.html`, import.meta.url), 'utf8');
|
||||
|
||||
function assertBalancedBlockMarkup(markup, name) {
|
||||
|
||||
Reference in new issue
Block a user