Skip to content

Commit 7ccb73b

Browse files
committed
add sponsor
1 parent 5b1e67a commit 7ccb73b

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

_config.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ authors:
2424
2525
- name: Akihiro Kurotani
2626
27+
sponsor:
28+
name: My Redmine
29+
url: "https://www.redminecloud.net/"
30+
logo: "/images/myredmine-logo-hz.png"
2731
description: >- # this means to ignore newlines until "baseurl:"
2832
「5 分鐘快速上手 Redmine」系列文章,旨在用簡單易懂的方式介紹開放原始碼的議題管理系統 Redmine。
2933
每篇文章的長度大約只需 5 分鐘閱讀時間,讓您輕鬆掌握 Redmine 的基礎與實用功能。

_includes/footer.html

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,25 @@
3333
</p>
3434
</div>
3535
{% endif %}
36+
37+
{% if site.sponsor %}
38+
<div class="sponsor-info">
39+
{% if site.sponsor.logo %}
40+
<p>
41+
Sponsored by
42+
<a href="{{ site.sponsor.url }}">
43+
<img src="{{ site.sponsor.logo }}" alt="{{ site.sponsor.name }} logo" />
44+
</a>
45+
</p>
46+
{% else %}
47+
<p>
48+
Sponsored by <a href="{{ site.sponsor.url }}">{{ site.sponsor.name }}</a>
49+
</p>
50+
{% endif %}
3651
</div>
52+
{% endif %}
3753

54+
</div>
3855
</div>
3956

4057
</footer>

images/myredmine-logo-hz.png

12.4 KB
Loading

0 commit comments

Comments
 (0)