Skip to content

Commit

Permalink
✨ Feature: add hitokoto (#252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Takahashi authored and Molunerfinn committed Jan 29, 2020
1 parent 197c530 commit f508191
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ disqus:
# ---------------
since: 2013

# footer_custom_text:
# footer_custom_text: put custom text directly or put hitokoto to fetch random texts

ICP:
enable: false
Expand Down
3 changes: 3 additions & 0 deletions layout/includes/head.pug
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ if theme.qihu_site_verification
if theme.disable_baidu_transformation
meta(http-equiv="Cache-Control" content="no-transform")
meta(http-equiv="Cache-Control" content="no-siteapp")

if theme.footer_custom_text==='hitokoto'
script(src="https://v1.hitokoto.cn/?encode=js&charset=utf-8&select=.footer_custom_text" defer)

0 comments on commit f508191

Please sign in to comment.