Skip to content

Commit

Permalink
i18n title field
Browse files Browse the repository at this point in the history
  • Loading branch information
shrekshao committed May 26, 2023
1 parent 9ad7066 commit d3191b4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
8 changes: 6 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,14 @@
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
title: GSF足球俱乐部
title: GSF Football Club
title_zh: GSF足球俱乐部
author: By 狄学长
# email: [email protected]
description: >- # this means to ignore newlines until "baseurl:"
description: >-
GSF Football Club is based at San Francisco Bay area. We want to build our own football community
and culture using our website.
description_zh: >-
GSF足球俱乐部,活跃于加州旧金山湾区,用自己的网站记录和培养属于我们自己的足球文化
baseurl: "" # the subpath of your site
url: "" # the base hostname & protocol for your site, e.g. http://example.com
Expand Down
5 changes: 1 addition & 4 deletions _includes/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
<div class="footer-col-wrapper">
<div class="footer-col footer-col-1">
<ul class="contact-list">
<li class="p-name">
<a href="https://www.youtube.com/channel/UCzBpxFbbCs1QKGg8VYyg-tw/videos">GSF Youtube Channel</a>
</li>
<li><a href="/about">我想加入GSF!</a></li>
</ul>
</div>
Expand All @@ -29,7 +26,7 @@
</div>

<div class="footer-col footer-col-3">
<p>{{- site.description | escape -}}</p>
<p>{% include i18n_field.html entity=site field="description" %}</p>
<p>powered by<br/> <a href="https://github.com/super-unprofessional-league/soccer-website-generator">Super Unprofessional League Website Generator</a></p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<div class="wrapper">
<a class="site-title" rel="author" href="{{ "/" | relative_url }}">
<img style="height: 1.5em; width: auto" src={{ "favicon.png" | absolute_url }} />
{{ site.title | escape }}
{% include i18n_field.html entity=site field="title" %}
</a>

<div class="dropdown">
Expand Down
7 changes: 7 additions & 0 deletions _includes/i18n_field.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% assign entry = include.field | append: "_" | append: site.lang %}
{% assign text = include.entity[{{entry}}] %}
{% if text != nil %}
{{ text }}
{% else %}
{{ include.entity[include.field] }}
{% endif %}
5 changes: 3 additions & 2 deletions about.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ title: "我想加入GSF!"

GSF足球俱乐部 (Google Soccer Field, 简称“GSF”, 昵称“高帅富”),最初由FAANG (Facebook, Apple, Amazon, Netflix, Google) 等硅谷高科技公司的工程狮、程序猿组成,发起于2012年盛夏,活跃在Google Athletic Recreational Field Park,每个周末固定在GSF娱乐野球,故此得名。

球队积极参与加州旧金山湾区(San Francisco Bay Area)的各个足球联赛。球队目前(2023年1月)
* 每周五8:00-9:30pm在 **[Reed & Grant Sports Park, Field #3 (762 Reed St, Santa Clara, CA 95050)](https://goo.gl/maps/yu1n2WYLss19ivhu5)** 组织娱乐向每周杯Pickup。
球队积极参与加州旧金山湾区(San Francisco Bay Area)的各足球赛事。球队目前(2023年5月)
* 每周二8:00-10:00pm在 **[Shorty Garcia Park (33940 7th St, Union City, CA 94587)](https://goo.gl/maps/12xqUwEXCfst29ydA)** 由Kento教练带领组织训练。
* 每周五8:00-9:30pm在 **[Reed & Grant Sports Park, Field #3 (762 Reed St, Santa Clara, CA 95050)](https://goo.gl/maps/yu1n2WYLss19ivhu5)** 组织娱乐向每周杯。

欢迎想要加入的球友提供联系方式,教练组将视情况安排试训。

Expand Down

0 comments on commit d3191b4

Please sign in to comment.