Skip to content

Commit

Permalink
Merge pull request #275 from seasalt-ai/fix-card-link-color
Browse files Browse the repository at this point in the history
Fix card link color
  • Loading branch information
amy17519 authored Aug 14, 2024
2 parents 34dff17 + 924097d commit a8f93f6
Show file tree
Hide file tree
Showing 20 changed files with 227 additions and 54 deletions.
1 change: 1 addition & 0 deletions assets/scss/common/_dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ $navbar-dark-active-color: $link-color-dark;
[data-dark-mode] body .card {
background: $body-bg-dark;
border: 1px solid $border-dark;
color: $link-color-dark;
}

[data-dark-mode] body .card.bg-light {
Expand Down
1 change: 1 addition & 0 deletions content/en/seachat/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ date: 2020-10-06T08:48:23+00:00
lastmod: 2020-10-06T08:48:23+00:00
draft: false
images: []
url: "/seachat/index"
---
1 change: 1 addition & 0 deletions content/en/seachat/getting-started/01-seachat-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ images: []
aliases:
- /en/seachat/seachat-intro/01-introduction/
- /seachat/seachat-intro/01-seachat-intro/
- /seachat/
toc: true
---

Expand Down
1 change: 1 addition & 0 deletions content/en/seameet/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ date: 2020-10-06T08:48:45+00:00
lastmod: 2020-10-06T08:48:45+00:00
draft: false
images: []
url: "/seameet/index"
---
1 change: 1 addition & 0 deletions content/en/seameet/seameet-manual/01-seameet-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ menu:
parent: "seameet-manual"
aliases:
- /en/seameet/01-seameet-intro/
- /seameet/
weight: 5
toc: true
---
Expand Down
1 change: 1 addition & 0 deletions content/en/seavoice/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ date: 2024-02-12T08:48:57+00:00
lastmod: 2024-02-12T08:48:57+00:00
draft: false
images: []
url: "/seavoice/index"
---
2 changes: 2 additions & 0 deletions content/en/seavoice/stt/panel_tutorial_en.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ menu:
parent: "stt"
weight: 102
toc: true
aliases:
- /seavoice/
---

## Customization Panel
Expand Down
1 change: 1 addition & 0 deletions content/en/seax/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ date: 2020-10-06T08:48:23+00:00
lastmod: 2020-10-06T08:48:23+00:00
draft: false
images: []
url: "/seax/index"
---
1 change: 1 addition & 0 deletions content/en/seax/seax_enterprise/seax-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ menu:
aliases:
- /seax/seax_intro/01-introduction/
- /seax/demo_videos/videos/
- /seax/
weight: 102
toc: true
---
Expand Down
1 change: 1 addition & 0 deletions content/zh/seachat/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ lastmod: 2024-02-12T08:48:57+00:00
draft: false
images: []
toc: true
url: "/zh/seachat/index"
---
1 change: 1 addition & 0 deletions content/zh/seachat/getting-started/01-seachat-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ menu:
aliases:
- /zh/seachat/01-seachat-intro/
- /zh/seachat/seachat-intro/01-seachat-intro/
- /zh/seachat/
weight: 10
toc: true
---
Expand Down
1 change: 1 addition & 0 deletions content/zh/seameet/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ date: 2020-10-06T08:48:23+00:00
lastmod: 2020-10-06T08:48:23+00:00
draft: false
images: []
url: "/zh/seameet/index"
---
1 change: 1 addition & 0 deletions content/zh/seameet/seameet-manual/01-seameet-intro.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ menu:
aliases:
- /zh/seameet/01-seameet-intro/
- /zh/seameet/seameet-intro/01-seameet-intro/
- /zh/seameet/
weight: 5
toc: true
---
Expand Down
1 change: 1 addition & 0 deletions content/zh/seavoice/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ date: 2024-02-12T08:48:57+00:00
lastmod: 2024-02-12T08:48:57+00:00
draft: false
images: []
url: "/zh/seavoice/index"
---
2 changes: 2 additions & 0 deletions content/zh/seavoice/tts/panel_tutorial_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ images: []
menu:
seax:
parent: "tts"
aliases:
- /zh/seavoice/
weight: 102
toc: true
---
Expand Down
1 change: 1 addition & 0 deletions content/zh/seax/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@ date: 2020-10-06T08:48:23+00:00
lastmod: 2020-10-06T08:48:23+00:00
draft: false
images: []
url: "/zh/seax/index"
---
2 changes: 2 additions & 0 deletions content/zh/seax/demo_videos_zh/videos.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ images: []
menu:
demo_videos:
parent: "demo_videos_zh"
aliases:
- /zh/seax/
weight: 120
toc: true
---
Expand Down
87 changes: 69 additions & 18 deletions layouts/seachat/list.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,73 @@
{{ define "main" }}
<div class="row justify-content-center">
<div class="col-md-12 col-lg-10 col-xl-8">
<article>
<h1 class="text-center">{{ if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}</h1>
<div class="text-center">{{ .Content }}</div>
<div class="card-list">
{{ $currentSection := .CurrentSection }}
{{ range where .Site.RegularPages.ByTitle "Section" .Section }}
{{ if in (.RelPermalink | string) $currentSection.RelPermalink }}
<div class="card my-3">
<div class="card-body">
<a class="stretched-link" href="{{ .RelPermalink }}">{{ .Params.title | title }} &rarr;</a>
</div>
</div>
{{ end }}
{{ end }}
<!--<div class="row justify-content-center">-->
<!-- <div class="col-md-12 col-lg-10 col-xl-8">-->
<!-- <article>-->
<!-- <h1 class="text-center">{{ if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}</h1>-->
<!-- <div class="text-center">{{ .Content }}</div>-->
<!-- <div class="card-list">-->
<!-- {{ $currentSection := .CurrentSection }}-->
<!-- {{ range where .Site.RegularPages.ByTitle "Section" .Section }}-->
<!-- {{ if in (.RelPermalink | string) $currentSection.RelPermalink }}-->
<!-- <div class="card my-3">-->
<!-- <div class="card-body">-->
<!-- <a class="stretched-link" href="{{ .RelPermalink }}">{{ .Params.title | title }} &rarr;</a>-->
<!-- </div>-->
<!-- </div>-->
<!-- {{ end }}-->
<!-- {{ end }}-->
<!-- </div>-->
<!-- </article>-->
<!-- </div>-->
<!--</div>-->
<div class="row flex-xl-nowrap">
<div class="col-lg-5 col-xl-4 docs-sidebar d-none d-lg-block">
<nav {{ if eq .Site.Params.menu.section.collapsibleSidebar false }}id="sidebar-default" {{ end }}class="docs-links" aria-label="Main navigation">
{{ partial "sidebar/docs-menu.html" . }}
</nav>
</div>
{{ if ne .Params.toc false -}}
<nav class="docs-toc d-none d-xl-block col-xl-3" aria-label="Secondary navigation">
{{ partial "sidebar/docs-toc.html" . }}
</nav>
{{ end -}}
{{ if .Params.toc -}}
<main class="docs-content col-lg-11 col-xl{{ if eq .Site.Params.options.fullWidth false }}-9{{ end }}">
{{ else -}}
<main class="docs-content col-lg-11 col-xl-9 mx-xl-auto">
{{ end -}}
{{ if .Site.Params.options.breadCrumb -}}
<!-- https://discourse.gohugo.io/t/breadcrumb-navigation-for-highly-nested-content/27359/6 -->
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
{{ partial "main/breadcrumb" . -}}
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li>
</ol>
</nav>
{{ end }}
<h1>{{ .Title }}</h1>
<p class="lead">{{ .Params.lead | safeHTML }}</p>
{{ if ne .Params.toc false -}}
<nav class="d-xl-none" aria-label="Quaternary navigation">
{{ partial "sidebar/docs-toc.html" . }}
</nav>
{{ end -}}
{{ .Content }}
<div class="page-footer-meta d-flex flex-column flex-md-row justify-content-between">
{{ if .Site.Params.lastMod -}}
{{ partial "main/last-modified.html" . }}
{{ end -}}
{{ if .Site.Params.editPage -}}
{{ partial "main/edit-page.html" . }}
{{ end -}}
</div>
</article>
</div>
{{ partial "main/docs-navigation.html" . }}
<!--
{{ if not .Site.Params.options.collapsibleSidebar -}}
{{ partial "main/docs-navigation.html" . }}
{{ else -}}
<div class="my-n3"></div>
{{ end -}}
-->
</main>
</div>
{{ end }}
87 changes: 69 additions & 18 deletions layouts/seameet/list.html
Original file line number Diff line number Diff line change
@@ -1,22 +1,73 @@
{{ define "main" }}
<div class="row justify-content-center">
<div class="col-md-12 col-lg-10 col-xl-8">
<article>
<h1 class="text-center">{{ if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}</h1>
<div class="text-center">{{ .Content }}</div>
<div class="card-list">
{{ $currentSection := .CurrentSection }}
{{ range where .Site.RegularPages.ByTitle "Section" .Section }}
{{ if in (.RelPermalink | string) $currentSection.RelPermalink }}
<div class="card my-3">
<div class="card-body">
<a class="stretched-link" href="{{ .RelPermalink }}">{{ .Params.title | title }} &rarr;</a>
</div>
</div>
{{ end }}
{{ end }}
<!--<div class="row justify-content-center">-->
<!-- <div class="col-md-12 col-lg-10 col-xl-8">-->
<!-- <article>-->
<!-- <h1 class="text-center">{{ if eq .CurrentSection .FirstSection }}{{ .Section | humanize }}{{ else }}{{ .Title }}{{ end }}</h1>-->
<!-- <div class="text-center">{{ .Content }}</div>-->
<!-- <div class="card-list">-->
<!-- {{ $currentSection := .CurrentSection }}-->
<!-- {{ range where .Site.RegularPages.ByTitle "Section" .Section }}-->
<!-- {{ if in (.RelPermalink | string) $currentSection.RelPermalink }}-->
<!-- <div class="card my-3">-->
<!-- <div class="card-body">-->
<!-- <a class="stretched-link" href="{{ .RelPermalink }}">{{ .Params.title | title }} &rarr;</a>-->
<!-- </div>-->
<!-- </div>-->
<!-- {{ end }}-->
<!-- {{ end }}-->
<!-- </div>-->
<!-- </article>-->
<!-- </div>-->
<!--</div>-->
<div class="row flex-xl-nowrap">
<div class="col-lg-5 col-xl-4 docs-sidebar d-none d-lg-block">
<nav {{ if eq .Site.Params.menu.section.collapsibleSidebar false }}id="sidebar-default" {{ end }}class="docs-links" aria-label="Main navigation">
{{ partial "sidebar/docs-menu.html" . }}
</nav>
</div>
{{ if ne .Params.toc false -}}
<nav class="docs-toc d-none d-xl-block col-xl-3" aria-label="Secondary navigation">
{{ partial "sidebar/docs-toc.html" . }}
</nav>
{{ end -}}
{{ if .Params.toc -}}
<main class="docs-content col-lg-11 col-xl{{ if eq .Site.Params.options.fullWidth false }}-9{{ end }}">
{{ else -}}
<main class="docs-content col-lg-11 col-xl-9 mx-xl-auto">
{{ end -}}
{{ if .Site.Params.options.breadCrumb -}}
<!-- https://discourse.gohugo.io/t/breadcrumb-navigation-for-highly-nested-content/27359/6 -->
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
{{ partial "main/breadcrumb" . -}}
<li class="breadcrumb-item active" aria-current="page">{{ .Title }}</li>
</ol>
</nav>
{{ end }}
<h1>{{ .Title }}</h1>
<p class="lead">{{ .Params.lead | safeHTML }}</p>
{{ if ne .Params.toc false -}}
<nav class="d-xl-none" aria-label="Quaternary navigation">
{{ partial "sidebar/docs-toc.html" . }}
</nav>
{{ end -}}
{{ .Content }}
<div class="page-footer-meta d-flex flex-column flex-md-row justify-content-between">
{{ if .Site.Params.lastMod -}}
{{ partial "main/last-modified.html" . }}
{{ end -}}
{{ if .Site.Params.editPage -}}
{{ partial "main/edit-page.html" . }}
{{ end -}}
</div>
</article>
</div>
{{ partial "main/docs-navigation.html" . }}
<!--
{{ if not .Site.Params.options.collapsibleSidebar -}}
{{ partial "main/docs-navigation.html" . }}
{{ else -}}
<div class="my-n3"></div>
{{ end -}}
-->
</main>
</div>
{{ end }}
Loading

0 comments on commit a8f93f6

Please sign in to comment.