1 修改前部分

文件路径:G:hexo-blog\lizhi\themes\next\layout\_macro\post-copyright.swg

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<ul class="post-copyright">
<li class="post-copyright-author">
<strong>{{ __('post.copyright.author') + __('symbol.colon') }}</strong>
{{ post.author | default(config.author) }}
</li>
<li class="post-copyright-link">
<strong>{{ __('post.copyright.link') + __('symbol.colon') }}</strong>
<a href="{{ post.url | default(post.permalink) }}" title="{{ post.title }}">{{ post.url | default(post.permalink) }}</a>
</li>
<li class="post-copyright-license">
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>
{{ __('post.copyright.license_content', theme.post_copyright.license_url, theme.post_copyright.license) }}
</li>
</ul>

2 修改后

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<ul class="post-copyright">
<li class="post-copyright-author">
<strong>{{ __('post.copyright.author') + __('symbol.colon') }}</strong>
{{ post.author | default(config.author) }} | 微信公众号:【麦田里的守望者zhg】
</li>
<li class="post-copyright-link">
<strong>{{ __('post.copyright.link') + __('symbol.colon') }}</strong>
<a href="https://jums.club/lizhi/{{ post.path | default(post.permalink) }}" title="{{ post.title }}">https://jums.club/lizhi/{{ post.path | default(post.permalink) }}</a>
</li>
<li class="post-copyright-license">
<strong>{{ __('post.copyright.license_title') + __('symbol.colon') }} </strong>
{{ __('post.copyright.license_content', theme.post_copyright.license_url, theme.post_copyright.license) }}
</li>
</ul>

修改部分:
post.url前面加上你的项目域名地址,然后将post.url改成post.path。大功告成。
修改前的效果:
修改前
修改后的效果:
修改后

写在最后

欢迎大家关注鄙人的公众号【麦田里的守望者zhg】,让我们一起成长,谢谢。
微信公众号