Skip to content

Commit 800932e

Browse files
committed
fix: logo path and overview on home page
1 parent ac9d1f5 commit 800932e

4 files changed

Lines changed: 185 additions & 125 deletions

File tree

config/_default/params.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,9 @@ footer = "Powered by <a class=\"text-muted\" href=\"https://github.com/tableauio
6363
copyRight = "Copyright (c) 2020-2021 Tableau IO"
6464

6565
# Alert
66-
alert = true
67-
alertDismissable = true
68-
alertText = "🆕📢 YAML is supported now, <a class='alert-link stretched-link' href='https://tableauio.github.io/docs/yaml/scalar/'>Learn More</a>!"
66+
# alert = true
67+
# alertDismissable = true
68+
# alertText = "🆕📢 YAML is supported now, <a class='alert-link stretched-link' href='https://tableauio.github.io/docs/yaml/scalar/'>Learn More</a>!"
6969

7070
# Edit Page
7171
# repoHost [Github | Gitea | GitLab] is used for building the edit link based on git hoster

content/en/_index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title : "Tableau"
33
description: "Modern Configuration Converter"
4-
lead: "A modern configuration converter for converting <b>Excel/CSV/XML/YAML</b> to multiple formats: <a href='https://developers.google.com/protocol-buffers/docs/proto3#json'><b>JSON</b></a>, <a href='https://developers.google.com/protocol-buffers/docs/text-format-spec'><b>Text</b></a>, and <a href='https://developers.google.com/protocol-buffers/docs/encoding'><b>Bin</b></a>. Powered by <a href='https://developers.google.com/protocol-buffers/docs/proto3'>Protobuf (proto3).</a>"
4+
lead: "A modern configuration converter for converting <b>Excel/CSV/XML/YAML</b> to multiple formats: <a href='https://developers.google.com/protocol-buffers/docs/proto3#json'><b>JSON</b></a>, <a href='https://developers.google.com/protocol-buffers/docs/text-format-spec'><b>Text</b></a>, and <a href='https://developers.google.com/protocol-buffers/docs/encoding'><b>Bin</b></a>."
55
date: 2022-01-09T23:38:36+08:00
66
lastmod: 2022-01-09T23:38:36+08:00
77
draft: false

content/zh/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title : "Tableau"
3-
description: "Tableau is a powerful Excel -> Protobuf conversion tool."
4-
lead: "Tableau是一款功能强大的现代化配置转换器。基于<a href='https://developers.google.com/protocol-buffers/docs/proto3'>Protobuf (proto3)</a>,能够将 <b>Excel/CSV/XML/YAML</b> 转换成多种格式:<a href='https://developers.google.com/protocol-buffers/docs/proto3#json'><b>JSON</b></a>,<a href='https://developers.google.com/protocol-buffers/docs/text-format-spec'><b>Text</b></a> 和 <a href='https://developers.google.com/protocol-buffers/docs/encoding'><b>Bin</b></a>。"
3+
description: "Modern Configuration Converter"
4+
lead: "一款现代化配置转换器,能够将 <b>Excel/CSV/XML/YAML</b> 转换成多种格式:<a href='https://developers.google.com/protocol-buffers/docs/proto3#json'><b>JSON</b></a>,<a href='https://developers.google.com/protocol-buffers/docs/text-format-spec'><b>Text</b></a> 和 <a href='https://developers.google.com/protocol-buffers/docs/encoding'><b>Bin</b></a>。"
55
date: 2022-09-09T08:47:36+00:00
66
lastmod: 2022-09-09T08:47:36+00:00
77
draft: false

layouts/index.html

Lines changed: 179 additions & 119 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,123 @@
11
{{ define "main" }}
22
<section class="section container-fluid mt-n3 pb-3">
3-
<div class="row justify-content-center">
4-
<div class="col-lg-9 col-xl-7 text-center">
5-
<h1 class="mt-0">
6-
<image src='./tableau-logo.svg' width='80px' />{{ .Title }}
7-
</h1>
8-
<p class="lead">{{ .Params.lead | safeHTML }}</p>
9-
<a class="btn btn-primary btn-lg px-4 mb-2"
10-
href="{{ .Site.LanguagePrefix }}/docs/{{ if .Site.Params.options.docsVersioning }}{{ .Site.Params.docsVersion }}/{{ end }}prologue/quick-start/"
11-
role="button">{{ T "get-started" }}
12-
</a>
13-
<p>
14-
<a href="https://github.com/tableauio/tableau/releases">
15-
<img src="https://img.shields.io/github/v/release/tableauio/tableau?label=release&display_name=release"
16-
alt="GitHub release (latest SemVer)"></a>
17-
<a href="https://github.com/tableauio/tableau/actions/workflows/testing.yml"><img src="https://github.com/tableauio/tableau/actions/workflows/testing.yml/badge.svg" alt="Testing Status"></a>
18-
<a href="https://codecov.io/gh/tableauio/tableau"><img src="https://codecov.io/gh/tableauio/tableau/branch/master/graph/badge.svg" alt="Code Coverage"></a>
19-
<a href="https://pkg.go.dev/github.com/tableauio/tableau">
20-
<img src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white" alt="go.dev"></a>
21-
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/github/license/tableauio/tableau" alt="GitHub"></a>
22-
</p>
3+
<div class="row justify-content-center">
4+
<div class="col-lg-9 col-xl-7 text-center">
5+
<h1 class="mt-0">
6+
<image src="/tableau-logo.svg" width="80px" />{{ .Title }}
7+
</h1>
8+
<p class="lead">{{ .Params.lead | safeHTML }}</p>
9+
<a
10+
class="btn btn-primary btn-lg px-4 mb-2"
11+
href="{{ .Site.LanguagePrefix }}/docs/{{ if .Site.Params.options.docsVersioning }}{{ .Site.Params.docsVersion }}/{{ end }}prologue/quick-start/"
12+
role="button"
13+
>{{ T "get-started" }}
14+
</a>
15+
<p>
16+
<a href="https://github.com/tableauio/tableau/releases">
17+
<img
18+
src="https://img.shields.io/github/v/release/tableauio/tableau?label=release&display_name=release"
19+
alt="GitHub release (latest SemVer)"
20+
/></a>
21+
<a
22+
href="https://github.com/tableauio/tableau/actions/workflows/testing.yml"
23+
><img
24+
src="https://github.com/tableauio/tableau/actions/workflows/testing.yml/badge.svg"
25+
alt="Testing Status"
26+
/></a>
27+
<a href="https://codecov.io/gh/tableauio/tableau"
28+
><img
29+
src="https://codecov.io/gh/tableauio/tableau/branch/master/graph/badge.svg"
30+
alt="Code Coverage"
31+
/></a>
32+
<a href="https://pkg.go.dev/github.com/tableauio/tableau">
33+
<img
34+
src="https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white"
35+
alt="go.dev"
36+
/></a>
37+
<a href="https://opensource.org/licenses/MIT"
38+
><img
39+
src="https://img.shields.io/github/license/tableauio/tableau"
40+
alt="GitHub"
41+
/></a>
42+
</p>
43+
</div>
44+
<div class="col-lg-12 col-xl-8 text-center">
45+
<div
46+
id="carouselExampleCaptions"
47+
class="shadow-lg carousel carousel-dark slide carousel-fade"
48+
data-bs-ride="carousel"
49+
style="border-radius: 0.6rem !important"
50+
>
51+
<div class="carousel-indicators">
52+
<button
53+
type="button"
54+
data-bs-target="#carouselExampleCaptions"
55+
data-bs-slide-to="0"
56+
class="active"
57+
aria-current="true"
58+
aria-label="Slide 1"
59+
></button>
60+
<button
61+
type="button"
62+
data-bs-target="#carouselExampleCaptions"
63+
data-bs-slide-to="1"
64+
aria-label="Slide 2"
65+
></button>
66+
<button
67+
type="button"
68+
data-bs-target="#carouselExampleCaptions"
69+
data-bs-slide-to="2"
70+
aria-label="Slide 3"
71+
></button>
72+
</div>
73+
<div class="carousel-inner">
74+
<div class="carousel-item active">
75+
<img
76+
src="{{ .Site.BaseURL }}/images/carousel/excel.png"
77+
class="d-block w-100"
78+
alt="Slide 1"
79+
style="border-radius: 0.6rem !important"
80+
/>
81+
<div class="carousel-caption d-none d-md-block">
82+
<h5>
83+
<span class="shadow-lg bg-opacity-25 px-2 rounded"
84+
>Add Excel</span
85+
>
86+
</h5>
87+
</div>
88+
</div>
89+
<div class="carousel-item">
90+
<img
91+
src="{{ .Site.BaseURL }}/images/carousel/proto.png"
92+
class="d-block w-100"
93+
alt="Slide 2"
94+
style="border-radius: 0.6rem !important"
95+
/>
96+
<div class="carousel-caption d-none d-md-block">
97+
<h5>
98+
<span class="shadow-lg bg-opacity-25 px-2 rounded"
99+
>Generate Protobuf</span
100+
>
101+
</h5>
102+
</div>
103+
</div>
104+
<div class="carousel-item">
105+
<img
106+
src="{{ .Site.BaseURL }}/images/carousel/json.png"
107+
class="d-block w-100"
108+
alt="Slide 3"
109+
style="border-radius: 0.6rem !important"
110+
/>
111+
<div class="carousel-caption d-none d-md-block">
112+
<h5>
113+
<span class="shadow-lg bg-opacity-25 px-2 rounded"
114+
>Generate JSON</span
115+
>
116+
</h5>
117+
</div>
118+
</div>
23119
</div>
24-
<div class="col-lg-12 col-xl-8 text-center">
25-
<div id="carouselExampleCaptions" class="shadow-lg carousel carousel-dark slide carousel-fade" data-bs-ride="carousel"
26-
style="border-radius: 0.6rem !important">
27-
<div class="carousel-indicators">
28-
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active"
29-
aria-current="true" aria-label="Slide 1"></button>
30-
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1"
31-
aria-label="Slide 2"></button>
32-
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2"
33-
aria-label="Slide 3"></button>
34-
</div>
35-
<div class="carousel-inner">
36-
<div class="carousel-item active">
37-
<img src="{{ .Site.BaseURL }}/images/carousel/excel.png" class="d-block w-100" alt="Slide 1"
38-
style="border-radius: 0.6rem !important" />
39-
<div class="carousel-caption d-none d-md-block">
40-
<h5><span class="shadow-lg bg-opacity-25 px-2 rounded">Add Excel</span></h5>
41-
</div>
42-
</div>
43-
<div class="carousel-item">
44-
<img src="{{ .Site.BaseURL }}/images/carousel/proto.png" class="d-block w-100" alt="Slide 2"
45-
style="border-radius: 0.6rem !important">
46-
<div class="carousel-caption d-none d-md-block">
47-
<h5><span class="shadow-lg bg-opacity-25 px-2 rounded">Generate Protobuf</span></h5>
48-
</div>
49-
</div>
50-
<div class="carousel-item">
51-
<img src="{{ .Site.BaseURL }}/images/carousel/json.png" class="d-block w-100" alt="Slide 3"
52-
style="border-radius: 0.6rem !important">
53-
<div class="carousel-caption d-none d-md-block">
54-
<h5><span class="shadow-lg bg-opacity-25 px-2 rounded">Generate JSON</span></h5>
55-
</div>
56-
</div>
57-
</div>
58-
<!-- <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleCaptions"
120+
<!-- <button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleCaptions"
59121
data-bs-slide="prev">
60122
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
61123
<span class="visually-hidden">Previous</span>
@@ -65,81 +127,79 @@ <h5><span class="shadow-lg bg-opacity-25 px-2 rounded">Generate JSON</span></h5>
65127
<span class="carousel-control-next-icon" aria-hidden="true"></span>
66128
<span class="visually-hidden">Next</span>
67129
</button> -->
68-
</div>
69-
</div>
130+
</div>
70131
</div>
132+
</div>
71133
</section>
72134
<hr />
73-
{{ end }}
74-
75-
{{ define "sidebar-prefooter" }}
135+
{{ end }} {{ define "sidebar-prefooter" }}
76136
<section class="section section-sm">
77-
<div class="container">
78-
<div class="row justify-content-center text-center">
79-
<div class="col-lg-12">
80-
<h2 class="h2">Features</h2>
81-
</div>
82-
</div>
83-
<div class="row justify-content-center text-center">
84-
<div class="col-lg-5">
85-
<h2 class="h4">{{ T "features.fast.title" }}</h2>
86-
<p>{{ T "features.fast.content" }}</p>
87-
</div>
88-
<div class="col-lg-5">
89-
<h2 class="h4">{{ T "features.scaffolding.title" }}</h2>
90-
<p>{{ T "features.scaffolding.content" }}</p>
91-
</div>
92-
<div class="col-lg-5">
93-
<h2 class="h4">{{ T "features.platform.title" }}</h2>
94-
<p>{{ T "features.platform.content" }}</p>
95-
</div>
96-
</div>
97-
<div class="row justify-content-center text-center">
98-
<div class="col-lg-5">
99-
<h2 class="h4">{{ T "features.schema.title" }}</h2>
100-
<p>{{ T "features.schema.content" }}</p>
101-
</div>
102-
<div class="col-lg-5">
103-
<h2 class="h4">{{ T "features.format.title" }}</h2>
104-
<p>{{ T "features.format.content" }}</p>
105-
</div>
106-
<div class="col-lg-5">
107-
<h2 class="h4">{{ T "features.language.title" }}</h2>
108-
<p>{{ T "features.language.content" }}</p>
109-
</div>
110-
</div>
137+
<div class="container">
138+
<div class="row justify-content-center text-center">
139+
<div class="col-lg-12">
140+
<h2 class="h2">Features</h2>
141+
</div>
142+
</div>
143+
<div class="row justify-content-center text-center">
144+
<div class="col-lg-5">
145+
<h2 class="h4">{{ T "features.fast.title" }}</h2>
146+
<p>{{ T "features.fast.content" }}</p>
147+
</div>
148+
<div class="col-lg-5">
149+
<h2 class="h4">{{ T "features.scaffolding.title" }}</h2>
150+
<p>{{ T "features.scaffolding.content" }}</p>
151+
</div>
152+
<div class="col-lg-5">
153+
<h2 class="h4">{{ T "features.platform.title" }}</h2>
154+
<p>{{ T "features.platform.content" }}</p>
155+
</div>
156+
</div>
157+
<div class="row justify-content-center text-center">
158+
<div class="col-lg-5">
159+
<h2 class="h4">{{ T "features.schema.title" }}</h2>
160+
<p>{{ T "features.schema.content" }}</p>
161+
</div>
162+
<div class="col-lg-5">
163+
<h2 class="h4">{{ T "features.format.title" }}</h2>
164+
<p>{{ T "features.format.content" }}</p>
165+
</div>
166+
<div class="col-lg-5">
167+
<h2 class="h4">{{ T "features.language.title" }}</h2>
168+
<p>{{ T "features.language.content" }}</p>
169+
</div>
111170
</div>
171+
</div>
112172
</section>
113173

114174
<section class="section section-sm mt-3 pt-3">
115-
<div class="container">
116-
<div class="row justify-content-center">
117-
<div class="col-md-12 col-lg-10 col-xl-8">
118-
<h2 class="h3 mt-3 text-center">Latest blog</h2>
119-
<div class="card-list">
120-
{{ range first 3 (where .Site.RegularPages.ByDate.Reverse "Section" "blog") -}}
121-
<div class="card">
122-
<div class="card-body">
123-
<h3><a class="stretched-link text-body" href="{{ .RelPermalink }}">{{ .Params.title }}</a>
124-
</h3>
125-
<p>{{ .Params.lead | safeHTML }}</p>
126-
{{ partial "main/blog-meta.html" . -}}
127-
</div>
128-
</div>
129-
{{ end -}}
130-
</div>
175+
<div class="container">
176+
<div class="row justify-content-center">
177+
<div class="col-md-12 col-lg-10 col-xl-8">
178+
<h2 class="h3 mt-3 text-center">Latest blog</h2>
179+
<div class="card-list">
180+
{{ range first 3 (where .Site.RegularPages.ByDate.Reverse "Section"
181+
"blog") -}}
182+
<div class="card">
183+
<div class="card-body">
184+
<h3>
185+
<a class="stretched-link text-body" href="{{ .RelPermalink }}"
186+
>{{ .Params.title }}</a
187+
>
188+
</h3>
189+
<p>{{ .Params.lead | safeHTML }}</p>
190+
{{ partial "main/blog-meta.html" . -}}
131191
</div>
192+
</div>
193+
{{ end -}}
132194
</div>
195+
</div>
133196
</div>
197+
</div>
134198
</section>
135-
{{ end }}
136-
137-
{{ define "sidebar-footer" }}
199+
{{ end }} {{ define "sidebar-footer" }}
138200
<section class="section section-sm container-fluid">
139-
<div class="row justify-content-center text-center">
140-
<div class="col-lg-9">
141-
{{- .Content -}}
142-
</div>
143-
</div>
201+
<div class="row justify-content-center text-center">
202+
<div class="col-lg-9">{{- .Content -}}</div>
203+
</div>
144204
</section>
145-
{{ end }}
205+
{{ end }}

0 commit comments

Comments
 (0)