This repository has been archived by the owner on Nov 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #399 from zarathustra323/mundo-authors-companies
Add autores to nav menu; create companias section page
- Loading branch information
Showing
4 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
sites/mundopmmi/server/templates/website-section/companias.marko
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { getAsObject } from '@base-cms/object-path'; | ||
|
||
$ const { site } = out.global; | ||
$ const section = getAsObject(data, 'section'); | ||
|
||
<theme-default-website-section-layout section=section> | ||
<@head> | ||
<endeavor-ad-gam-head /> | ||
</@head> | ||
|
||
<@above-container> | ||
<endeavor-gam-ad-unit-out-of-page name="wa" /> | ||
<endeavor-gam-ad-unit-out-of-page name="reskin" /> | ||
<endeavor-gam-ad-unit-define-display name="lb1" modifiers=["top-of-page"] /> | ||
</@above-container> | ||
|
||
<div class="page-wrapper mb-block"> | ||
<div class="row"> | ||
<div class="col"> | ||
<div class="page-wrapper__header"> | ||
<endeavor-breadcrumbs-website-section section=section /> | ||
<h1 class="page-wrapper__title">${section.name}</h1> | ||
<if(section.description)> | ||
<p class="page-wrapper__description">${section.description}</p> | ||
</if> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<@below-container> | ||
<div class="published-content-query-load-more"> | ||
<endeavor-published-content-query | ||
query={ | ||
contentTypes: ["Company"], | ||
limit: 100, | ||
} | ||
item={ imageUsePlaceholder: false } | ||
layout="event" | ||
/> | ||
</div> | ||
</@below-container> | ||
</theme-default-website-section-layout> |