Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/4ever9/less.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAiden X <caichao.xu@gmail.com>2020-09-14 20:16:55 +0300
committerAiden X <caichao.xu@gmail.com>2020-09-14 20:16:55 +0300
commit09650d7d0bd215ab5da9d8dbbc7cdc91b9aec6f7 (patch)
treea7ee151f32966dd4f7b270b8161eade33c185231 /layouts
parent40afeee2aa91b0d2dd87817dfbd2f20f98eeef86 (diff)
build: prettier check
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html1
-rw-r--r--layouts/_default/baseof.html12
-rw-r--r--layouts/_default/single.html30
-rw-r--r--layouts/_default/taxonomy.html8
-rw-r--r--layouts/_default/terms.html2
-rw-r--r--layouts/index.html10
-rw-r--r--layouts/partials/footer.html21
-rw-r--r--layouts/partials/head.html26
-rw-r--r--layouts/partials/header.html26
9 files changed, 64 insertions, 72 deletions
diff --git a/layouts/404.html b/layouts/404.html
index e69de29..f1b1cb3 100644
--- a/layouts/404.html
+++ b/layouts/404.html
@@ -0,0 +1 @@
+404
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 0c2e761..9fa96ba 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,8 +1,8 @@
<html lang="en">
-{{ partial "head.html" . }}
-<body>
-{{ partial "header.html" . }}
-{{ block "main" . }} {{ end }}
-{{ partial "footer.html" . }}
-</body>
+ {{ partial "head.html" . }}
+ <body>
+ {{ partial "header.html" . }}
+ {{ block "main" . }} {{ end }}
+ {{ partial "footer.html" . }}
+ </body>
</html>
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 0ef0cce..31e3d1f 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -3,33 +3,31 @@
<div class="row">
<div class="main single">
<div class="single-body column">
- <div class="single-title">
- {{.Title}}
- </div>
+ <div class="single-title">{{ .Title }}</div>
<div class="single-date">
{{ .Date.Format "2006-01-02" }}
</div>
<div class="single-tags">
{{ range (.GetTerms "tags") }}
- <a class="single-tag" href="{{ .Permalink }}">#{{ .LinkTitle }}</a>
+ <a class="single-tag" href="{{ .Permalink }}">
+ #{{ .LinkTitle }}
+ </a>
{{ end }}
</div>
- <div class="single-content">
- {{.Content}}
- </div>
+ <div class="single-content">{{ .Content }}</div>
</div>
-
</div>
- <script src="https://utteranc.es/client.js"
- repo="4ever9/blog-comments"
- issue-term="pathname"
- theme="github-light"
- crossorigin="anonymous"
- async>
- </script>
+ <script
+ src="https://utteranc.es/client.js"
+ repo="4ever9/blog-comments"
+ issue-term="pathname"
+ theme="github-light"
+ crossorigin="anonymous"
+ async
+ ></script>
<div class="single-toc-wrap">
<div class="single-toc"></div>
</div>
</div>
</div>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/_default/taxonomy.html b/layouts/_default/taxonomy.html
index 1d20ddd..0d13795 100644
--- a/layouts/_default/taxonomy.html
+++ b/layouts/_default/taxonomy.html
@@ -2,15 +2,15 @@
<div class="container">
<div class="main">
<div class="taxonomy-name">
- #{{.Name}}(共{{ len .Data.Pages }}篇)
+ #{{ .Name }}(共{{ len .Data.Pages }}篇)
</div>
{{ range (.RegularPages.GroupByDate "2006") }}
<div class="posts">
<div class="year">{{ .Key }}</div>
{{ range .Pages }}
<div class="post">
- <a class="post-title" href="{{.Permalink}}">
- {{.Title}}
+ <a class="post-title" href="{{ .Permalink }}">
+ {{ .Title }}
</a>
<span class="post-date">
{{ .Date.Format "Jan 02" }}
@@ -21,4 +21,4 @@
{{ end }}
</div>
</div>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/_default/terms.html b/layouts/_default/terms.html
index b9cde12..de31f06 100644
--- a/layouts/_default/terms.html
+++ b/layouts/_default/terms.html
@@ -1 +1 @@
-term \ No newline at end of file
+term
diff --git a/layouts/index.html b/layouts/index.html
index 7e94c2d..70a8a61 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -6,16 +6,16 @@
<div class="year">{{ .Key }}</div>
{{ range .Pages }}
<div class="post">
- <a class="post-title" href="{{.Permalink}}">
- {{.Title}}
+ <a class="post-title" href="{{ .Permalink }}">
+ {{ .Title }}
</a>
<span class="post-date">
- {{ .Date.Format "Jan 02" }}
- </span>
+ {{ .Date.Format "Jan 02" }}
+ </span>
</div>
{{ end }}
</div>
{{ end }}
</div>
</div>
-{{ end }} \ No newline at end of file
+{{ end }}
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
index 90a5026..5f7fe30 100644
--- a/layouts/partials/footer.html
+++ b/layouts/partials/footer.html
@@ -2,33 +2,18 @@
<footer>
<div>Less is More</div>
<span class="copyright">
- {{ $year := "2020" }}
+ {{ $year := "2020" }}
{{ $created := $.Site.Params.siteCreated }}
{{ if and $created (lt $created now.Year) }}
{{ $year = printf "%d - %d" $created now.Year }}
- {{ else }}
+ {{ else }}
{{ $year = printf "%d" now.Year }}
{{ end }}
- © {{ $year }}
+ © {{ $year }}
</span>
<a href="">粤ICP备120011798号</a>
</footer>
</div>
-</body>
<script src="https://cdn.staticfile.org/tocbot/4.11.2/tocbot.min.js"></script>
-<script>
- tocbot.init({
- // Where to render the table of contents.
- tocSelector: '.single-toc',
- // Where to grab the headings to build the table of contents.
- contentSelector: '.single-content',
- // Which headings to grab inside of the contentSelector element.
- headingSelector: 'h1, h2, h3',
- // For headings inside relative or absolute positioned containers within content.
- hasInnerContainers: false,
- collapseDepth: 4
- });
-</script>
{{ $built := resources.Get "js/less.js" | js.Build "less.js" }}
<script type="text/javascript" src="{{ $built.RelPermalink }}"></script>
-</html> \ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
index 5db9264..a89bc6c 100644
--- a/layouts/partials/head.html
+++ b/layouts/partials/head.html
@@ -1,13 +1,21 @@
<head>
- <meta charset="UTF-8">
- <meta name="viewport"
- content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
- <meta http-equiv="X-UA-Compatible" content="ie=edge">
+ <meta charset="UTF-8" />
+ <meta
+ name="viewport"
+ content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"
+ />
+ <meta http-equiv="X-UA-Compatible" content="ie=edge" />
{{ $options := (dict "targetPath" "less.css" "outputStyle" "compressed" "enableSourceMap" true) }}
{{ $style := resources.Get "scss/less.scss" | resources.ToCSS $options }}
- <link href="/images/favicon.png" rel="icon" type="image/ico">
- <link rel="stylesheet" href="{{ $style.Permalink }}">
- <link rel="stylesheet" href="//at.alicdn.com/t/font_1995642_5r07rt5x862.css">
- <link rel="stylesheet" href="https://lib.baomitu.com/tocbot/4.11.2/tocbot.min.css">
+ <link href="/images/favicon.png" rel="icon" type="image/ico" />
+ <link rel="stylesheet" href="{{ $style.Permalink }}" />
+ <link
+ rel="stylesheet"
+ href="//at.alicdn.com/t/font_1995642_5r07rt5x862.css"
+ />
+ <link
+ rel="stylesheet"
+ href="https://lib.baomitu.com/tocbot/4.11.2/tocbot.min.css"
+ />
<title>面向自由编程</title>
-</head> \ No newline at end of file
+</head>
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
index 1c1ae59..5446237 100644
--- a/layouts/partials/header.html
+++ b/layouts/partials/header.html
@@ -1,15 +1,15 @@
<div class="container">
- <div class="nav">
- <a class="logo" href="/">
- <img src="/images/logo.png" alt="" />
- </a>
- <ul class="nav-menu">
- {{range $menu := .Site.Menus.main}}
- <li>
- <a href="{{.URL}}">{{.Name}}</a>
- </li>
- {{end}}
- </ul>
- <i class="icon icon-moon" id="btn-dark"></i>
- </div>
+ <div class="nav">
+ <a class="logo" href="/">
+ <img src="/images/logo.png" alt="" />
+ </a>
+ <ul class="nav-menu">
+ {{ range $menu := .Site.Menus.main }}
+ <li>
+ <a href="{{ .URL }}">{{ .Name }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ <i class="icon icon-moon" id="btn-dark"></i>
+ </div>
</div>