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-08-10 11:13:49 +0300
committerAiden X <caichao.xu@gmail.com>2020-08-10 11:13:49 +0300
commitb0b26a9eb4e687c3fe37c050fe45a87fe63ac3f7 (patch)
tree5acaa887dcbb00fa1fce5dbeb5f59fddd0cdd20a /layouts
feat(*): init project
Diffstat (limited to 'layouts')
-rw-r--r--layouts/404.html0
-rw-r--r--layouts/_default/baseof.html11
-rw-r--r--layouts/_default/list.html0
-rw-r--r--layouts/_default/single.html17
-rw-r--r--layouts/index.html28
-rw-r--r--layouts/partials/footer.html5
-rw-r--r--layouts/partials/head.html0
-rw-r--r--layouts/partials/header.html33
8 files changed, 94 insertions, 0 deletions
diff --git a/layouts/404.html b/layouts/404.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/404.html
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
new file mode 100644
index 0000000..5f8e2ec
--- /dev/null
+++ b/layouts/_default/baseof.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html>
+ {{- partial "head.html" . -}}
+ <body>
+ {{- partial "header.html" . -}}
+ <div id="content">
+ {{- block "main" . }}{{- end }}
+ </div>
+ {{- partial "footer.html" . -}}
+ </body>
+</html>
diff --git a/layouts/_default/list.html b/layouts/_default/list.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/_default/list.html
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
new file mode 100644
index 0000000..edeecda
--- /dev/null
+++ b/layouts/_default/single.html
@@ -0,0 +1,17 @@
+{{ partial "header.html" . }}
+
+<div class="container">
+ <div class="row">
+ <div class="column is-md-8 is-offset-2 main">
+ <div class="single">
+ <div class="single-title">
+ {{.Title}}
+ </div>
+ {{.Content}}
+
+ </div>
+ </div>
+ </div>
+</div>
+
+{{partial "footer.html" . }}
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..9655e8e
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,28 @@
+{{ partial "header.html" . }}
+
+<div class="container">
+ <div class="row">
+ <div class="column is-md-8 is-offset-2 main">
+ {{ $paginator := .Paginate (where .Site.RegularPages "Section" "posts") }}
+ {{ range $paginator.Pages }}
+ <div class="post">
+ <div class="post-left">
+ <span class="post-date">
+ {{ .Date.Format "01-02" }}
+ </span>
+ </div>
+ <div class="post-right">
+ <a class="post-title" href="{{.Permalink}}">
+ {{.Title}}
+ </a>
+ <div class="post-summary">
+ {{.Summary}}
+ </div>
+ </div>
+ </div>
+ {{ end }}
+ </div>
+ </div>
+</div>
+
+{{ partial "footer.html" . }} \ No newline at end of file
diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html
new file mode 100644
index 0000000..9492c2b
--- /dev/null
+++ b/layouts/partials/footer.html
@@ -0,0 +1,5 @@
+<footer>
+
+</footer>
+</body>
+</html> \ No newline at end of file
diff --git a/layouts/partials/head.html b/layouts/partials/head.html
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/layouts/partials/head.html
diff --git a/layouts/partials/header.html b/layouts/partials/header.html
new file mode 100644
index 0000000..35b5cf7
--- /dev/null
+++ b/layouts/partials/header.html
@@ -0,0 +1,33 @@
+<!doctype html>
+<html lang="en">
+<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">
+ {{ $sass := resources.Get "scss/less.scss" }}
+ {{ $style := $sass | resources.ToCSS }}
+ <link rel="stylesheet" href="{{ $style.Permalink }}">
+ <link rel="stylesheet" href="//at.alicdn.com/t/font_1995642_svj67i6zduq.css">
+ <title>常·九</title>
+</head>
+<body>
+<div class="container">
+ <div class="nav">
+ <figure class="logo">
+ <img src="/images/logo.png" alt="">
+ </figure>
+ <ul class="nav-menu">
+ <li>
+ <a href="">首页</a>
+ </li>
+ <li>
+ <a href="">系列</a>
+ </li>
+ <li>
+ <a href="">关于</a>
+ </li>
+ </ul>
+ <i class="icon icon-search"></i>
+ </div>
+</div> \ No newline at end of file