aboutsummaryrefslogtreecommitdiff
path: root/layouts/index.html
diff options
context:
space:
mode:
authorTrack3 <pengliabc@live.cn>2018-10-23 13:15:50 +0800
committerTrack3 <pengliabc@live.cn>2018-10-23 13:15:50 +0800
commit44dbcd6f34c676cefbacf12f18d9883c597a681a (patch)
tree86610dc396b64baf3f2c4ef00a3b84dc6c1d2bde /layouts/index.html
downloadhermit-44dbcd6f34c676cefbacf12f18d9883c597a681a.tar.gz
First commit
Diffstat (limited to 'layouts/index.html')
-rw-r--r--layouts/index.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/layouts/index.html b/layouts/index.html
new file mode 100644
index 0000000..702c2c4
--- /dev/null
+++ b/layouts/index.html
@@ -0,0 +1,27 @@
+{{ define "main" }}
+ <div id="spotlight" class="animated fadeIn">
+ <div id="home-center">
+ <h1 id="home-title">{{ .Site.Title }}</h1>
+ {{- with .Site.Params.homeSubtitle }}
+ <p id="home-subtitle">{{.}}</p>
+ {{- end }}
+ {{- with .Site.Params.social }}
+ <div id="home-social">
+ {{ partialCached "social-icons.html" . }}
+ </div>
+ {{- end }}
+ <nav id="home-nav" class="site-nav">
+ {{- range .Site.Menus.main }}
+ <a href="{{ .URL }}">{{ .Name }}</a>
+ {{- end }}
+ </nav>
+ </div>
+ <div id="home-footer">
+ <p>&copy; 2018 <a href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>. <a href="{{ "posts/index.xml" | absURL }}" target="_blank" title="rss"><svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-rss"><path d="M4 11a9 9 0 0 1 9 9"></path><path d="M4 4a16 16 0 0 1 16 16"></path><circle cx="5" cy="19" r="1"></circle></svg></a></p>
+ </div>
+ </div>
+{{ end }}
+
+{{ define "footer" }}
+ <script>let haveHeader = false;</script>
+{{ end }} \ No newline at end of file