Merge pull request #1000 from liuboaibc/fix/header

fix header
This commit is contained in:
KubeSphere CI Bot 2021-01-22 14:21:40 +08:00 committed by GitHub
commit 634fb615a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 3 deletions

View File

@ -12,7 +12,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{{ end }}
{{- partial "header.html" . -}}
<main class='main-section padding'>
<main class='main-section'>
{{- block "main" . }}{{- end }}
</main>
{{- partial "footer.html" . -}}

View File

@ -12,7 +12,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{{ end }}
{{- partial "header.html" . -}}
<main class='main-section padding'>
<main class='main-section'>
<section class='section-1 bg-cover'>
<div class="common-layout">
{{ partial "breadcrumb.html" . }}

View File

@ -22,7 +22,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{{ end }}
{{ partial "header.html" $context }}
<section class="main-section padding">
<section class="main-section">
<div class="common-layout">
<div class='breadcrumb'>
{{ $section := $context.FirstSection }}

View File

@ -146,6 +146,14 @@
});
}
var bindRemovePadding = function() {
var close = $('#close-join')
if (close.length > 0) {
$('.main-section').addClass('padding')
}
}
bindRemovePadding()
// bindLayLoad()
bindSubmit()
bindHideMessage()