diff --git a/README.md b/README.md index 5d1f197..eb4b3f3 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,11 @@ gitalk: owner: # GitHub ID admin: # GitHub ID +# GitHub Ribbons(https://github.blog/2008-12-19-github-ribbons/) +github: + # (关闭请设置为false) + url: https://github.com/Shen-Yu/hexo-theme-ayer + # fancybox(仅用于相册展示,若需要可配置albums) fancybox: true diff --git a/_config.yml b/_config.yml index 696286b..5044d30 100644 --- a/_config.yml +++ b/_config.yml @@ -75,6 +75,11 @@ gitalk: owner: # GitHub ID admin: # GitHub ID +# GitHub Ribbons(https://github.blog/2008-12-19-github-ribbons/) +github: + # (关闭请设置为false) + url: https://github.com/Shen-Yu/hexo-theme-ayer + # fancybox(仅用于相册展示,若需要可配置albums) fancybox: true diff --git a/layout/layout.ejs b/layout/layout.ejs index 3feaacc..0c395e6 100644 --- a/layout/layout.ejs +++ b/layout/layout.ejs @@ -3,6 +3,12 @@
+ <% if (theme.github && theme.github.url){ %> + <%# "GitHub Ribbons" %> + Fork me on GitHub + <% } %> <%- body %> <%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
diff --git a/source/images/forkme.png b/source/images/forkme.png new file mode 100644 index 0000000..c380274 Binary files /dev/null and b/source/images/forkme.png differ