- Updated author format in content files - Added section field to content files - Simplified categories format - Removed no-category.html layout - Updated list.html and single.html layouts - Updated index.html layout - Updated generate-content.js script - Do not index content with git
38 lines
1.1 KiB
HTML
38 lines
1.1 KiB
HTML
{{ define "main" }}
|
|
|
|
<article class="post">
|
|
<header class="post-header">
|
|
<h1 class="post-title">{{ .Title }}</h1>
|
|
<div class="post-meta">
|
|
<time datetime="{{ .Date.Format "2006-01-02" }}">{{ .Date.Format "January 2, 2006" }}</time>
|
|
{{ if .Params.author }}
|
|
<span class="post-author">{{ .Params.author }}</span>
|
|
{{ end }}
|
|
<div class="post-categories">
|
|
{{ with .Params.categories }}
|
|
{{ range . }}
|
|
<a href="/categories/{{ . | urlize }}" class="category">{{ . }}</a>
|
|
{{ end }}
|
|
{{ else }}
|
|
<a href="/categories/non-classe" class="category">Non classé</a>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
{{ if .Params.featured_image }}
|
|
<img src="{{ .Params.featured_image }}" alt="{{ .Title }}" class="featured-image">
|
|
{{ end }}
|
|
</header>
|
|
|
|
<div class="post-content">
|
|
{{ .Content }}
|
|
</div>
|
|
|
|
{{ if .Params.tags }}
|
|
<div class="post-tags">
|
|
{{ range .Params.tags }}
|
|
<a href="/tags/{{ . | urlize }}" class="tag">#{{ . }}</a>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
</article>
|
|
{{ end }} |