mirror of https://github.com/tikv/website.git
Branding page link plus aesthetic updates (#34)
Signed-off-by: lucperkins <lucperkins@gmail.com>
This commit is contained in:
parent
bbee349a0e
commit
707f603f68
16
config.toml
16
config.toml
|
|
@ -36,22 +36,6 @@ css = ["syntax"]
|
|||
twitter = "tikvproject"
|
||||
github = "https://github.com/tikv/tikv"
|
||||
|
||||
[[params.home.buttons]]
|
||||
text = "Overview"
|
||||
link = "/docs/concepts/overview"
|
||||
|
||||
[[params.home.buttons]]
|
||||
text = "Quickstart"
|
||||
link = "/docs/tasks/quickstart"
|
||||
|
||||
[[params.home.buttons]]
|
||||
text = "Blog"
|
||||
link = "/blog"
|
||||
|
||||
[[params.home.buttons]]
|
||||
text = "Forum"
|
||||
link = "https://forum.tikv.org"
|
||||
|
||||
[outputs]
|
||||
home = ["HTML", "REDIRECTS"]
|
||||
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<div class="card has-background-black">
|
||||
<div class="card-content">
|
||||
<p class="title is-blog-card-title is-size-2 is-size-3-mobile has-text-weight-light{{ if .Params.author }} is-spaced{{ end }}">
|
||||
<a class="has-text-white" href="{{ .URL }}">
|
||||
<a class="has-text-white" href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</p>
|
||||
|
|
@ -39,7 +39,7 @@
|
|||
</div>
|
||||
|
||||
<div class="level-right">
|
||||
<a class="button is-primary" href="{{ .URL }}">
|
||||
<a class="button is-primary" href="{{ .RelPermalink }}">
|
||||
<span class="icon">
|
||||
<i class="fas fa-book-open"></i>
|
||||
</span>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
{{ $date := dateFormat "January 2, 2006" .Date }}
|
||||
<a class="navbar-item" href="{{ .URL }}">
|
||||
<a class="navbar-item" href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ if ne .URL "/blog/" }}
|
||||
{{ if ne .RelPermalink "/blog/" }}
|
||||
<p class="is-size-5 has-text-grey-lighter has-text-weight-light">
|
||||
{{ $date }}
|
||||
</p>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{{ $deepDive := where site.Sections "Section" "deep-dive" }}
|
||||
{{ $currentUrl := .URL }}
|
||||
{{ $currentUrl := .RelPermalink }}
|
||||
<div class="deep-dive-toc">
|
||||
<p class="title is-narrow has-text-weight-bold">
|
||||
TiKV deep dive
|
||||
|
|
@ -9,20 +9,20 @@
|
|||
|
||||
<ul>
|
||||
{{ range $deepDive }}
|
||||
{{ $isCurrentPage := eq $currentUrl .URL }}
|
||||
{{ $isCurrentPage := eq $currentUrl .RelPermalink }}
|
||||
<li{{ if $isCurrentPage }} class="is-active"{{ end }}>
|
||||
<strong>{{ .Weight }}</strong>.
|
||||
<a href="{{ .URL }}">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
|
||||
{{ range .Sections }}
|
||||
{{ $isCurrentPage := eq $currentUrl .URL }}
|
||||
{{ $isCurrentPage := eq $currentUrl .RelPermalink }}
|
||||
{{ $sectionWeight := .Weight }}
|
||||
<li{{ if $isCurrentPage }} class="is-active"{{ end }}>
|
||||
<strong>{{ $sectionWeight }}</strong>.
|
||||
<a href="{{ .URL }}">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
|
|
@ -30,10 +30,10 @@
|
|||
<li>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
{{ $isCurrentPage := eq $currentUrl .URL }}
|
||||
{{ $isCurrentPage := eq $currentUrl .RelPermalink }}
|
||||
<li{{ if $isCurrentPage }} class="is-active"{{ end }}>
|
||||
<strong>{{ $sectionWeight }}.{{ .Weight }}</strong>.
|
||||
<a href="{{ .URL }}">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{{ $docs := where site.Pages "Section" "docs" }}
|
||||
{{ $description := .Params.description }}
|
||||
{{ $currentUrl := .URL }}
|
||||
{{ $currentUrl := .RelPermalink }}
|
||||
{{ $isNew := .Params.new }}
|
||||
{{ $docsSections := where site.Sections "Section" "docs" }}
|
||||
{{ $currentSection := .CurrentSection.Name }}
|
||||
|
|
@ -36,7 +36,7 @@
|
|||
{{ $mainPage := index (where .Pages "Weight" 1) 0 }}
|
||||
{{ $isCurrentSection := eq .Name $currentSection }}
|
||||
<li{{ if $isCurrentSection }} class="is-active"{{ end }}>
|
||||
<a href="{{ $mainPage.URL }}">
|
||||
<a href="{{ $mainPage.RelPermalink }}">
|
||||
{{ .Name }}
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
{{ $allDocs := where site.RegularPages "Section" "docs" }}
|
||||
{{ $thisSection := .CurrentSection.Name }}
|
||||
{{ $currentUrl := .URL }}
|
||||
{{ $currentUrl := .RelPermalink }}
|
||||
<div class="section-toc">
|
||||
<ul>
|
||||
{{ range where $allDocs "CurrentSection.Name" $thisSection }}
|
||||
{{ $isCurrentPage := eq .URL $currentUrl }}
|
||||
{{ $isCurrentPage := eq .RelPermalink $currentUrl }}
|
||||
<li{{ if $isCurrentPage }} class="is-active"{{ end }}>
|
||||
<a href="{{ .URL }}">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@
|
|||
<ul>
|
||||
{{ range $docs }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
<ul>
|
||||
{{ range first 5 $blogPosts }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">
|
||||
<a href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</li>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{{ $favicon := site.Params.favicon | relURL }}
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
{{ .Hugo.Generator }}
|
||||
{{ hugo.Generator }}
|
||||
|
||||
<link rel="shorcut icon" href="{{ $favicon }}">
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@
|
|||
|
||||
<div class="navbar-dropdown is-hidden-touch">
|
||||
{{ range $docs }}
|
||||
<a class="navbar-item" href="{{ .URL }}">
|
||||
<a class="navbar-item" href="{{ .RelPermalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
{{ end }} <!-- range $docs -->
|
||||
|
|
@ -61,12 +61,12 @@
|
|||
|
||||
<div class="navbar-dropdown is-hidden-touch">
|
||||
{{ range $deepDive }}
|
||||
<a class="navbar-item" href="{{ .URL }}">
|
||||
<a class="navbar-item" href="{{ .RelPermalink }}">
|
||||
<strong>{{ .Weight }}</strong>. {{ .Title }}
|
||||
</a>
|
||||
|
||||
{{ range .Sections }}
|
||||
<a class="navbar-item" href="{{ .URL }}">
|
||||
<a class="navbar-item" href="{{ .RelPermalink }}">
|
||||
<strong>{{ .Weight }}</strong>. {{ .Title }}
|
||||
</a>
|
||||
{{ end }}
|
||||
|
|
@ -80,15 +80,18 @@
|
|||
</div>
|
||||
|
||||
<div class="navbar-dropdown">
|
||||
<a class="navbar-item" href="https://forum.tikv.org">
|
||||
<a class="navbar-item" href="https://forum.tikv.org" target="_blank">
|
||||
Forum
|
||||
</a>
|
||||
<a class="navbar-item" href="https://join.slack.com/t/tikv-wg/shared_invite/enQtNTUyODE4ODU2MzI0LTgzZDQ3NzZlNDkzMGIyYjU1MTA0NzIwMjFjODFiZjA0YjFmYmQyOTZiNzNkNzg1N2U1MDdlZTIxNTU5NWNhNjk">
|
||||
<a class="navbar-item" href="https://join.slack.com/t/tikv-wg/shared_invite/enQtNTUyODE4ODU2MzI0LTgzZDQ3NzZlNDkzMGIyYjU1MTA0NzIwMjFjODFiZjA0YjFmYmQyOTZiNzNkNzg1N2U1MDdlZTIxNTU5NWNhNjk" target="_blank">
|
||||
Chat
|
||||
</a>
|
||||
<a class="navbar-item" href="/adopters">
|
||||
Adopters
|
||||
</a>
|
||||
<a class="navbar-item" href="https://branding.cncf.io/projects/tikv" target="_blank">
|
||||
Branding
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -114,7 +117,7 @@
|
|||
More...
|
||||
</a>
|
||||
</div>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="navbar-item">
|
||||
<div class="field is-grouped">
|
||||
|
|
@ -136,17 +139,6 @@
|
|||
GitHub
|
||||
</span>
|
||||
</a>
|
||||
|
||||
<!--
|
||||
<a class="button is-primary" href="/download">
|
||||
<span class="icon is-medium">
|
||||
<i class="fas fa-cloud-download-alt"></i>
|
||||
</span>
|
||||
<span>
|
||||
Download
|
||||
</span>
|
||||
</a>
|
||||
-->
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"bulma": "^0.7.1"
|
||||
"bulma": "^0.7.4"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
# yarn lockfile v1
|
||||
|
||||
|
||||
bulma@^0.7.1:
|
||||
version "0.7.1"
|
||||
resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.7.1.tgz#73c2e3b2930c90cc272029cbd19918b493fca486"
|
||||
integrity sha512-wRSO2LXB+qI9Pyz2id+uZr4quz5aftSN7Ay1ysr1+krzVp3utD+Ci4CeKuZdrYGc800t65b7heXBL6qw2Wo/lQ==
|
||||
bulma@^0.7.4:
|
||||
version "0.7.4"
|
||||
resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.7.4.tgz#7e74512e9118d9799021339e67e365ee0ac4f3f9"
|
||||
integrity sha512-krG2rP6eAX1WE0sf6O0SC/FUVSOBX4m1PBC2+GKLpb2pX0qanaDqcv9U2nu75egFrsHkI0zdWYuk/oGwoszVWg==
|
||||
|
|
|
|||
Loading…
Reference in New Issue