Skip to content

Commit

Permalink
Update the sponsor list (#437)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Mar 28, 2021
1 parent 20cb992 commit 284e5f2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
2 changes: 2 additions & 0 deletions content/sponsor/hogwarts.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,6 @@ displayName: 霍格沃兹测试学院
logo: hogwarts.png
period:
- 2019
- 2020
- 2021
---
2 changes: 1 addition & 1 deletion content/sponsor/juzi.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ displayName: 句子科技
github: juzi
homepage: https://wechat.botorange.com/
logo: juzi.png
years:
period:
- 2020
---
2 changes: 1 addition & 1 deletion content/sponsor/ucloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ displayName: UCloud
github: ucloud
homepage: https://www.ucloud.cn/site/global.html?ytag=Jenkinshw
logo: ucloud.png
years:
period:
- 2020
---
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
{{$classes_box := "ba b--light-gray bg-light-gray br3 flex flex-column flex-wrap items-center justify-center ph3 pv4 mb4 w-100 w-30-l "}}
{{ $sponsors := where .Site.Pages "Params.type" "sponsor" }}
<section class="bg-primary-color-dark b--dark-gray bb bt ph5 pv4 w-100">
<div class="center mw9"> 
<div class="center mw9">
<f3 class="b f3 light-gray">赞助商</f3>
<div class="flex-ns flex-wrap center justify-between pt3">
{{ range $sponsors }}
{{if in .Params.period (string now.Year) }}
{{ $banner := . }}
{{if .Params.logo }}
<div class="{{$classes_box}} o-100">
Expand All @@ -21,8 +22,9 @@
<div class="{{$classes_box}} o-10">
<p class="b black tc">赞助商</p>
</div>
{{end}}
{{end}}
{{end}}<!--logo check end-->
{{end}}<!--years check end-->
{{end}}<!--range end-->
</div>
</div>
</section>

0 comments on commit 284e5f2

Please sign in to comment.