mirror of
https://github.com/kubesphere/website.git
synced 2025-12-26 00:12:48 +00:00
update content page
This commit is contained in:
parent
f16c4e6323
commit
db4d28b642
|
|
@ -1,45 +1 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
|
||||
{{- partial "head.html" . -}}
|
||||
|
||||
{{ $style := resources.Get "scss/content.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
|
||||
{{ $style := resources.Get "scss/markdown.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<section class="main-section {{ if eq .Site.Language.Lang "zh"}} padding{{ end }}">
|
||||
<div class="common-layout">
|
||||
<div class='breadcrumb'>
|
||||
<span><a href='{{ "blogs" | relLangURL }}'>{{ i18n "Technology Blogs"}}</a> > </span>
|
||||
<span>{{ .Title }}</span>
|
||||
</div>
|
||||
<div class='main-div'>
|
||||
<div class='author'>{{ .Params.author }}</div>
|
||||
<div class='date'>{{ i18n "Published on" }}:{{ string .Params.createTime }}</div>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div class="share-1">
|
||||
{{- partial "share.html" . -}}
|
||||
</div>
|
||||
<div class='content'>
|
||||
<div class='md-body'>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="share-2">
|
||||
{{- partial "share.html" . -}}
|
||||
</div>
|
||||
</div>
|
||||
<div class='aside aside-fixed'>
|
||||
<div class='title'>{{ i18n "Table of Contents" }}</div>
|
||||
<div class='tabs'>{{ .TableOfContents }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{- partial "footer.html" . -}}
|
||||
<script src='{{ "js/aside.js" | relURL }}'></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ partial "content.html" (dict "context" . "parent" "blogs" "text" "Technology Blogs") }}
|
||||
|
|
|
|||
|
|
@ -1,45 +1 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
|
||||
{{- partial "head.html" . -}}
|
||||
|
||||
{{ $style := resources.Get "scss/content.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
|
||||
{{ $style := resources.Get "scss/markdown.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<section class="main-section {{ if eq .Site.Language.Lang "zh"}} padding{{ end }}">
|
||||
<div class="common-layout">
|
||||
<div class='breadcrumb'>
|
||||
<span><a href='{{ "conferences" | relLangURL }}'>{{ i18n "KubeCon & QCon"}}</a> > </span>
|
||||
<span>{{ .Title }}</span>
|
||||
</div>
|
||||
<div class='main-div'>
|
||||
<div class='author'>{{ .Params.author }}</div>
|
||||
<div class='date'>{{ i18n "Published on" }}:{{ string .Params.createTime }}</div>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div class="share-1">
|
||||
{{- partial "share.html" . -}}
|
||||
</div>
|
||||
<div class='content'>
|
||||
<div class='md-body'>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="share-2">
|
||||
{{- partial "share.html" . -}}
|
||||
</div>
|
||||
</div>
|
||||
<div class='aside aside-fixed'>
|
||||
<div class='title'>{{ i18n "Table of Contents" }}</div>
|
||||
<div class='tabs'>{{ .TableOfContents }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{- partial "footer.html" . -}}
|
||||
<script src='{{ "js/aside.js" | relURL }}'></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ partial "content.html" (dict "context" . "parent" "conferences" "text" "KubeCon & QCon") }}
|
||||
|
|
|
|||
|
|
@ -1,45 +1 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
|
||||
{{- partial "head.html" . -}}
|
||||
|
||||
{{ $style := resources.Get "scss/content.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
|
||||
{{ $style := resources.Get "scss/markdown.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
|
||||
<body>
|
||||
{{- partial "header.html" . -}}
|
||||
<section class="main-section {{ if eq .Site.Language.Lang "zh"}} padding{{ end }}">
|
||||
<div class="common-layout">
|
||||
<div class='breadcrumb'>
|
||||
<span><a href='{{ "news" | relLangURL }}'>{{ i18n "news"}}</a> > </span>
|
||||
<span>{{ .Title }}</span>
|
||||
</div>
|
||||
<div class='main-div'>
|
||||
<div class='author'>{{ .Params.author }}</div>
|
||||
<div class='date'>{{ i18n "Published on" }}:{{ string .Params.createTime }}</div>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<div class="share-1">
|
||||
{{- partial "share.html" . -}}
|
||||
</div>
|
||||
<div class='content'>
|
||||
<div class='md-body'>
|
||||
{{ .Content }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="share-2">
|
||||
{{- partial "share.html" . -}}
|
||||
</div>
|
||||
</div>
|
||||
<div class='aside aside-fixed'>
|
||||
<div class='title'>{{ i18n "Table of Contents" }}</div>
|
||||
<div class='tabs'>{{ .TableOfContents }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{- partial "footer.html" . -}}
|
||||
<script src='{{ "js/aside.js" | relURL }}'></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ partial "content.html" (dict "context" . "parent" "news" "text" "news") }}
|
||||
|
|
@ -0,0 +1,49 @@
|
|||
{{ $context := .context }}
|
||||
{{ $parent := .parent }}
|
||||
{{ $text := .text }}
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
|
||||
{{- partial "head.html" . -}}
|
||||
|
||||
{{ $style := resources.Get "scss/content.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
|
||||
{{ $style := resources.Get "scss/markdown.scss" | toCSS | minify | fingerprint }}
|
||||
<link rel="stylesheet" href="{{ $style.RelPermalink }}">
|
||||
|
||||
<body>
|
||||
{{ partial "header.html" $context }}
|
||||
<section class="main-section {{ if eq .context.Site.Language.Lang "zh"}} padding{{ end }}">
|
||||
<div class="common-layout">
|
||||
<div class='breadcrumb'>
|
||||
{{ $section := $context.FirstSection }}
|
||||
<span><a href='{{ $parent | relLangURL }}'>{{ i18n $text }}</a> > </span>
|
||||
<span>{{ $context.Title }}</span>
|
||||
</div>
|
||||
<div class='main-div'>
|
||||
<div class='author'>{{ $context.Params.author }}</div>
|
||||
<div class='date'>{{ i18n "Published on" }}:{{ string $context.Params.createTime }}</div>
|
||||
<h1>{{ $context.Title }}</h1>
|
||||
<div class="share-1">
|
||||
{{ partial "share.html" }}
|
||||
</div>
|
||||
<div class='content'>
|
||||
<div class='md-body'>
|
||||
{{ $context.Content }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="share-2">
|
||||
{{ partial "share.html" }}
|
||||
</div>
|
||||
</div>
|
||||
<div class='aside aside-fixed'>
|
||||
<div class='title'>{{ i18n "Table of Contents" }}</div>
|
||||
<div class='tabs'>{{ $context.TableOfContents }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{{ partial "footer.html" $context }}
|
||||
<script src='{{ "js/aside.js" | relURL }}'></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Loading…
Reference in New Issue