Skip to content

Commit

Permalink
copylinのラベルに用いる言語はhtml要素のlang属性から判断するようにしたので、事前の変数定義は不要
Browse files Browse the repository at this point in the history
  • Loading branch information
ma10 committed Apr 19, 2024
1 parent 14efae6 commit 640c538
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions ja/source/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@
<meta property="og:url" content="{{ theme_canonical_url }}{{ pagename }}{{ file_suffix }}" />
<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 %}
Expand Down

0 comments on commit 640c538

Please sign in to comment.