mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-04-16 05:38:33 +02:00
Update: contact page added, about page removed
This commit is contained in:
@@ -1,14 +1,11 @@
|
||||
{{ define "main" }}
|
||||
|
||||
<div class="breadcrumbs">
|
||||
You are here:
|
||||
<a href="{{ "/" | relURL }}">Home</a> /
|
||||
<a href="{{ "/categories/" | relURL }}">Categories</a> /
|
||||
<span>{{ .Title }}</span>
|
||||
</div>
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
<h1>{{ .Title }}</h1>
|
||||
|
||||
<div style="margin-bottom: 2rem;"></div>
|
||||
|
||||
<section class="posts-list">
|
||||
{{ range .Pages.ByDate.Reverse }}
|
||||
{{ partial "main/dates.html" . }}
|
||||
|
||||
5
layouts/contact.html
Normal file
5
layouts/contact.html
Normal file
@@ -0,0 +1,5 @@
|
||||
{{ define "main" }}
|
||||
|
||||
{{ .Content }}
|
||||
|
||||
{{ end }}
|
||||
3
layouts/home.html
Normal file
3
layouts/home.html
Normal file
@@ -0,0 +1,3 @@
|
||||
{{ define "main" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
21
layouts/section.html
Normal file
21
layouts/section.html
Normal file
@@ -0,0 +1,21 @@
|
||||
{{ define "main" }}
|
||||
{{ $pages := .Pages }}
|
||||
{{ $sectionPagerSize := or site.Params.sectionPagerSize 10 }}
|
||||
{{ $paginator := .Paginate $pages $sectionPagerSize }}
|
||||
{{ .Content }}
|
||||
<h1>All Posts</h1>
|
||||
{{ range $paginator.Pages }}
|
||||
<h2 class="home-post-title"><a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a></h2>
|
||||
{{ partial "main/dates.html" . }}
|
||||
{{ with .Summary }}
|
||||
{{- /*
|
||||
Create deterministic summary output for styling.
|
||||
See https://github.com/gohugoio/hugo/issues/8910
|
||||
*/ -}}
|
||||
<p class="summary">{{ . | plainify | htmlUnescape | chomp | truncate 150 }}</p>
|
||||
{{- end }}
|
||||
{{ end }}
|
||||
<nav class="paginator">
|
||||
{{- partial "pagination.html" . }} {{/* embedded template */}}
|
||||
</nav>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user