Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

テンプレートのカスタマイズ部分について、日英を同じファイルで管理。 #227

Merged
merged 1 commit into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions en/source/_templates
8 changes: 0 additions & 8 deletions en/source/_templates/breadcrumbs.html

This file was deleted.

9 changes: 0 additions & 9 deletions en/source/_templates/footer.html

This file was deleted.

49 changes: 0 additions & 49 deletions en/source/_templates/layout.html

This file was deleted.

12 changes: 10 additions & 2 deletions ja/source/_templates/footer.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
{% extends "!footer.html" %}
{% block extrafooter %}
<p>
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="クリエイティブ・コモンズ・ライセンス" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br /><a xmlns:cc="http://creativecommons.org/ns#" href="https://www.freee.co.jp/" property="cc:attributionName" rel="cc:attributionURL">フリー株式会社</a> 作『<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">freeeアクセシビリティー・ガイドライン</span>』は<a rel="license" href="http://creativecommons.org/licenses/by/4.0/">クリエイティブ・コモンズ 表示 4.0 国際 ライセンス</a>で提供されています。
{% if language == 'ja' -%}
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="クリエイティブ・コモンズ・ライセンス" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br /> <a xmlns:cc="http://creativecommons.org/ns#" href="https://www.freee.co.jp/" property="cc:attributionName" rel="cc:attributionURL">フリー株式会社</a> 作『<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">freeeアクセシビリティー・ガイドライン</span>』は<a rel="license" href="http://creativecommons.org/licenses/by/4.0/">クリエイティブ・コモンズ 表示 4.0 国際 ライセンス</a>で提供されています。
{%- else -%}
<a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />"<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title">freee Accessibility Guidelines</span>" by <a xmlns:cc="http://creativecommons.org/ns#" href="https://www.freee.co.jp/" property="cc:attributionName" rel="cc:attributionURL">freee K.K.</a> is licensed under <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International</a>.
{%- endif %}
</p>
{% if gtm_id %}
<p>このサイトでは、アクセス状況の解析のためにGoogle Analyticsを用いています。Googleによるデータの使用については、<a href="https://www.google.com/intl/ja/policies/privacy/partners/">GOOGLE のサービスを使用するサイトやアプリから収集した情報の GOOGLE による使用</a>をご覧ください。また、これに伴い使用されるCookieの扱いなどについては、<a href="https://www.freee.co.jp/privacy_policy/">フリー株式会社のプライバシー・ポリシー</a>をご覧ください。</p>
{% if language == 'ja' -%}
<p>このサイトでは、アクセス状況の解析のためにGoogle Analyticsを用いています。Googleによるデータの使用については、<a href="https://www.google.com/intl/ja/policies/privacy/partners/">GOOGLE のサービスを使用するサイトやアプリから収集した情報の GOOGLE による使用</a>をご覧ください。また、これに伴い使用されるCookieの扱いなどについては、<a href="https://www.freee.co.jp/privacy_policy/">フリー株式会社のプライバシー・ポリシー</a>をご覧ください。</p>
{%- else -%}
<p>This site uses Google Analytics for access analysis. Please refer to <a href="https://www.google.com/intl/en/policies/privacy/partners/">HOW GOOGLE USES INFORMATION FROM SITES OR APPS THAT USE OUR SERVICES</a> for hwo Google uses the data. Please also refer to the <a href="https://www.freee.co.jp/privacy_policy/">privacy policy of freee K.K.</a> for how Cookies are used.</p>
{%- endif %}
{% endif %}
{% endblock %}
14 changes: 11 additions & 3 deletions ja/source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,23 @@
<meta name="twitter:card" content="summary_large_image" />
{% endif %}
<script>
{% if language == 'ja' -%}
var buttonLabel = 'リンクをコピー';
{%- else -%}
var buttonLabel = 'Copy link';
{%- endif %}
</script>
<script src="{{ pathto('_static/copylink.js', 1) }}"></script>
{% endblock %}
{% block content %}
{% if meta is defined %}
{% if meta.translated %}
<p><a href="{{ baseurl_en }}{{ pagename }}.html">An English translation of this page is available.</a></p>
{% if language == 'ja' %}
{% if meta is defined %}
{% if meta.translated %}
<p><a href="{{ baseurl_en }}{{ pagename }}.html">An English translation of this page is available.</a></p>
{% endif %}
{% endif %}
{% else %}
<p><a href="{{ baseurl_ja }}{{ pagename }}.html">The normative (Japanese) version of this page is here.</a></p>
{% endif %}
{{ super() }}
{% endblock %}
Loading