init: hugo site with mytheme
This commit is contained in:
15
themes/mytheme/layouts/_default/index.html
Normal file
15
themes/mytheme/layouts/_default/index.html
Normal file
@@ -0,0 +1,15 @@
|
||||
{{ define "main" }}
|
||||
<div class="home-hero">
|
||||
<h1>{{ .Site.Title }}</h1>
|
||||
<p class="hero-sub">{{ .Site.Params.subtitle }}</p>
|
||||
</div>
|
||||
<div class="post-list">
|
||||
{{ range first 10 (where .Site.RegularPages "Type" "posts") }}
|
||||
<div class="post-card">
|
||||
<h2><a href="{{ .RelPermalink }}">{{ .Title }}</a></h2>
|
||||
<div class="post-meta">{{ .Date.Format "2006-01-02" }}{{ with .Params.categories }} · {{ . }}{{ end }}</div>
|
||||
<p class="post-summary">{{ with .Description }}{{ . }}{{ else }}{{ .Summary }}{{ end }}</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user