add tella theme
This commit is contained in:
20
themes/tella/layouts/_default/baseof.html
Normal file
20
themes/tella/layouts/_default/baseof.html
Normal file
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="ja">
|
||||
|
||||
<head>
|
||||
{{- partial "head.html" . -}}
|
||||
{{ block "meta_tags" . }}{{end}}
|
||||
</head>
|
||||
|
||||
<body class="flex flex-col min-h-screen">
|
||||
<main class="flex-grow">
|
||||
{{- partial "header.html" . -}}
|
||||
<div class="scroll-top rounded-full">
|
||||
<span class="icon-keyboard_arrow_up text-2xl"></span>
|
||||
</div>
|
||||
{{- block "main" . }}{{- end }}
|
||||
</main>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
48
themes/tella/layouts/_default/list.html
Normal file
48
themes/tella/layouts/_default/list.html
Normal file
@@ -0,0 +1,48 @@
|
||||
{{ define "meta_tags" }}
|
||||
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
||||
<meta property="og:title" content="{{ .Title }} | {{ .Site.Title }}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:locale" content="ja_JP" />
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:title" content="{{ .Title }}">
|
||||
|
||||
{{ if .Params.image }}
|
||||
{{ with .Params.image }}
|
||||
<meta property="og:image" content="{{ . | absURL }}">
|
||||
<meta property="og:image:url" content="{{ . | absURL }}">
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<meta property="og:image" content="{{ .Site.Params.homepage_meta_tags.meta_og_image | absURL }}">
|
||||
<meta property="og:image:url" content="{{ .Site.Params.homepage_meta_tags.meta_og_image | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
{{- if .Description }}
|
||||
<meta property="og:description" content="{{ .Description }}" />
|
||||
<meta property="twitter:description" content="{{ .Description }}" />
|
||||
{{- else if .Summary }}
|
||||
<meta property="og:description" content="{{ .Summary }}" />
|
||||
<meta property="twitter:description" content="{{ .Summary }}" />
|
||||
{{- else if .Site.Params.description }}
|
||||
<meta property="og:description" content="{{ .Site.Params.description }}" />
|
||||
<meta property="twitter:description" content="{{ .Site.Params.description }}" />
|
||||
{{- end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<div class="mx-auto my-10 max-w-6xl">
|
||||
<div class="mx-3 col-span-3 lg:col-span-2 px-2">
|
||||
<h1 class="title text-5xl mb-4">{{.Title}}</h1>
|
||||
<div class="content py-1">{{.Content}}</div>
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "in" site.Params.mainSections) 6 }}
|
||||
{{ range $paginator.Pages }}
|
||||
<a href="{{ .Permalink }}">
|
||||
<div>{{ partial "summary.html" . }}</div>
|
||||
</a>
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ partial "paginator.html" . }}
|
||||
</div>
|
||||
{{ end }}
|
||||
41
themes/tella/layouts/_default/single.html
Normal file
41
themes/tella/layouts/_default/single.html
Normal file
@@ -0,0 +1,41 @@
|
||||
{{ define "meta_tags" }}
|
||||
|
||||
<meta property="og:site_name" content="{{ .Site.Title }}" />
|
||||
<meta property="og:title" content="{{ .Title }} | {{ .Site.Title }}" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:locale" content="ja_JP" />
|
||||
<meta name="twitter:card" content="summary_large_image">
|
||||
<meta property="twitter:title" content="{{ .Title }}">
|
||||
|
||||
{{ if .Params.image }}
|
||||
{{ with .Params.image }}
|
||||
<meta property="og:image" content="{{ . | absURL }}">
|
||||
<meta property="og:image:url" content="{{ . | absURL }}">
|
||||
{{ end }}
|
||||
{{ else }}
|
||||
<meta property="og:image" content="{{ .Site.Params.homepage_meta_tags.meta_og_image | absURL }}">
|
||||
<meta property="og:image:url" content="{{ .Site.Params.homepage_meta_tags.meta_og_image | absURL }}">
|
||||
{{ end }}
|
||||
|
||||
{{- if .Description }}
|
||||
<meta property="og:description" content="{{ .Description }}" />
|
||||
<meta property="twitter:description" content="{{ .Description }}" />
|
||||
{{- else if .Summary }}
|
||||
<meta property="og:description" content="{{ .Summary }}" />
|
||||
<meta property="twitter:description" content="{{ .Summary }}" />
|
||||
{{- else if .Site.Params.description }}
|
||||
<meta property="og:description" content="{{ .Site.Params.description }}" />
|
||||
<meta property="twitter:description" content="{{ .Site.Params.description }}" />
|
||||
{{- end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ define "main" }}
|
||||
<div class="mx-auto my-10 max-w-6xl">
|
||||
<div class="mx-3 col-span-3 lg:col-span-2 px-2">
|
||||
<h1 class="title text-5xl mb-4">{{.Title}}</h1>
|
||||
<div class="content prose md:prose-lg lg:prose-xl max-w-none py-1">{{.Content}}</div>
|
||||
</div>
|
||||
</div>
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user