Skip to content

Commit

Permalink
Merge pull request #63 from os2ulf/feature/OS2UOL-442
Browse files Browse the repository at this point in the history
OS2UOL-442: Conditional page title if no page header for simple pages
  • Loading branch information
tutaru99 authored Jun 17, 2024
2 parents dae4568 + b420bf6 commit dbc7fa3
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions components/views/pageView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,24 @@ useHead({
<div>
<PageHeader v-if="pageHeader" :page-block-header-data="pageHeader" />
<div class="container" v-else>
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-12">
<h1 class="page-title">{{ data?.label }}</h1>
</div>
</div>
</div>
<Sections
v-if="data && data.layout_builder__layout"
:sections="data.layout_builder__layout"
/>
</div>
</template>
<style lang="postcss" scoped>
.page-title {
padding-top: 48px @(--md) 96px;
margin-bottom: 32px @(--md) 64px;
}
</style>

0 comments on commit dbc7fa3

Please sign in to comment.