Skip to content

Commit

Permalink
feat: add footer icp info
Browse files Browse the repository at this point in the history
  • Loading branch information
FX-Max committed Jan 25, 2023
1 parent 9e998ac commit 80b42f0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions _config.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ social:
tumblr:
instagram:

# ===========================================
# Footer Settings
# ===========================================
footer:
ICP: # Chinese ICP License
enable: false
url:
text:

# ===========================================
# Third Party Services Settings
# ===========================================
Expand Down
6 changes: 6 additions & 0 deletions layout/_partial/footer.swig
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@
<i class="iconfont icon-heart"></i>
</span>
<span class="author">{{ config.author }}</span>

{%- if theme.footer.ICP.enable -%}
<span class="division">|</span>
<a class="theme-link" href={{ theme.footer.ICP.url }}>{{ theme.footer.ICP.text }}</a>
{%- endif -%}

</span>
</div>
1 change: 1 addition & 0 deletions source/css/_partial/_footer/_copyright.scss
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
text-align: center;
font-family: $global-serif-font-family;

.icp-link,
.hexo-link,
.theme-link {
color: $theme-color;
Expand Down

0 comments on commit 80b42f0

Please sign in to comment.