Compare commits
15 Commits
master
...
09b81b4c1e
| Author | SHA1 | Date | |
|---|---|---|---|
|
09b81b4c1e
|
|||
|
44604f2dc4
|
|||
|
2a36ad6fbc
|
|||
|
45fc1a2d56
|
|||
|
96a4c93c65
|
|||
|
40a5c9da9f
|
|||
|
c691742260
|
|||
|
3eca8c1fce
|
|||
|
b69817378d
|
|||
|
92dcce0790
|
|||
|
3ef80768b4
|
|||
|
7407765b42
|
|||
|
d33c84a200
|
|||
|
05f1eaf95a
|
|||
|
281a3bec39
|
@@ -1,3 +1,6 @@
|
|||||||
|
html {
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
body {
|
body {
|
||||||
font-family: Avenir, HelveticaNeue-Light, "Helvetica Neue Light",
|
font-family: Avenir, HelveticaNeue-Light, "Helvetica Neue Light",
|
||||||
"Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
|
"Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
|
||||||
@@ -11,20 +14,26 @@ body {
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
body.single-body {
|
||||||
|
justify-content: space-between;
|
||||||
}
|
}
|
||||||
p {
|
p {
|
||||||
margin: 1.5em 0;
|
margin: 1.5em 0;
|
||||||
}
|
}
|
||||||
.home-header {
|
.home-header {
|
||||||
min-height: 26rem;
|
|
||||||
max-width: 50rem;
|
max-width: 50rem;
|
||||||
margin: 0 -1.2rem -5rem -1.2rem;
|
margin: 3rem 0;
|
||||||
padding: 1.2rem;
|
padding: 1.2rem;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
|
background-color: pink;
|
||||||
|
border-radius: 2em;
|
||||||
|
box-shadow: 0 0 1em 0.039em;
|
||||||
}
|
}
|
||||||
.home-faceshot-card {
|
.home-faceshot-card {
|
||||||
align-self: center;
|
align-self: center;
|
||||||
@@ -293,13 +302,18 @@ p {
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
.pagination-nav {
|
.pagination-nav {
|
||||||
margin: 2em 0;
|
padding: 2em 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 47rem;
|
max-width: 47rem;
|
||||||
}
|
}
|
||||||
/* .pagination-text {
|
.pagination-text {
|
||||||
font-family: 'LatoLatinWebMedium';
|
background-color: pink;
|
||||||
} */
|
padding: 0.5rem;
|
||||||
|
border-radius: 0.5rem;
|
||||||
|
box-shadow: 0 0 0.5rem;
|
||||||
|
text-decoration: none;
|
||||||
|
color: darkred;
|
||||||
|
}
|
||||||
.pagination-newer {
|
.pagination-newer {
|
||||||
float:left;
|
float:left;
|
||||||
}
|
}
|
||||||
@@ -368,7 +382,7 @@ h1, h2, h3, h4, h5, h6 {
|
|||||||
}
|
}
|
||||||
img {
|
img {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
max-width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
margin: 1.5em 0;
|
margin: 1.5em 0;
|
||||||
}
|
}
|
||||||
@@ -441,11 +455,10 @@ footer {
|
|||||||
height: 17rem;
|
height: 17rem;
|
||||||
max-width: 50rem;
|
max-width: 50rem;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: -10rem;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-flow: row wrap;
|
flex-flow: column;
|
||||||
justify-content: space-evenly;
|
justify-content: space-evenly;
|
||||||
align-items: flex-end;
|
align-items: center;
|
||||||
color: white;
|
color: white;
|
||||||
background-position: 40% 0%;
|
background-position: 40% 0%;
|
||||||
background-size: 50rem;
|
background-size: 50rem;
|
||||||
@@ -453,6 +466,12 @@ footer {
|
|||||||
.footer-link {
|
.footer-link {
|
||||||
margin: 1rem 0;
|
margin: 1rem 0;
|
||||||
}
|
}
|
||||||
|
.footer-home-icon {
|
||||||
|
max-width: 30rem;
|
||||||
|
border: 0.39rem solid pink;
|
||||||
|
border-radius: 4rem;
|
||||||
|
margin: 0;
|
||||||
|
}
|
||||||
.footer-icon {
|
.footer-icon {
|
||||||
max-width: 3rem;
|
max-width: 3rem;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
|||||||
BIN
assets/icons/home_button.jpg
Normal file
BIN
assets/icons/home_button.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 25 KiB |
BIN
assets/img/aquarium.jpg
Normal file
BIN
assets/img/aquarium.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 64 KiB |
BIN
assets/img/negi.jpg
Normal file
BIN
assets/img/negi.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
BIN
assets/img/negi2.jpg
Executable file
BIN
assets/img/negi2.jpg
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
@@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="{{ .Site.LanguageCode }}" dir="ltr">
|
||||||
|
{{ partial "head.html" . }}
|
||||||
|
<body class="single-body">
|
||||||
|
{{ partial "nav-bar.html" . }}
|
||||||
|
<main class="content side-text-padding">
|
||||||
|
<article class="post {{ if ne .Params.dropcap false }}dropcase{{ end }}">
|
||||||
|
<header class="post-header">
|
||||||
|
<h1 class="post-title">{{ .Title }}</h1>
|
||||||
|
</header>
|
||||||
|
<img src="https://http.cat/404.jpg" />
|
||||||
|
<h2 id="title"><a href="{{ "/" | relURL }}">Go Home</a></h2>
|
||||||
|
</article>
|
||||||
|
{{ template "_internal/disqus.html" . }}
|
||||||
|
</main>
|
||||||
|
<nav class="end-nav side-padding">
|
||||||
|
</nav>
|
||||||
|
{{ partial "footer.html" . }}
|
||||||
|
{{ partial "scripts.html" . }}
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
{{ partial "nav-bar.html" . }}
|
{{ partial "nav-bar.html" . }}
|
||||||
<main class="card-container side-gutter">
|
<main class="card-container side-gutter">
|
||||||
{{ if or (not (eq .Description "")) (not (eq .Title "")) -}}
|
{{ if or (not (eq .Description "")) (not (eq .Title "")) -}}
|
||||||
<header class="home-header" style="background-image: url('{{ "img/home-blob.svg" | absURL }}');">
|
<header class="home-header">
|
||||||
<div class="home-blob-text-container">
|
<div class="home-blob-text-container">
|
||||||
{{ with .Title }}<h1 class="home-blob-title">{{ . }}</h1>{{ end }}
|
{{ with .Title }}<h1 class="home-blob-title">{{ . }}</h1>{{ end }}
|
||||||
{{ with .Description }}<p class="home-blob-text">{{ . }}</p>{{ end }}
|
{{ with .Description }}<p class="home-blob-text">{{ . }}</p>{{ end }}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
href="{{ .Permalink }}" class="card blog-card bc-next" rel="bookmark" >
|
href="{{ .Permalink }}" class="card blog-card bc-next" rel="bookmark" >
|
||||||
{{ with .Resources.GetMatch "featuredImage" }}
|
{{ with .Resources.GetMatch "featuredImage" }}
|
||||||
<div class="card-img-container">
|
<div class="card-img-container">
|
||||||
<p class="card-img-overlay">Next Article</p>
|
<p class="card-img-overlay">下一篇文章</p>
|
||||||
<picture>
|
<picture>
|
||||||
{{ $thumbnail := .Resize "400x Lanczos" }}
|
{{ $thumbnail := .Resize "400x Lanczos" }}
|
||||||
{{ $thumbnail_2 := .Resize "800x Lanczos" }}
|
{{ $thumbnail_2 := .Resize "800x Lanczos" }}
|
||||||
@@ -16,8 +16,8 @@
|
|||||||
<h2 class="card-title">{{ .Title }}</h2>
|
<h2 class="card-title">{{ .Title }}</h2>
|
||||||
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" | htmlUnescape }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}</p>
|
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" | htmlUnescape }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}</p>
|
||||||
<div class="card-subtext muted-text">
|
<div class="card-subtext muted-text">
|
||||||
<p>Posted <time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "Jan 2, 2006" }}</time></p>
|
<p>发布于<time datetime="{{ .PublishDate.Format "2006-01-02 12:00" }}">{{ .PublishDate.Format "2006年1月2日" }}</time></p>
|
||||||
{{ if (isset .Params "categories") }}<p>{{ range .Params.categories }}#{{ . }} {{ end }}</p>{{ end }}
|
{{ if (isset .Params "categories") }}<p>{{ range .Params.categories }}#{{ . }} {{ end }}</p>{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -15,8 +15,8 @@
|
|||||||
<h2 class="card-title">{{ .Title }}</h2>
|
<h2 class="card-title">{{ .Title }}</h2>
|
||||||
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" | htmlUnescape }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}</p>
|
<p class="card-text">{{ if (isset .Params "description") }}{{ index .Params "description" | htmlUnescape }}{{ else }}{{ .Summary | plainify | htmlUnescape }}{{ end }}</p>
|
||||||
<div class="card-subtext muted-text">
|
<div class="card-subtext muted-text">
|
||||||
<p>Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>
|
<p>发布于<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006年1月2日" }}</time></p>
|
||||||
{{ if (isset .Params "categories") }}<p>{{ range .Params.categories }}#{{ . | urlize | title }} {{ end }}</p>{{ end }}
|
{{ if (isset .Params "categories") }}<p>{{ range .Params.categories }}#{{ . | urlize | title }} {{ end }}</p>{{ end }}
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -7,7 +7,7 @@
|
|||||||
<article class="post {{ if ne .Params.dropcap false }}dropcase{{ end }}">
|
<article class="post {{ if ne .Params.dropcap false }}dropcase{{ end }}">
|
||||||
<header class="post-header">
|
<header class="post-header">
|
||||||
<h1 class="post-title">{{ .Title }}</h1>
|
<h1 class="post-title">{{ .Title }}</h1>
|
||||||
{{ if isset .Params "date" }}<p class="post-date">Posted <time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "Jan 2, 2006" }}</time></p>{{ end }}
|
{{ if isset .Params "date" }}<p class="post-date">发布于<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "2006年1月2日" }}</time></p>{{ end }}
|
||||||
</header>
|
</header>
|
||||||
{{ with .Resources.GetMatch "featuredImage" -}}
|
{{ with .Resources.GetMatch "featuredImage" -}}
|
||||||
<picture class="post-figure">
|
<picture class="post-figure">
|
||||||
@@ -26,7 +26,7 @@
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ if .Params.toc -}}
|
{{ if .Params.toc -}}
|
||||||
<h2>Contents</h2>
|
<h2>目录</h2>
|
||||||
{{ .TableOfContents }}
|
{{ .TableOfContents }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{ .Content }}
|
{{ .Content }}
|
||||||
|
|||||||
@@ -1,9 +1,10 @@
|
|||||||
<footer class="side-padding" style="background-image: url('{{ "img/home-blob-flip.svg" | absURL }}');">
|
<footer class="side-padding" style="background-image: url('{{ "img/home-blob-flip.svg" | absURL }}');">
|
||||||
<a href="{{ $.Site.BaseURL }}" class="footer-link">
|
<a href="{{ $.Site.BaseURL }}" class="footer-link">
|
||||||
{{ with resources.Get "icons/home-page.png" }}
|
{{ with resources.Get "icons/home_button.jpg" }}
|
||||||
<img class="footer-icon" src="{{ .Permalink }}" alt="Home">
|
<img class="footer-home-icon" src="{{ .Permalink }}" alt="Home">
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</a>
|
</a>
|
||||||
|
<div style="display: flex; flex-direction: row; justify-content: space-evenly; width: 100%;">
|
||||||
{{ if isset $.Site.Params "github"}}
|
{{ if isset $.Site.Params "github"}}
|
||||||
<a href="{{ $.Site.Params.github }}" class="footer-link">
|
<a href="{{ $.Site.Params.github }}" class="footer-link">
|
||||||
{{ with resources.Get "icons/github.png" }}
|
{{ with resources.Get "icons/github.png" }}
|
||||||
@@ -18,4 +19,5 @@
|
|||||||
{{ end }}
|
{{ end }}
|
||||||
</a>
|
</a>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</footer>
|
</div>
|
||||||
|
</footer>
|
||||||
|
|||||||
@@ -23,7 +23,8 @@
|
|||||||
{{ partial "meta-tags.html" . }}
|
{{ partial "meta-tags.html" . }}
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ with resources.Get "css/katex.css" -}}
|
{{ with resources.Get "css/katex.css" -}}
|
||||||
<link href="{{ .Permalink }}" rel="stylesheet">
|
{{ $katexcss := resources.Get "css/katex.css" | minify }}
|
||||||
|
<link href="{{ $katexcss.Permalink }}" rel="stylesheet">
|
||||||
{{ end -}}
|
{{ end -}}
|
||||||
{{ $normalizeStyle := resources.Get "css/normalize.css" }}
|
{{ $normalizeStyle := resources.Get "css/normalize.css" }}
|
||||||
{{ $mainStyle := resources.Get "css/style.css" }}
|
{{ $mainStyle := resources.Get "css/style.css" }}
|
||||||
|
|||||||
@@ -1,8 +1,10 @@
|
|||||||
{{ with resources.Get "js/katex.js" }}
|
{{ with resources.Get "js/katex.js" }}
|
||||||
<script defer src="{{ .Permalink }}"></script>
|
{{ $katexjs := resources.Get "js/katex.js" | minify }}
|
||||||
|
<script defer src="{{ $katexjs.Permalink }}"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with resources.Get "js/auto-render.js" }}
|
{{ with resources.Get "js/auto-render.js" }}
|
||||||
<script defer src="{{ .Permalink }}" onload="renderMathInElement(document.body);"></script>
|
{{ $autorenderjs := resources.Get "js/auto-render.js" | minify }}
|
||||||
|
<script defer src="{{ $autorenderjs.Permalink }}" onload="renderMathInElement(document.body);"></script>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ $corejs := resources.Get "js/core.js" | minify }}
|
{{ $corejs := resources.Get "js/core.js" | minify }}
|
||||||
<script src="{{ $corejs.Permalink }}"></script>
|
<script src="{{ $corejs.Permalink }}"></script>
|
||||||
|
|||||||
Reference in New Issue
Block a user