Skip to content

Commit 0c94315

Browse files
committed
Halo1.1.1版本主题最终版
0 parents  commit 0c94315

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

86 files changed

+4463
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.idea
2+
*.iml

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Simple Bootstrap主题
2+
3+
> 感谢使用Halo Simple Bootstrap主题
4+
5+
**主题演示地址**[点击访问](https://halo.cyblogs.top)
6+
7+
主题采用原生的`Bootstrap`样式,未经过大幅度的修改,主题色调为黑灰白,大幅度使用`Courier New`字体,没有华丽的图片做修饰,界面极为简洁,让读者专注于文字,而不被华丽的外表所吸引。
8+
9+
~~其实说白了就是我完全没有灵感去设计那么华丽的界面~~
10+
11+
## 贴个图
12+
13+
![截图](screenshot.png)
14+
15+
## 主题亮点
16+
17+
- 自动拆分文章目录
18+
19+
- 阅读时显示进度条(可以在设置中关闭)
20+
21+
- 手机端显示文章目录(可以在设置中关闭)
22+
23+
- 代码可复制(可以在设置中关闭)
24+
25+
- 代码支持行号(可以在设置中关闭)
26+
27+
- 代码框右上角显示代码类型(可以在设置中关闭)
28+
29+
- 支持转发(可以在设置中关闭)
30+
31+
- 支持日志界面(部分功能暂时不可用)
32+
33+
- 支持相册界面(当前为卡片式相册)
34+
35+
- 链接界面分类显示
36+
37+
...
38+
39+
如果你还有什么新奇的想法或者需要什么样的功能,请`issues`
40+
41+
有些界面确实没有灵感,如果你有更好的想法请`issues`

archives.ftl

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<#--归档界面ok-->
2+
<#--界面,间距,颜色,功能,逻辑-->
3+
<#include "module/layout.ftl">
4+
<@layout title="归档 | ${options.blog_title!}" keywords="${options.seo_keywords!}" description="${options.seo_description!}">
5+
<section id="archives" class="container px-lg-2 pt-3 pb-5 bg-white">
6+
<div class="row">
7+
<div id="left" class="col-lg-8 pr-lg-5 pl-lg-4 mt-lg-4">
8+
<#include "module/archives/left.ftl">
9+
</div>
10+
<div id="right" class="col-lg-4">
11+
<#include "module/archives/right.ftl">
12+
</div>
13+
</div>
14+
</section>
15+
</@layout>

categories.ftl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<#--分类列表界面OK-->
2+
<#include "module/layout.ftl">
3+
<@layout title="分类列表 | ${options.blog_title!}" keywords="${options.seo_keywords!}" description="${options.seo_description!}">
4+
<section id="archives" class="container px-lg-2 pt-3 pb-5 bg-white">
5+
<div class="row">
6+
<div id="left" class="col-lg-8 pr-lg-5 pl-lg-4 mt-lg-4">
7+
<#include "module/categrories/left.ftl">
8+
</div>
9+
<div id="right" class="col-lg-4">
10+
<#include "module/categrories/right.ftl">
11+
</div>
12+
</div>
13+
</section>
14+
</@layout>

category.ftl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<#--分类界面ok-->
2+
<#--界面,间距,颜色,功能,逻辑-->
3+
<#include "module/layout.ftl">
4+
<@layout title="${category.name!} | ${options.blog_title!}"
5+
keywords="${options.seo_keywords!}"
6+
description="${options.seo_description!}">
7+
<div class="container px-lg-2 pb-3 bg-white">
8+
<#--左右两列盒子-->
9+
<div class="row mb-3">
10+
<#--左边盒子-->
11+
<div id="left" class="col-xl-8 pr-xl-5 pt-3">
12+
<#include "module/category/left.ftl">
13+
</div>
14+
<#--右边的信息-->
15+
<div id="right" class="col-xl-4 pt-3">
16+
<#include "module/index/right.ftl">
17+
</div>
18+
</div>
19+
</div>
20+
<span id="keyword" class="d-none">${keyword!}</span>
21+
</@layout>

index.ftl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<#-- 首页界面ok -->
2+
<#--界面,间距,颜色,功能,逻辑-->
3+
<#include "module/layout.ftl">
4+
<@layout title="首页 | ${options.blog_title!}"
5+
keywords="${options.seo_keywords!}"
6+
description="${options.seo_description!}">
7+
<div class="container px-lg-2 pb-3 bg-white">
8+
<#--左右两列盒子-->
9+
<div class="row mb-3">
10+
<#--左边的盒子-->
11+
<div id="left" class="col-xl-8 pr-xl-5 pt-xl-4 pt-0">
12+
<#include "module/index/left.ftl">
13+
</div>
14+
<#--右边的信息-->
15+
<div id="right" class="col-xl-4 pt-3">
16+
<#include "module/index/right.ftl">
17+
</div>
18+
</div>
19+
</div>
20+
</@layout>

journals.ftl

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<#--日志界面OK-->
2+
<#include "module/layout.ftl">
3+
<@layout
4+
title="${user.nickname!}的日志 | ${options.blog_title!}"
5+
keywords="${options.seo_keywords!}"
6+
description="${options.seo_description!}">
7+
8+
<#--下方正文部分-->
9+
<div class="container-fluid" style="background: #f8fafc;">
10+
<div class="container px-md-2 px-0">
11+
<div class="row">
12+
<div id="left" class="journals col-md-8 p-0 pr-md-2" style="opacity: 0;">
13+
<#include "module/journals/left.ftl"/>
14+
</div>
15+
<div id="right" class="col-md-4 bg-white pt-3 pb-5 text-muted mt-2 d-md-block d-none">
16+
<#include "module/journals/right.ftl"/>
17+
</div>
18+
</div>
19+
</div>
20+
</div>
21+
</@layout>

links.ftl

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<#--链接页面OK-->
2+
<#include "module/layout.ftl">
3+
<@layout title="链接 | ${options.blog_title!}" keywords="${options.seo_keywords!}" description="${options.seo_description!}">
4+
5+
<link rel="stylesheet" href="${static!}/source/css/links.css">
6+
<style>
7+
/* 链接分类、链接鼠标划过字体颜色 */
8+
#linkCategory .category-button:hover, .link-grid .link:hover {
9+
color: ${settings.hover_color?default('#dc3545')} !important;
10+
}
11+
12+
/* 链接分类被激活的时候 */
13+
.category-active {
14+
color: ${settings.hover_color?default('#dc3545')} !important;
15+
}
16+
</style>
17+
18+
<#--这个列表初始化隐藏,用JS来做显示操作-->
19+
<#include "module/links/hide_list.ftl"/>
20+
21+
<#--主容器-->
22+
<div class="container px-md-2 px-3 pt-3 bg-white">
23+
<div id="linkBox" style="display: none;" class="row py-3">
24+
<#--左边的分类盒子-->
25+
<div id="left" class="col-md-3 mb-4">
26+
<#include "module/links/left.ftl">
27+
</div>
28+
<div id="right" class="col-md-9 mt-md-0 mt-3">
29+
<#include "module/links/right.ftl">
30+
</div>
31+
</div>
32+
<div id="emptyBox" style="display: none;">
33+
<div>
34+
<div class="d-flex flex-column align-items-center mt-2 pt-5">
35+
<span class="text-muted"><i class="fas fa-inbox fa-7x"></i></span>
36+
<span class="text-muted mt-4 mb-5">
37+
还没有链接,回<a class="font-weight-bold" href="${context!}">主页</a>看看吧
38+
</span>
39+
</div>
40+
</div>
41+
</div>
42+
</div>
43+
</@layout>
44+
<script src="${static!}/source/js/links.js"></script>

module/archives/archive_item.ftl

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<#--一个存档列表项ok-->
2+
<#macro archiveItem archive>
3+
<#--对话框-->
4+
<div class="title-list-item">
5+
<div class="d-flex mb-3">
6+
<i class="user-avatar rounded-circle"
7+
style="display: block;
8+
width: 2.5rem; height: 2.5rem;
9+
background-image: url('${user.avatar!}');
10+
background-size: cover;"></i>
11+
<div class="dialogue-box rounded">
12+
<h3 id="${archive.year?c}年${archive.month?c}月" class="section-title">
13+
<span>${archive.year?c}${archive.month?c}月</span> 归档
14+
</h3>
15+
</div>
16+
</div>
17+
<#--列表项-->
18+
<ul class="title-list">
19+
<#list archive.posts?sort_by("createTime")?reverse as post>
20+
<li class="d-flex flex-sm-row flex-column justify-content-between pr-3">
21+
<a href="${context!}/archives/${post.url!}">${post.title!}</a>
22+
<small class="text-muted">${post.createTime?string["yyyy年MM月dd日"]!}</small>
23+
</li>
24+
</#list>
25+
</ul>
26+
</div>
27+
</#macro>

module/archives/left.ftl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<#--存档界面左边ok-->
2+
<#include "archive_item.ftl">
3+
<div class="pr-lg-5 mt-lg-2 mt-3">
4+
<@postTag method="archiveMonth">
5+
<#list archives as archive>
6+
<@archiveItem archive=archive/>
7+
</#list>
8+
</@postTag>
9+
</div>

0 commit comments

Comments
 (0)