Skip to content

Commit

Permalink
调整默认的主题文件
Browse files Browse the repository at this point in the history
  • Loading branch information
ramostear committed Jul 2, 2020
1 parent 712614d commit 71446e0
Show file tree
Hide file tree
Showing 10 changed files with 273 additions and 259 deletions.
10 changes: 5 additions & 5 deletions src/main/resources/theme/default/archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,29 +25,29 @@
<div class="archive animated fadeInDown">
<h3 class="m-4">归档</h3>
<ul class="list-with-title">
<@u_archives>
<@unaboot.archives>
<#if results?? && results?size gt 0>
<#list results as archive>
<div class="listing-title">${archive.name}</div>
<ul class="listing" style="padding-left:25px;">
<@u_archive_detail name=archive.name>
<@unaboot.posts type=0 name=archive.name>
<#if results?? && results?size gt 0>
<#list results as post>
<div class="listing-item">
<div class="listing-post">
<a href="${una}/blog/${post.slug}" title="${post.title}">${post.title}</a>
<a href="${una}/posts/${post.slug}" title="${post.title}">${post.title}</a>
<div class="post-time">
<span class="date">${post.createTime?string("yyyy-MM-dd")}</span>
</div>
</div>
</div>
</#list>
</#if>
</@u_archive_detail>
</@unaboot.posts>
</ul>
</#list>
</#if>
</@u_archives>
</@unaboot.archives>
</ul>
</div>
</div>
Expand Down
63 changes: 63 additions & 0 deletions src/main/resources/theme/default/archives.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="${favicon!''}" type="image/x-icon">
<link rel="shortcut icon" href="${favicon!''}" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>文章归档 - ${title!''}</title>
<link rel="stylesheet" href="${una}/${theme}/css/font-awesome.css">
<link rel="stylesheet" href="${una}/${theme}/css/ionicons.css">
<link rel="stylesheet" href="${una}/${theme}/css/adminlte.css">
<link rel="stylesheet" href="${una}/${theme}/css/unaboot.css">
</head>
<body>
<div class="sidebar animated fadeInDown">
<#include "./left.html"/>
</div>
<div class="main">
<div class="page-top animated fadeInDown">
<#include "./nav.html"/>
</div>
<div class="autopagerize_page_element">
<div class="content">
<div class="archive animated fadeInDown">
<h3 class="m-4">归档</h3>
<ul class="list-with-title">
<@unaboot.archives>
<#if results?? && results?size gt 0>
<#list results as archive>
<div class="listing-title">${archive.name}</div>
<ul class="listing" style="padding-left:25px;">
<@unaboot.posts type=0 name=archive.name>
<#if results?? && results?size gt 0>
<#list results as post>
<div class="listing-item">
<div class="listing-post">
<a href="${una}/posts/${post.slug}" title="${post.title}">${post.title}</a>
<div class="post-time">
<span class="date">${post.createTime?string("yyyy-MM-dd")}</span>
</div>
</div>
</div>
</#list>
</#if>
</@unaboot.posts>
</ul>
</#list>
</#if>
</@unaboot.archives>
</ul>
</div>
</div>
</div>
</div>
<script src="${una}/${theme}/js/jquery/jquery.min.js"></script>
<script src="${una}/${theme}/js/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="${una}/${theme}/js/adminlte.min.js"></script>
<script type="text/javascript">

</script>
</body>
</html>
12 changes: 6 additions & 6 deletions src/main/resources/theme/default/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
</div>
<div class="autopagerize_page_element">
<div class="content">
<@u_post_page_detail type=0 offset=offset size=15>
<@unaboot.pages type=0 offset=offset size=15 style=0>
<#if results?? && results.content?size gt 0>
<#list results.content as post>
<div class="post animated fadeInDown">
<div class="post-title mb-2">
<h3>
<a href="${una}/blog/${post.slug}">${post.title}</a>
<a href="${una}/posts/${post.slug}">${post.title}</a>
</h3>
</div>
<div class="post-content">
Expand All @@ -40,7 +40,7 @@ <h3>
<div class="meta">
<div class="info">
<i class="fa fa-sun-o"></i>
<span class="date">${u_timeAgo(post.createTime)}</span>
<span class="date">${unaboot.timeAgo(post.createTime)}</span>
<i class="fa fa-user-circle-o"></i>
<a href="#">${post.author}</a>
<i class="fa fa-eye"> ${post.visits!'0'}</i>
Expand All @@ -49,7 +49,7 @@ <h3>
<i class="fa fa-tags"></i>
<#if post.tags?? && post.tags?size gt 0>
<#list post.tags as tag>
<a href="${una}/tag/${tag.name}" class="tag"> ${tag.name}</a>
<a href="${una}/tags/${tag.slug}" class="tag"> ${tag.name}</a>
</#list>
</#if>
</div>
Expand All @@ -58,9 +58,9 @@ <h3>
</div>
</#list>
</#if>
</@u_post_page_detail>
</@unaboot.pages>
<div class="pagination">
${u_postPage(una+"/index" 0 offset 5 15)}
${unaboot.pageUrl(una+"/index" 0 offset 5 15 0)}
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/theme/default/left.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@ <h3 class="mt-2">${title!'Una | 尤娜'}</h3>
</div>
<ul class="social-links">
<li>
<a href="https://github.com/ramostear/UnaBoot-Pro" target="_blank">
<a href="https://github.com/ramostear/UnaBoot" target="_blank">
<i class="fa fa-github fa-2x"></i>
</a>
</li>
<li>
<a href="https://gitee.com/ramostear/UnaBoot-Pro" target="_blank">
<a href="https://gitee.com/ramostear/UnaBoot" target="_blank">
<i class="fa fa-git fa-2x"></i>
</a>
</li>
Expand Down
91 changes: 19 additions & 72 deletions src/main/resources/theme/default/links.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,95 +2,42 @@
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="./img/logo.png" type="image/x-icon">
<link rel="shortcut icon" href="./img/logo.png" type="image/x-icon">
<link rel="icon" href="${favicon}" type="image/x-icon">
<link rel="shortcut icon" href="${favicon}" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>友情连接 - 尤娜博客</title>
<link rel="stylesheet" href="css/font-awesome.css">
<link rel="stylesheet" href="css/ionicons.css">
<link rel="stylesheet" href="css/adminlte.css">
<link rel="stylesheet" href="css/unaboot.css">
<title>友情链接 - ${title}</title>
<link rel="stylesheet" href="${una}/${theme}/css/font-awesome.css">
<link rel="stylesheet" href="${una}/${theme}/css/ionicons.css">
<link rel="stylesheet" href="${una}/${theme}/css/adminlte.css">
<link rel="stylesheet" href="${una}/${theme}/css/unaboot.css">
</head>
<body>
<div class="sidebar animated fadeInDown">
<div class="ribbon-wrapper ribbon-lg">
<div class="ribbon bg-gray-dark" style="text-transform: none;">
<a href="https://github.com/ramostear">
<i class="fa fa-github"></i> Fork me
</a>
</div>
</div>
<div class="logo-title">
<img src="img/logo.png" style="width: 127px;">
<h3 class="mt-2">UnaBoot V1.2.0</h3>
<div class="description">
<p>UnaBoot Default Theme</p>
</div>
</div>
<ul class="social-links">
<li>
<a href="https://github.com/ramostear" target="_blank">
<i class="fa fa-github fa-2x"></i>
</a>
</li>
<li>
<a href="https://gitee.com/ramostear" target="_blank">
<i class="fa fa-git fa-2x"></i>
</a>
</li>
<li>
<a href="https://weibo.com/ramostear" target="_blank">
<i class="fa fa-weibo fa-2x"></i>
</a>
</li>
</ul>
<div class="footer pt-2">
<a href="#" target="_blank">
<span>Powered By Ramostear</span>
</a>
<div class="by_farbox">
<a href="#" target="">&copy;2020-ramostear</a>
<a href="#" target="_blank">ICP备:2011201508</a>
</div>
</div>
<#include "./left.html"/>
</div>
<div class="main">
<div class="page-top animated fadeInDown">
<div class="nav">
<li>
<a href="index.html" target="_blank" class="">Home</a>
</li>
<li>
<a href="archive.html" target="_blank" class="">Archive</a>
</li>
<li>
<a href="category.html" target="_blank" class="">Category</a>
</li>
<li>
<a href="tags.html" target="_blank" class="">Tags</a>
</li>
<li>
<a href="links.html" target="_blank" class="current">Links</a>
</li>
<li>
<a href="about.html" target="_blank" class="">About</a>
</li>
</div>
<#include "./nav.html"/>
</div>
<div class="autopagerize_page_element">
<div class="content">
<div class="links animated fadeInDown">
<h3>友情连接</h3>
<a href="#" class="btn btn-outline-primary m-2">许进沉思录</a>
<a href="#" class="btn btn-outline-primary m-2">树下魅狐</a>
<@unaboot.links>
<#if results?? && results?size gt 0>
<#list results as link>
<a href="${link.url}" class="btn btn-outline-primary m-2">${link.name}</a>
</#list>
</#if>
</@unaboot.links>
</div>
</div>
</div>
</div>
<script src="js/jquery/jquery.min.js"></script>
<script src="js/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="js/adminlte.min.js"></script>
<script src="${una}/${theme}/js/jquery/jquery.min.js"></script>
<script src="${una}/${theme}/js/bootstrap/js/bootstrap.bundle.min.js"></script>
<script src="${una}/${theme}/js/adminlte.min.js"></script>
<script type="text/javascript">

</script>
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/theme/default/nav.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<div class="nav">
<@u_navigation>
<@unaboot.navMenus>
<#if results?? && results?size gt 0>
<#list results as nav>
<li>
<a href="${una}/category/${nav.slug}">${nav.name}</a>
</li>
</#list>
</#if>
</@u_navigation>
</@unaboot.navMenus>
</div>
36 changes: 18 additions & 18 deletions src/main/resources/theme/default/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="shortcut icon" href="${favicon!''}" type="image/x-icon">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>${blog.title} - ${title!''}</title>
<title>${post.title} - ${title!''}</title>
<link rel="stylesheet" href="${una}/${theme}/css/font-awesome.css">
<link rel="stylesheet" href="${una}/${theme}/css/ionicons.css">
<link rel="stylesheet" href="${una}/${theme}/css/adminlte.css">
Expand All @@ -27,56 +27,56 @@
<div class="post-page">
<div class="post animated fadeInDown">
<div class="post-title mb-4">
<h3><a>${blog.title}</a></h3>
<h3><a>${post.title}</a></h3>
</div>
<div class="post-meta">
<div class="meta">
<div class="info">
<i class="fa fa-calendar-o"></i>
<span class="date">${blog.createTime?string("yyyy-MM-dd HH:mm")}</span>
<span class="date">${post.createTime?string("yyyy-MM-dd HH:mm")}</span>
<i class="fa fa-user-circle-o"></i>
<a href="#">${blog.author}</a>
<a href="#">${post.author}</a>
<i class="fa fa-tags"></i>
<@u_post_tags id=blog.id>
<@unaboot.tags id=post.id>
<#if results?? && results?size gt 0>
<#list results as tag>
<a href="${una}/tag/${tag.name}" class="tag"> ${tag.name}</a>
<a href="${una}/tags/${tag.slug}" class="tag"> ${tag.name}</a>
</#list>
</#if>
</@u_post_tags>
<i class="fa fa-info-circle"> 本文共${u_wordNumber(blog.html)}个字预计阅读需要${u_readTime(blog.html)}分钟。</i>
</@unaboot.tags>
<i class="fa fa-info-circle"> 本文共${unaboot.words(post.content)}个字预计阅读需要${unaboot.readTime(post.content)}分钟。</i>
</div>
</div>
</div>
<div class="post-content typo editormd-html-preview editormd-preview-theme-dark">
${blog.html!''}
${post.content!''}
</div>
</div>
<div class="pre-next">
<div class="row">
<div class="col-12">
<@u_pre_or_next current=blog.id category=blog.category type="previous">
<#if (result.slug??)>
<a href="${una}/blog/${result.slug}" class="pull-left">
<@unaboot.postInfo id=post.id type=1 category=post.category style=0>
<#if result.slug??>
<a href="${una}/posts/${result.slug}" class="pull-left">
<i class="fa fa-angle-double-left"></i>上一篇 : ${result.title}
</a>
<#else>
<a href="javascript:void(0);" class="pull-left">
<i class="fa fa-angle-double-left"></i>上一篇 : 没有了
</a>
</#if>
</@u_pre_or_next>
<@u_pre_or_next current=blog.id category=blog.category type="next">
<#if (result.slug??)>
<a href="${una}/blog/${result.slug}" class="pull-right">
</@unaboot.postInfo>
<@unaboot.postInfo id=post.id type=2 category=post.category style=0>
<#if result.slug??>
<a href="${una}/posts/${result.slug}" class="pull-right">
${result.title} :下一篇<i class="fa fa-angle-double-right"></i>
</a>
<#else>
<a href="javascript:void(0);" class="pull-right">
没有了 :下一篇<i class="fa fa-angle-double-right"></i>
</a>
</#if>
</@u_pre_or_next>
</@unaboot.postInfo>
</div>
</div>
</div>
Expand All @@ -95,10 +95,10 @@ <h3>评论</h3>
<script src="https://cdn.bootcss.com/gitalk/1.5.0/gitalk.js"></script>
<script type="text/javascript">
hljs.initHighlightingOnLoad();
${u_gitalkScript(blog.id "gitalk-container")}
$(".post-content img").each(function(){
$(this).addClass("img-fluid");
});
</script>
${unaboot.gitalk(0 post.id "gitalk-container")}
</body>
</html>
Loading

0 comments on commit 71446e0

Please sign in to comment.