Browse Source

修改bug, url_for

liuyuqi-dellpc 6 years ago
parent
commit
a18ebee21f

+ 1 - 1
README.md

@@ -48,7 +48,7 @@ tags:
 - 标签
 - 标签
 mp3: http://domain.com/awesome.mp3
-cover: http://domain.com/awesome.jpg
+cover: http://odwjyz4z6.bkt.clouddn.com/ml02/ml02cover2.jpg
 ---
 ```
 

+ 2 - 2
_config.yml

@@ -1,8 +1,8 @@
 # 头部菜单,title: link
 menu:
   Whoami: /whoami
-  Github: https://github.com/Fechin
-  Twitter: https://twitter.com/FechinLi
+  Github: https://github.com/jianboy
+  Twitter: https://twitter.com/lyq_gov
 
 # 是否显示目录
 TOC: false

+ 0 - 7
layout/_partial/head.ejs

@@ -36,12 +36,5 @@ var description = '';
     <% if (theme.favicon){ %><link rel="icon" href="<%- url_for(theme.favicon) %>"> <% } %>
     <%- css(['//cdn.jsdelivr.net/npm/gitalk@1/dist/gitalk.css'])%>
     <%- css(['css/diaspora.css'])%>
-    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
-    <script>
-      (adsbygoogle = window.adsbygoogle || []).push({
-        google_ad_client: "ca-pub-8691406134231910",
-        enable_page_level_ads: true
-      });
-    </script>
 
 </head>

+ 2 - 2
layout/_partial/post/item.ejs

@@ -1,10 +1,10 @@
 <div class="post">
-    <a href="<%- url_for(post.path) %>" title="<%- post.title || "Untitled" %>">
+    <a href="<%- post.path %>" title="<%- post.title || "Untitled" %>">
         <%- image_tag(post.cover || theme.cover, {class: "cover", width: 680, height: 440}) %>
     </a>
     <div class="else">
         <p><%- post.date.locale("zh-cn").format("MMMM DD, YYYY") %></p>
-        <h3><%- link_to(url_for(post.path), post.title || "Untitled", {class: "posttitle"}) %></h3>
+        <h3><%- link_to(post.path, post.title || "Untitled", {class: "posttitle"}) %></h3>
         <p><%- truncate(strip_html(post.content), {length: 80, omission: '...'}) %></p>
     </div>
 </div>

+ 1 - 1
layout/_partial/screen.ejs

@@ -20,7 +20,7 @@
     <% if ( first ) { %>
     <div id="post0">
         <p><%- first.date.locale("zh-cn").format("MMMM DD, YYYY") %></p>
-        <h2><%- link_to(url_for(first.path), first.title || config.title, {class: "posttitle"}) %></h2>
+        <h2><%- link_to(first.path, first.title || config.title, {class: "posttitle"}) %></h2>
         <p class="summary"><%- truncate(strip_html(first.content), {length: 60, omission: '...'}) %></p>
     </div>
     <% } %>

+ 1 - 1
source/css/diaspora.css

@@ -26,7 +26,7 @@ audio {display:none;visibility:hidden;opacity:0;width:0;height:0;}
 #header {position:absolute;top:70px;width:100%;}
 #header > div {margin:0 60px;position:relative;}
 .icon-menu {font-size:20px;padding:6px 6px 5px;border-radius:2px;cursor:pointer;position:absolute;z-index:4;right:0;top:0;margin-top:-3px;background:rgba(255,255,255,.9);}
-.image-logo {z-index:4;position:relative;display:inline-block;-webkit-background-size:75px 32px;-moz-background-size:75px 32px;background-size:75px 32px;background-repeat:no-repeat;background-position:center center;-webkit-mask-box-image:url("/img/logo.png");background-color:white;width:75px;height:32px;mask-image:url("/img/logo.png");mask-size:contain;transition: background-color 0.5s ease-in-out;}
+.image-logo {z-index:4;position:relative;display:inline-block;-webkit-background-size:75px 32px;-moz-background-size:75px 32px;background-size:75px 32px;background-repeat:no-repeat;background-position:center center;background-color:white;width:75px;height:32px;mask-image:url("/img/logo.png");mask-size:contain;transition: background-color 0.5s ease-in-out;}
 body.mu .image-logo {background-color:black;}
 #vibrant {position:absolute;top:0;left:0;width:100%;height:100%;}
 #vibrant div {position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;background-color:#000;}

BIN
source/img/welcome-cover.jpg