add dedicated projects section template
This commit is contained in:
parent
084c8f0eac
commit
9fa4b5a1ba
2 changed files with 18 additions and 0 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,3 +28,4 @@ hugo.linux
|
|||
*.vsix
|
||||
|
||||
.DS_Store
|
||||
.vscode/
|
||||
|
|
17
layouts/projects/section.html
Normal file
17
layouts/projects/section.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
{{ define "page" }}
|
||||
<content>
|
||||
<h1>{{ .Title }}</h1>
|
||||
<p>{{ .Content }}</p>
|
||||
{{ range .Pages }}
|
||||
<div class="section-page-item">
|
||||
<h3>{{ .Title }}</h3>
|
||||
<div class="details">
|
||||
<time class="float-left">{{ .PublishDate | time.Format ":date_medium" }}</time>
|
||||
</div>
|
||||
|
||||
<div class="summary">{{ .Summary }}</div>
|
||||
<a href="{{ .RelPermalink }}">Read more →</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</content>
|
||||
{{ end }}
|
Loading…
Reference in a new issue