Skip to content

Commit

Permalink
Merge pull request #76 from ggrossetie/listing
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie authored Jan 10, 2024
2 parents 5ccee88 + 6afdd68 commit 0f06e3b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
33 changes: 33 additions & 0 deletions src/layouts/listing.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<!DOCTYPE html>
<html lang="en">
<head>
{{> head defaultPageTitle='Untitled'}}
</head>
<body class="article docs-case-study{{#with (or page.attributes.role page.role)}} {{{this}}}{{/with}}">
{{> header}}

<div class="body">
{{> nav componentOrder=page.attributes.component-order}}
<main class="article">
<div class="toolbar" role="navigation">
{{> nav-toggle}}
{{#with site.homeUrl}}
<a href="{{{relativize this}}}" class="home-link{{#if @root.page.home}} is-current{{/if}}"></a>
{{/with}}
{{> breadcrumbs}}
</div>

<div class="content">
<article class="doc">
{{#with @root.page.title}}
<h1 class="page">{{{this}}}</h1>
{{/with}}
{{> listing configName=page.attributes.listing-config }}
</article>
</div>
</main>
</div>

{{> footer}}
</body>
</html>
3 changes: 3 additions & 0 deletions src/partials/head-styles.hbs
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
<link rel="stylesheet" href="{{{uiRootPath}}}/css/site.css">
{{#if env.SITE_LISTING_EXTENSION_ENABLED}}
<link rel="stylesheet" href="{{{uiRootPath}}}/css/listing.css">
{{/if}}

0 comments on commit 0f06e3b

Please sign in to comment.