Skip to content

Commit

Permalink
Merge pull request #45 from plone/hero
Browse files Browse the repository at this point in the history
include hero-element from a view @@hero
  • Loading branch information
pbauer committed Sep 16, 2015
2 parents be2b387 + a074eb3 commit 49b8626
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
9 changes: 0 additions & 9 deletions plonetheme/barceloneta/theme/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,6 @@
<div id="mainnavigation">
</div>
</div>
<div class="principal" role="complementary">
<div class="container">
<div class="gigantic">
<h1>Welcome!</h1>
<p>Plone 5 rocks!</p>
<p><a href="http://plone.com" class="context" role="button" target="_blank">Learn more</a></p>
</div>
</div>
</div>
<div id="above-content-wrapper">
<div id="above-content">
</div>
Expand Down
4 changes: 2 additions & 2 deletions plonetheme/barceloneta/theme/rules.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<!-- move global nav -->
<replace css:theme-children="#mainnavigation" css:content-children="#portal-mainnavigation" method="raw" />

<!-- hero unit on homepage only -->
<drop css:theme="div.principal" css:if-not-content="body.template-document_view.section-front-page" />
<!-- include view @@hero on homepage only -->
<after css:theme="#mainnavigation-wrapper" css:content=".principal" href="/@@hero" css:if-content="body.template-document_view.section-front-page" />

<!-- full-width breadcrumb -->
<replace css:content="#viewlet-above-content" css:theme="#above-content" />
Expand Down

0 comments on commit 49b8626

Please sign in to comment.