Skip to content

Commit

Permalink
add example
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Feb 13, 2024
1 parent 871e03d commit 64828b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/_layouts/website/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,14 @@
{% if page.sponsors | length %}
<ul class="page-sponsors-list">
{% for sponsor in page.sponsors %}
<li><a href="{{sponsor.url}}" title="{{sponsor.name}}"><img src="{{sponsor.logo}}" alt="" width="64" height="64"></a></li>
<li><a href="{{sponsor.url}}" title="{{sponsor.name}}" target="_blank" rel="noopener"><img src="{{sponsor.logo}}" alt="" width="64" height="64"></a></li>
{% endfor %}
</ul>
<div class="page-sponsors-footer">
<p>このページは<a href="https://opencollective.com/jsprimer">ページスポンサー</a>の方々にサポートされています</p>
<p>このページは<a href="https://opencollective.com/jsprimer">ページスポンサー</a>の方々にサポートされています{% if page.sponsorsExample %}
<br/>(この表示はサンプルです)
{% endif %}
</p>
</div>
{% else %}
<div class="page-sponsors-footer">
Expand Down
1 change: 1 addition & 0 deletions source/intro/sponsors/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
author: azu
description: "JavaScript Primerのスポンサー"
sponsorsExample: true
sponsors:
- name: "Test A"
url: "https://example.com/"
Expand Down

0 comments on commit 64828b2

Please sign in to comment.