Browse Source

Let the copyright information be hidden by default

Fechin 7 years ago
parent
commit
986c793265
3 changed files with 4 additions and 1 deletions
  1. 1 1
      layout/_partial/menu.ejs
  2. 2 0
      source/css/diaspora.css
  3. 1 0
      source/js/diaspora.js

+ 1 - 1
layout/_partial/menu.ejs

@@ -6,7 +6,7 @@
         </li>
         <%}%>
     </ul>
-    <p>
+    <p id="copyright" class="hide">
         &copy; <%= date(new Date(), 'YYYY') %> <%= config.author || config.title %>.
         Powered by <%- link_to("http://hexo.io/", "Hexo", {external: true})%>
         Theme <%- link_to("https://github.com/Fechin/hexo-theme-diaspora", "Diaspora", {external: true})%>

+ 2 - 0
source/css/diaspora.css

@@ -18,6 +18,8 @@ body {font-family:"Hiragino Sans GB","Hiragino Sans GB W3","Microsoft YaHei","We
 a,a:hover {text-decoration:none;}
 img {display:block;max-width:100%;height:auto;}
 audio {display:none;visibility:hidden;opacity:0;width:0;height:0;}
+.hide{display:none;}
+.show{display:block;}
 #screen {position:relative;}
 #mark {width:100%;height:560px;overflow:hidden;}
 .layer {position:relative;}

+ 1 - 0
source/js/diaspora.js

@@ -391,6 +391,7 @@ $(function() {
             case (tag.indexOf('switchmenu') != -1):
                 window.scrollTo(0, 0)
                 $('html, body').toggleClass('mu');
+                $('#copyright').toggleClass('show');
 
                 break;