fix: github ribbons

This commit is contained in:
shenyu 2019-12-15 09:29:13 +08:00
parent f1e00d8d27
commit d67628b2e8
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,11 @@
<% if (theme.cover.enable) { %> <% if (theme.cover.enable) { %>
<section class="cover"> <section class="cover">
<% 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>
<% } %>
<div class="cover-frame"> <div class="cover-frame">
<div class="bg-box"> <div class="bg-box">
<img src="<%- theme.cover.path %>" alt="image frame" /> <img src="<%- theme.cover.path %>" alt="image frame" />

View File

@ -3,12 +3,6 @@
<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">