Initial migration to new theme

This commit is contained in:
Salar Rahmanian 2020-09-06 22:07:03 -07:00
parent 5ce643146c
commit 83e5d66863
27 changed files with 224 additions and 511 deletions

View file

@ -1,32 +1,28 @@
{{ define "content" -}}
<article class="post bg-white">
<!-- post-header -->
<header class="post-header">
<h1 class="post-title">{{ .Title }}</h1>
{{ partial "post/i18nlist.html" . }}
<div class="post-meta">
<!-- <time datetime="{{ .Date.Format "2006-01-02" }}" class="post-time"> -->
<!-- <!-1- {{ .Date.Format (.Site.Params.dateFormatToUse | default "2006-01-02") }} -1-> -->
<!-- </time> -->
</div>
</header>
<!-- TOC -->
{{ partial "post/toc.html" . }}
<!-- Content -->
<div class="post-content">
{{ .Content }}
</div>
<!-- Copyright -->
{{ partial "post/copyright.html" . }}
<!-- Reward -->
{{ partial "post/reward.html" . }}
</article>
<!-- Comments -->
{{ partial "comments.html" . }}
{{- define "main" }}
{{- $scratch := newScratch }}
{{- if isset .Params "image" }}
{{- $scratch.Set "image" .Params.image }}
{{- else }}
{{ $scratch.Set "image" .Site.Params.fallBackOgImage }}
{{- end }}
{{- $image := $scratch.Get "image" }}
{{- $bg := (path.Join "images" $image | absLangURL) }}
<div class = 'grid-inverse wrap content'>
<article class='post_content'>
<h1 class='post_title'>{{ .Title }}</h1>
{{- partial "post-meta" . }}
{{ partial "share" . }}
{{ with .Params.featureImage }}
<img src = '{{ . }}' class="image_featured">
{{ end }}
{{ if .Params.toc }}
<h2>Overview</h2>
{{ .TableOfContents }}
{{ end }}
{{- .Content }}
</article>
{{- partial "sidebar" . }}
<!-- Comments -->
{{ partial "comments.html" . }}
</div>
{{- end }}