Skip to content

Commit

Permalink
Finished hexo template
Browse files Browse the repository at this point in the history
  • Loading branch information
yukozh committed Aug 15, 2016
1 parent cab28c8 commit f70c572
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 23 deletions.
25 changes: 16 additions & 9 deletions src/YuukoBlog/Views/Hexo/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
<li>日历</li>
<li>标签</li>
<li>友情链接</li>
<li><a href="@ViewBag.AboutUrl">关于我</a></li>
@if (Html.IsAdmin())
{
<li><a href="javascript:$('#frmNewPost').submit();">发表文章</a></li>
Expand Down Expand Up @@ -96,10 +97,10 @@
</nav>
<nav class="header-nav">
<div class="social">
<a class="github" target="_blank" href="/#" title="github">github</a>
<a class="weibo" target="_blank" href="/#" title="weibo">weibo</a>
<a class="rss" target="_blank" href="/#" title="rss">rss</a>
<a class="zhihu" target="_blank" href="/#" title="zhihu">zhihu</a>
<a class="github" target="_blank" href="https://github.com/Kagamine" title="github">github</a>
<a class="mvp" target="_blank" href="https://mvp.microsoft.com/zh-cn/PublicProfile/5001885" title="mvp">mvp</a>
<a class="linkedin" target="_blank" href="http://www.linkedin.com/in/%E9%80%B8%E7%AC%99-%E9%83%91-3b9980100" title="LinkedIn">LinkedIn</a>
<a class="mail" target="_blank" href="mailto:1@1234.sh" title="Email">Email</a>
</div>
</nav>
</section>
Expand Down Expand Up @@ -164,10 +165,10 @@
</nav>
<nav class="header-nav">
<div class="social">
<a class="github" target="_blank" href="/#" title="github">github</a>
<a class="weibo" target="_blank" href="/#" title="weibo">weibo</a>
<a class="rss" target="_blank" href="/#" title="rss">rss</a>
<a class="zhihu" target="_blank" href="/#" title="zhihu">zhihu</a>
<a class="github" target="_blank" href="https://github.com/Kagamine" title="github">github</a>
<a class="mvp" target="_blank" href="https://mvp.microsoft.com/zh-cn/PublicProfile/5001885" title="mvp">mvp</a>
<a class="linkedin" target="_blank" href="http://www.linkedin.com/in/%E9%80%B8%E7%AC%99-%E9%83%91-3b9980100" title="LinkedIn">LinkedIn</a>
<a class="mail" target="_blank" href="mailto:1@1234.sh" title="Email">Email</a>
</div>
</nav>
</header>
Expand All @@ -182,7 +183,13 @@
<div class="outer">
<div id="footer-info">
<div class="footer-left">
&copy; 2016 <a href="https://github.com/PomeloFoundation">Pomelo Foundation</a>
&copy; 2016 <a href="https://github.com/PomeloFoundation">Pomelo Foundation</a>, Template
<select id="lstTemplate">
@foreach (var t in Template.Collection.Templates)
{
<!option @(Template.Current.Identifier == t.Identifier ? "selected" : "") value="@t.Identifier">@t.Title</!option>
}
</select>
</div>
<div class="footer-right">
Powered by <a href="https://github.com/PomeloFoundation/YuukoBlog" target="_blank">YuukoBlog</a>
Expand Down
34 changes: 20 additions & 14 deletions src/YuukoBlog/wwwroot/assets/Hexo/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -609,12 +609,12 @@ a {
#header .header-nav .social a:last-of-type {
margin-right: 0;
}
#header .header-nav .social a.weibo {
background: url("../img/weibo.png") center no-repeat #aaf;
border: 1px solid #aaf;
#header .header-nav .social a.mvp {
background: url("../img/mvp.png") center no-repeat #0078d8;
border: 1px solid #0078d8;
}
#header .header-nav .social a.weibo:hover {
border: 1px solid #aaf;
#header .header-nav .social a.mvp:hover {
border: 1px solid #0078d8;
}
#header .header-nav .social a.rss {
background: url("../img/rss.png") center no-repeat #ef7522;
Expand All @@ -624,11 +624,11 @@ a {
border: 1px solid #cf5d0f;
}
#header .header-nav .social a.github {
background: url("../img/github.png") center no-repeat #afb6ca;
border: 1px solid #afb6ca;
background: url("../img/github.png") center no-repeat #2aad2d;
border: 1px solid #2aad2d;
}
#header .header-nav .social a.github:hover {
border: 1px solid #909ab6;
border: 1px solid #2aad2d;
}
#header .header-nav .social a.facebook {
background: url("../img/facebook.png") center no-repeat #3b5998;
Expand All @@ -652,11 +652,11 @@ a {
border: 1px solid #24c1f6;
}
#header .header-nav .social a.linkedin {
background: url("../img/linkedin.png") center no-repeat #005a87;
border: 1px solid #005a87;
background: url("../img/linkedin.png") center no-repeat #ef7522;
border: 1px solid #ef7522;
}
#header .header-nav .social a.linkedin:hover {
border: 1px solid #006b98;
border: 1px solid #ef7522;
}
#header .header-nav .social a.zhihu {
background: url("../img/zhihu.png") center no-repeat #0078d8;
Expand All @@ -673,11 +673,11 @@ a {
border: 1px solid #06c611;
}
#header .header-nav .social a.mail {
background: url("../img/mail.png") center no-repeat #005a87;
border: 1px solid #005a87;
background: url("../img/mail.png") center no-repeat #c059e6;
border: 1px solid #c059e6;
}
#header .header-nav .social a.mail:hover {
border: 1px solid #006b98;
border: 1px solid #c059e6;
}
#header .switch-part {
width: 100%;
Expand Down Expand Up @@ -2752,4 +2752,10 @@ pre, code {

.article-meta.admin {
width: 300px;
}

#lstTemplate {
background: none;
border: 0;
width: auto;
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/YuukoBlog/wwwroot/assets/Hexo/img/mail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/YuukoBlog/wwwroot/assets/Hexo/img/mvp.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/YuukoBlog/wwwroot/assets/Hexo/img/rss.png
Binary file not shown.
Binary file removed src/YuukoBlog/wwwroot/assets/Hexo/img/weibo.png
Binary file not shown.
Binary file removed src/YuukoBlog/wwwroot/assets/Hexo/img/zhihu.png
Binary file not shown.
4 changes: 4 additions & 0 deletions src/YuukoBlog/wwwroot/assets/Hexo/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ $(document).ready(function () {
$('.sidebar-blog-roll-tip').removeClass('active');
});

$('#lstTemplate').change(function () {
window.location = "/home/template?folder=" + $(this).val();
});

Highlight();
});

Expand Down

0 comments on commit f70c572

Please sign in to comment.