Skip to content

Commit a8a6c91

Browse files
committed
Initial Commit
1 parent 1b3dc68 commit a8a6c91

File tree

95 files changed

+5246
-0
lines changed

Some content is hidden

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

95 files changed

+5246
-0
lines changed

.gitignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Hugo default output directory
2+
/public
3+
4+
## OS Files
5+
# Windows
6+
Thumbs.db
7+
ehthumbs.db
8+
Desktop.ini
9+
$RECYCLE.BIN/
10+
11+
# OSX
12+
.DS_Store
13+
14+
# Linux
15+
.directory

LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 LIUZHICHAO.COM
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

LICENSE.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 LIUZHICHAO.COM
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of
6+
this software and associated documentation files (the "Software"), to deal in
7+
the Software without restriction, including without limitation the rights to
8+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9+
the Software, and to permit persons to whom the Software is furnished to do so,
10+
subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

archetypes/default.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
title: "{{ replace .Name "-" " " | title }}"
3+
date: {{ .Date }}
4+
draft: true
5+
description:
6+
categories:
7+
-
8+
tags:
9+
-
10+
featured_image:
11+
author:""
12+
---

assets/css/_common/_core/base.scss

+134
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
/** Font **/
2+
3+
/* Lato */
4+
@import url(https://fonts.googleapis.com/css?family=Lato:100,300,400,700,900);
5+
6+
/* Montserrat */
7+
@import url(https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700,800);
8+
9+
/* Roborto */
10+
@import url(https://fonts.googleapis.com/css?family=Roboto:400,900);
11+
12+
13+
14+
15+
html {
16+
&::-webkit-scrollbar {
17+
width: 8px;
18+
height: 8px;
19+
}
20+
&::-webkit-scrollbar-thumb {
21+
height: 40px;
22+
background-color: #eee;
23+
border-radius: 16px;
24+
&:hover {
25+
background-color: #ddd;
26+
}
27+
}
28+
}
29+
30+
::selection {
31+
background: rgba(0, 149, 255, 0.1);
32+
}
33+
34+
html {
35+
font-family: "Roborto", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", STHeiti, "Microsoft Yahei", "WenQuanYi Micro Hei", Arial, Verdana, sans-serif;
36+
}
37+
38+
body {
39+
font-size: 11pt;
40+
font-weight: 400;
41+
line-height: 2em;
42+
background-color: $light-background-color;
43+
color: $light-font-color;
44+
&:before {
45+
content: "";
46+
background-repeat: no-repeat;
47+
background-position: center;
48+
opacity: 0.05;
49+
position: fixed;
50+
top: 0;
51+
left: 0;
52+
width: 100%;
53+
height: 100%;
54+
z-index: -1;
55+
-webkit-filter: grayscale(100%);
56+
-moz-filter: grayscale(100%);
57+
-ms-filter: grayscale(100%);
58+
-o-filter: grayscale(100%);
59+
filter: grayscale(100%);
60+
filter: gray;
61+
}
62+
63+
&.dark-theme {
64+
background-color: $dark-background-color;
65+
color: $dark-font-color;
66+
}
67+
}
68+
69+
a {
70+
color: $light-global-link-color;
71+
text-decoration: none;
72+
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
73+
&:hover {
74+
color: $light-global-link-hover-color;
75+
text-decoration: none;
76+
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
77+
}
78+
79+
.dark-theme & {
80+
color: $dark-global-link-color;
81+
text-decoration: none;
82+
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
83+
84+
&:hover{
85+
color: $dark-global-link-hover-color;
86+
text-decoration: none;
87+
transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
88+
}
89+
}
90+
}
91+
92+
blockquote {
93+
font-size: 1rem;
94+
display: block;
95+
border-width: 1px 0;
96+
border-style: solid;
97+
border-color: $light-border-color;
98+
padding: 1.5em 1.2em 0.5em 1.2em;
99+
margin: 0 0 2em 0;
100+
position: relative;
101+
102+
&:before {
103+
content: '\201C';
104+
position: absolute;
105+
top: 0em;
106+
left: 50%;
107+
transform: translate(-50%, -50%);
108+
background: #fff;
109+
width: 3rem;
110+
height: 2rem;
111+
font: 6em/1.08em 'PT Sans', sans-serif;
112+
color: $light-post-link-color;
113+
text-align: center;
114+
115+
.dark-theme &{
116+
color: $dark-post-link-color;
117+
}
118+
}
119+
&:after {
120+
content: "#blockquote" attr(cite);
121+
display: block;
122+
text-align: right;
123+
font-size: 0.875em;
124+
color: $light-post-link-color;
125+
126+
.dark-theme &{
127+
color: $dark-post-link-color;
128+
}
129+
}
130+
131+
.dark-theme & {
132+
border-color: $dark-border-color;
133+
}
134+
}

assets/css/_common/_core/layout.scss

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
/** Layout **/
2+
3+
.wrapper {
4+
display: flex;
5+
flex-direction: column;
6+
min-height: 100vh;
7+
width: 100%;
8+
}
9+
10+
.navbar {
11+
height: 4rem;
12+
line-height: 4rem;
13+
width: 100%;
14+
.container {
15+
width: auto;
16+
max-width: 1200px;
17+
text-align: center;
18+
margin: 0 auto;
19+
display: flex;
20+
justify-content: space-between;
21+
}
22+
}
23+
24+
.main {
25+
flex: 1 0 auto;
26+
}
27+
.container{
28+
padding-left: 1em;
29+
padding-right: 1em;
30+
}
31+
32+
.footer {
33+
height: 4rem;
34+
width: 100%;
35+
text-align: center;
36+
line-height: 4rem;
37+
padding-top: 2em;
38+
}
39+
40+
41+
.notfound {
42+
font-size: 2em;
43+
transform: translateY(35vh);
44+
text-align: center;
45+
}

0 commit comments

Comments
 (0)