feat: GitHub Ribbons

This commit is contained in:
shenyu 2019-12-15 09:23:24 +08:00
parent f497622a96
commit f1e00d8d27
4 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -3,6 +3,12 @@
<body>
<div id="app">
<main class="content">
<% if (theme.github && theme.github.url){ %>
<%# "GitHub Ribbons" %>
<a class="forkMe" style="position:absolute;z-index:999;top:0;right:0" href="<%=theme.github.url%>"
target="_blank"><img width="149" height="149" src="<%- url_for('images/forkme.png') %>"
class="attachment-full size-full" alt="Fork me on GitHub" data-recalc-dims="1"></a>
<% } %>
<%- body %>
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
<div class="to_top">

BIN
source/images/forkme.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.3 KiB