mirror of
https://github.com/tabler/tabler.git
synced 2026-07-29 14:34:37 +04:00
page title fixes
This commit is contained in:
@@ -1,21 +1,29 @@
|
||||
{% if page.page-title or layout.page-title %}
|
||||
<!-- Page title -->
|
||||
<div class="page-title-box">
|
||||
|
||||
<div class="row align-items-center">
|
||||
<div class="col">
|
||||
{% if page.page-subtitle %}
|
||||
<!-- Page pre-title -->
|
||||
<div class="page-pretitle">
|
||||
Overview
|
||||
</div>
|
||||
{% endif %}
|
||||
<h2 class="page-title">
|
||||
{{ page.page-title | default: layout.page-title }}
|
||||
</h2>
|
||||
</div>
|
||||
|
||||
{% if page.page-title-actions %}
|
||||
<!-- Page title actions -->
|
||||
<div class="col-auto">
|
||||
<span class="d-none d-sm-inline">
|
||||
{% include ui/button.html text="New view" color="secondary" icon="plus" %}
|
||||
</span>
|
||||
{% include ui/button.html text="Create new report" color="primary" class="ml-3" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
+2
-3
@@ -1,13 +1,12 @@
|
||||
---
|
||||
title: Homepage
|
||||
page-title: Homepage
|
||||
page-subtitle: Overview
|
||||
page-title-actions: home
|
||||
---
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
|
||||
|
||||
{% include cards/project-summary.html %}
|
||||
{% include cards/social-traffic.html %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user