feat: GitHub Ribbons
This commit is contained in:
parent
f497622a96
commit
f1e00d8d27
@ -113,6 +113,11 @@ gitalk:
|
|||||||
owner: # GitHub ID
|
owner: # GitHub ID
|
||||||
admin: # 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(仅用于相册展示,若需要可配置albums)
|
||||||
fancybox: true
|
fancybox: true
|
||||||
|
|
||||||
|
@ -75,6 +75,11 @@ gitalk:
|
|||||||
owner: # GitHub ID
|
owner: # GitHub ID
|
||||||
admin: # 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(仅用于相册展示,若需要可配置albums)
|
||||||
fancybox: true
|
fancybox: true
|
||||||
|
|
||||||
|
@ -3,6 +3,12 @@
|
|||||||
<body>
|
<body>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<main class="content">
|
<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 %>
|
<%- body %>
|
||||||
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
|
<%- partial('_partial/footer', null, {cache: !config.relative_link}) %>
|
||||||
<div class="to_top">
|
<div class="to_top">
|
||||||
|
BIN
source/images/forkme.png
Normal file
BIN
source/images/forkme.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.3 KiB |
Loading…
Reference in New Issue
Block a user