Skip to content
Open
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
2 changes: 2 additions & 0 deletions config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@
# license info (HTML format is supported)
# 许可协议信息 (支持 HTML 格式)
license= ""
# Inject invible Mastodon rel="me" link
mastodonRelme = false

# Section (all posts) page config
# Section (所有文章) 页面配置
Expand Down
2 changes: 2 additions & 0 deletions exampleSite/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ ignoreErrors = ["error-remote-getjson", "error-missing-instagram-accesstoken"]
# license info (HTML format is supported)
# 许可协议信息 (支持 HTML 格式)
license= '<a rel="license external nofollow noopener noreffer" href="https://creativecommons.org/licenses/by-nc/4.0/" target="_blank">CC BY-NC 4.0</a>'
# Inject invible Mastodon rel="me" link
mastodonRelme = false

# Section (all posts) page config
# Section (所有文章) 页面配置
Expand Down
6 changes: 6 additions & 0 deletions layouts/partials/footer.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@
<span class="icp">{{ . | safeHTML }}</span>
{{- end -}}
</div>

{{- if ne .Site.Params.footer.mastodonRelme false -}}
<div class="footer-line">
<a rel="me" href="{{ $.Site.Params.Social.mastodon }}"></a>
</div>
{{- end -}}
</div>
</footer>
{{- end -}}