-
Notifications
You must be signed in to change notification settings - Fork 877
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix community section colors (#1437)
- Loading branch information
Showing
4 changed files
with
36 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,33 @@ | ||
{{ $links := .Site.Params.links }} | ||
{{ $links := .Site.Params.links -}} | ||
|
||
<section class="row td-box td-box--4 td-box--gradient td-box--height-auto linkbox"> | ||
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> | ||
<h2>{{ T "community_learn" }}</h2> | ||
<p>{{ T "community_using" . }}</p> | ||
{{ with index $links "user"}} | ||
{{ template "community-links-list" . }} | ||
{{ end }} | ||
</div> | ||
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> | ||
<h2>{{ T "community_develop" }}</h2> | ||
<p>{{ T "community_contribute" . }}</p> | ||
{{ with index $links "developer"}} | ||
{{ template "community-links-list" . }} | ||
{{ end }} | ||
<p>{{ T "community_how_to" . }} <a href="/docs/contribution-guidelines/">{{ T "community_guideline" }}</a> | ||
</div> | ||
<section class="row td-box td-box--white td-box--gradient td-box--height-auto linkbox"> | ||
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> | ||
<h2>{{ T "community_learn" }}</h2> | ||
<p>{{ T "community_using" . }}</p> | ||
{{ with index $links "user" -}} | ||
{{ template "community-links-list" . -}} | ||
{{ end }} | ||
</div> | ||
<div class="col-xs-12 col-sm-6 col-md-6 col-lg-6"> | ||
<h2>{{ T "community_develop" }}</h2> | ||
<p>{{ T "community_contribute" . }}</p> | ||
{{ with index $links "developer" -}} | ||
{{ template "community-links-list" . -}} | ||
{{ end }} | ||
<p> | ||
{{ T "community_how_to" . }} | ||
<a href="/docs/contribution-guidelines/">{{ T "community_guideline" }}</a> | ||
</p> | ||
</div> | ||
</section> | ||
|
||
{{ define "community-links-list" }} | ||
{{ define "community-links-list" -}} | ||
<ul> | ||
{{ range . }} | ||
<li title="{{ .name }}"> | ||
<a target="_blank" rel="noopener" href="{{ .url }}"><i class="{{ .icon }}"></i> {{ .name }}:</a> | ||
{{ .desc }} | ||
</li> | ||
{{ end }} | ||
</ul> | ||
{{ range . -}} | ||
<li title="{{ .name }}"> | ||
<a target="_blank" rel="noopener" href="{{ .url }}"><i class="{{ .icon }}"></i> {{ .name }}</a>: | ||
{{ .desc }} | ||
</li> | ||
{{ end }} | ||
</ul> | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
--- | ||
title: Community | ||
menu: {main: {weight: 40}} | ||
# Content below, if any, will be added to the community page. | ||
--- | ||
|
||
<!--add blocks of content here to add more sections to the community page --> |