Skip to content

Commit 4003a0e

Browse files
committed
Refactored license_content & Fixed excess spaces.
1 parent 97a3987 commit 4003a0e

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

_config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ footer:
8181
version: true
8282
# -------------------------------------------------------------
8383
# Any custom text can be defined here.
84-
#custom_text: Hosted by <a target="_blank" href="https://pages.github.com">GitHub Pages</a>
84+
#custom_text: Hosted by <a target="_blank" rel="external nofollow" href="https://pages.github.com">GitHub Pages</a>
8585

8686
# ---------------------------------------------------------------
8787
# SEO Settings
@@ -279,8 +279,7 @@ symbols_count_time:
279279
# Declare license on posts
280280
post_copyright:
281281
enable: false
282-
license: CC BY-NC-SA 3.0
283-
license_url: https://creativecommons.org/licenses/by-nc-sa/3.0/
282+
license: <a href="https://creativecommons.org/licenses/by-nc-sa/3.0/" rel="external nofollow" target="_blank">CC BY-NC-SA 3.0</a>
284283

285284

286285
# ---------------------------------------------------------------

languages/_en.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ post:
4040
author: Post author
4141
link: Post link
4242
license_title: Copyright Notice
43-
license_content: 'All articles in this blog are licensed under
44-
<a href="%s" rel="external nofollow" target="_blank">%s</a> unless stating additionally.'
43+
license_content: All articles in this blog are licensed under %s unless stating additionally.
4544

4645
page:
4746
totally: Totally

layout/_macro/post-copyright.swig

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
<ul class="post-copyright">
22
<li class="post-copyright-author">
3-
<strong>{{ __('post.copyright.author') + __('symbol.colon') }}</strong>
4-
{{ post.author | default(config.author) }}
5-
</li>
3+
<strong>{{ __('post.copyright.author') + __('symbol.colon') }}</strong>{#
4+
#}{{ post.author | default(config.author) }}{#
5+
#}</li>
66
<li class="post-copyright-link">
77
<strong>{{ __('post.copyright.link') + __('symbol.colon') }}</strong>
88
<a href="{{ post.url | default(post.permalink) }}" title="{{ post.title }}">{{ post.url | default(post.permalink) }}</a>
99
</li>
1010
<li class="post-copyright-license">
11-
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>
12-
{{ __('post.copyright.license_content', theme.post_copyright.license_url, theme.post_copyright.license) }}
13-
</li>
11+
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>{#
12+
#}{{ __('post.copyright.license_content', theme.post_copyright.license) }}{#
13+
#}</li>
1414
</ul>

0 commit comments

Comments
 (0)