breaking change in configuration
This commit is contained in:
parent
f1b32bd47e
commit
0ca65fbca5
20 changed files with 373 additions and 361 deletions
|
@ -1,10 +1,10 @@
|
|||
{{ define "main" }}
|
||||
<div class="container mx-auto">
|
||||
<h1 class="text-4xl font-extrabold mt-6 mb-6">{{ .Title }}</h1>
|
||||
<div class="mb-3 text-xs flex justify-between ">
|
||||
<div class="mb-3 text-sm flex justify-between ">
|
||||
<div>
|
||||
{{ if .Site.Params.displayDate }}
|
||||
Posted at — {{ dateFormat .Site.Params.timeformat .Date }}
|
||||
{{ T "post.at" }} — {{ .Date | time.Format (T "timeformat") }}
|
||||
{{ end }}
|
||||
{{ if .Draft }}
|
||||
<span class="ml-3 tag">
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
{{ define "main" }}
|
||||
<main class="container mx-auto">
|
||||
<h2 class="mt-8 text-3xl font-bold">{{ .Site.Params.iam }} {{ .Site.Author.name }}</h2>
|
||||
<p class="mt-0 mb-0">{{ .Site.Author.slogon }}</p>
|
||||
<h2 class="mt-8 text-3xl font-bold">{{ .Site.Params.greet }}</h2>
|
||||
<p class="mt-0 mb-0">{{ .Site.Author.status }}</p>
|
||||
<p class="mt-3 mb-3 home-intro">{{ .Site.Author.description | markdownify | safeHTML }}</p>
|
||||
{{ if eq .Paginator.PageNumber 1 }}
|
||||
<h3 class="mt-6 mb-4 text-2xl font-bold">{{ .Site.Params.recent }}</h3>
|
||||
<h3 class="mt-6 mb-4 text-2xl font-bold">{{ T "recent" }}</h3>
|
||||
{{ else }}
|
||||
<h3 class="mt-6 mb-4 text-2xl font-bold">{{ .Site.Params.older }}</h3>
|
||||
<h3 class="mt-6 mb-4 text-2xl font-bold">{{ T "older" }}</h3>
|
||||
{{ end }}
|
||||
<div>
|
||||
{{ $paginator := .Paginate (where .Site.RegularPages "Kind" "page") }}
|
||||
|
|
|
@ -5,15 +5,15 @@
|
|||
{{ if .Site.Params.brand }}
|
||||
<div class="mr-3 text-3xl"><a href="/">{{ .Site.Params.brand }}</a></div>
|
||||
{{ end }}
|
||||
<div id="theme-switcher" class="text-2xl cursor-pointer">{{ index .Site.Params.switch 1 }}</div>
|
||||
<div id="theme-switcher" class="text-3xl cursor-pointer">{{ index .Site.Params.switch 1 }}</div>
|
||||
</div>
|
||||
<ul class="flex items-center font-medium
|
||||
whitespace-nowrap overflow-x-auto overflow-y-hidden">
|
||||
{{ range .Site.Menus.main }}
|
||||
<li class="ml-1 mr-1"><a href="{{ .URL | absLangURL }}">{{ .Name }}</a></li>
|
||||
<li class="ml-1 mr-1"><a href="{{ .URL | absLangURL }}">{{ T .Identifier | default .Name }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<ul class="flex item-center text-xs font-bold">
|
||||
<ul class="flex item-center text-sm font-bold">
|
||||
{{ range $.Site.Home.AllTranslations }}
|
||||
<li class="ml-2"><a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a></li>
|
||||
{{ end}}
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
<div>
|
||||
<div class="flex justify-between">
|
||||
{{ if .Page.Params.link }}
|
||||
<a class="font-bold" href="{{ .Page.Params.link }}">{{ .Title }}</a>
|
||||
<a class="text-lg font-bold" href="{{ .Page.Params.link }}">{{ .Title }}</a>
|
||||
{{ else }}
|
||||
<a class="font-bold" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
<a class="text-lg font-bold" href="{{ .RelPermalink }}">{{ .Title }}</a>
|
||||
{{ end }}
|
||||
{{ if .Site.Params.displayDate }}
|
||||
<div class="text-xs font-bold">{{ dateFormat .Site.Params.timeformat .Date }}</div>
|
||||
<div class="text-sm font-bold">{{ .Date | time.Format (T "timeformat") }}</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ if .Site.Params.displayDescription }}
|
||||
<p class="text-sm mb-2">
|
||||
<p class="text-base mb-2">
|
||||
{{ .Description | markdownify | safeHTML }}
|
||||
</p>
|
||||
{{ end }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue