You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by bl...@apache.org on 2022/07/20 01:53:36 UTC
[iceberg-docs] branch main updated: Move header out of content div (#123)
This is an automated email from the ASF dual-hosted git repository.
blue pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg-docs.git
The following commit(s) were added to refs/heads/main by this push:
new 9c040839 Move header out of content div (#123)
9c040839 is described below
commit 9c0408392f6db1decf2c2e17ede51e60dd714673
Author: Samuel Redai <43...@users.noreply.github.com>
AuthorDate: Tue Jul 19 21:53:32 2022 -0400
Move header out of content div (#123)
---
iceberg-theme/layouts/index.html | 2 +-
iceberg-theme/layouts/partials/about.html | 23 +++++++++++++++++++++++
iceberg-theme/layouts/partials/header.html | 25 +------------------------
3 files changed, 25 insertions(+), 25 deletions(-)
diff --git a/iceberg-theme/layouts/index.html b/iceberg-theme/layouts/index.html
index 7d79f5a5..b7e7a25d 100644
--- a/iceberg-theme/layouts/index.html
+++ b/iceberg-theme/layouts/index.html
@@ -18,8 +18,8 @@
{{ partial "body.html" . }}
{{ else }}
{{ partial "head.html" . }}
- <div id="content">
{{ partial "header.html" . }}
+ <div id="content">
{{ partial "about.html" . }}
{{ partial "services.html" . }}
{{ partial "pricing.html" . }}
diff --git a/iceberg-theme/layouts/partials/about.html b/iceberg-theme/layouts/partials/about.html
index fc384179..14414b8d 100644
--- a/iceberg-theme/layouts/partials/about.html
+++ b/iceberg-theme/layouts/partials/about.html
@@ -13,6 +13,29 @@
<!-- - See the License for the specific language governing permissions and-->
<!-- - limitations under the License.-->
+{{ if and .IsHome (not .Site.Params.disableHome) }}
+ <!-- Show the Iceberg marketing splash content only when on the homepage-->
+ <section id="intro">
+ <div class="intro-header">
+ <div class="container">
+ <div class="row">
+ <div class="col-lg-12">
+ <div class="intro-message">
+ <h1>{{ .Site.Title }}</h1>
+ <h3>{{ .Site.Params.description }}</h3>
+ <hr class="intro-divider">
+ {{ if isset .Site.Params "social" }}
+ <ul class="list-inline intro-social-buttons">
+ {{ partial "social.html" . }}
+ </ul>
+ {{ end }}
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+{{ end }}
<section id="about" class="container content-section text-center">
{{ range where .Site.RegularPages "Section" "about" | first 1 }}
<div class="row">
diff --git a/iceberg-theme/layouts/partials/header.html b/iceberg-theme/layouts/partials/header.html
index 17072af4..c745b598 100644
--- a/iceberg-theme/layouts/partials/header.html
+++ b/iceberg-theme/layouts/partials/header.html
@@ -74,27 +74,4 @@
</div>
</topsection>
</nav>
-{{ partial "search-results.html" . }}
-{{ if and .IsHome (not .Site.Params.disableHome) }}
- <!-- Show the Iceberg marketing splash content only when on the homepage-->
- <section id="intro">
- <div class="intro-header">
- <div class="container">
- <div class="row">
- <div class="col-lg-12">
- <div class="intro-message">
- <h1>{{ .Site.Title }}</h1>
- <h3>{{ .Site.Params.description }}</h3>
- <hr class="intro-divider">
- {{ if isset .Site.Params "social" }}
- <ul class="list-inline intro-social-buttons">
- {{ partial "social.html" . }}
- </ul>
- {{ end }}
- </div>
- </div>
- </div>
- </div>
- </div>
- </section>
-{{ end }}
\ No newline at end of file
+{{ partial "search-results.html" . }}
\ No newline at end of file