feat: add prettier
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
0eb40547ec
commit
6f3c075669
@ -0,0 +1,5 @@
|
||||
.idea/
|
||||
node_modules/
|
||||
static/css/*.css
|
||||
dist/
|
||||
yarn-error.log
|
@ -0,0 +1,15 @@
|
||||
{
|
||||
"tabWidth": 4,
|
||||
"useTabs": true,
|
||||
"goTemplateBracketSpacing": true,
|
||||
"printWidth": 100,
|
||||
"singleQuote": true,
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.html"],
|
||||
"options": {
|
||||
"parser": "go-template"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
@ -1,13 +1,22 @@
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<section class="w-full h-screen bg-yellow-200 flex items-center justify-center flex-col">
|
||||
<h1 class="font-title pb-8 text-5xl font-bold">
|
||||
Page not found
|
||||
</h1>
|
||||
<a href="/" class="flex items-center">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 mr-2" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 19l-7-7m0 0l7-7m-7 7h18" />
|
||||
</svg>
|
||||
Back to home page
|
||||
</a>
|
||||
</section>
|
||||
{{ define "main" }}
|
||||
<section class="flex h-screen w-full flex-col items-center justify-center bg-yellow-200">
|
||||
<h1 class="pb-8 font-title text-5xl font-bold">Page not found</h1>
|
||||
<a href="/" class="flex items-center">
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class="mr-2 h-6 w-6"
|
||||
fill="none"
|
||||
viewBox="0 0 24 24"
|
||||
stroke="currentColor"
|
||||
>
|
||||
<path
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
stroke-width="2"
|
||||
d="M10 19l-7-7m0 0l7-7m-7 7h18"
|
||||
/>
|
||||
</svg>
|
||||
Back to home page
|
||||
</a>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
{{ partial "header.html" . }}
|
||||
</head>
|
||||
<body class="bg-gray-50 text-gray-900 antialiased">
|
||||
{{ partial "navbar.html" . }}
|
||||
|
||||
{{ block "main" . }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</body>
|
||||
</html>
|
@ -1,25 +1,24 @@
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<div class="max-w-screen-xl flex mx-auto lg:pt-8 flex-col lg:flex-row">
|
||||
<div class="w-full lg:w-1/4">
|
||||
{{ partial "menu" . }}
|
||||
</div>
|
||||
<article class="w-full lg:w-3/4 p-4 pt-6 lg:pt-2">
|
||||
<div class="max-w-none prose prose-a:text-primary prose-a:no-underline hover:prose-a:underline prose-h1:font-title prose-h1:font-bold prose-img:rounded-sm">
|
||||
{{ partial "headline-hash.html" . }}
|
||||
|
||||
{{ range .Pages.GroupBy "Section" }}
|
||||
<h3>{{ .Key | title }}</h3>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ define "main" }}
|
||||
<div class="mx-auto flex max-w-screen-xl flex-col lg:flex-row lg:pt-8">
|
||||
<div class="w-full lg:w-1/4">{{ partial "menu" . }}</div>
|
||||
<article class="w-full p-4 pt-6 lg:w-3/4 lg:pt-2">
|
||||
<div
|
||||
class="prose max-w-none prose-h1:font-title prose-h1:font-bold prose-a:text-primary prose-a:no-underline hover:prose-a:underline prose-img:rounded-sm"
|
||||
>
|
||||
{{ partial "headline-hash.html" . }}
|
||||
{{ range .Pages.GroupBy
|
||||
"Section"
|
||||
}}
|
||||
<h3>{{ .Key | title }}</h3>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
<a href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
</div>
|
||||
</article>
|
||||
</div>
|
||||
{{ end }}
|
||||
|
@ -1,7 +1,5 @@
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<article class="max-w-screen-xl mx-auto mt-4 px-4 lg:px-0">
|
||||
{{ partial "prose.html" .Content }}
|
||||
</article>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
{{ define "main" }}
|
||||
<article class="mx-auto mt-4 max-w-screen-xl px-4 lg:px-0">
|
||||
{{ partial "prose.html" .Content }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
@ -1,12 +1,8 @@
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<div class="max-w-screen-xl flex mx-auto lg:pt-8 flex-col lg:flex-row">
|
||||
<div class="w-full lg:w-1/4">
|
||||
{{ partial "menu" . }}
|
||||
{{ define "main" }}
|
||||
<div class="mx-auto flex max-w-screen-xl flex-col lg:flex-row lg:pt-8">
|
||||
<div class="w-full lg:w-1/4">{{ partial "menu" . }}</div>
|
||||
<article class="w-full p-4 pt-6 lg:w-3/4 lg:pt-2">
|
||||
{{ partial "prose.html" .Content }}
|
||||
</article>
|
||||
</div>
|
||||
<article class="w-full lg:w-3/4 p-4 pt-6 lg:pt-2">
|
||||
{{ partial "prose.html" .Content }}
|
||||
</article>
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
{{ end }}
|
||||
|
@ -1,41 +1,55 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ define "main" }}
|
||||
<section
|
||||
class="flex min-h-screen w-full flex-col items-center justify-center bg-hero-llama bg-cover pb-8 text-center font-title font-bold text-white"
|
||||
>
|
||||
<div class="mt-48 mb-32">
|
||||
{{ if .Params.heading }}
|
||||
{{ if .Params.heading.heading }}
|
||||
<h1 class="mb-4 text-5xl">
|
||||
{{ .Params.heading.heading | markdownify }}
|
||||
</h1>
|
||||
{{ end }}
|
||||
{{ if .Params.heading.content }}
|
||||
<h3 class="mb-6 text-3xl">
|
||||
{{ .Params.heading.content | markdownify }}
|
||||
</h3>
|
||||
{{ end }}
|
||||
{{ if .Params.heading.subtitle }}
|
||||
<h4 class="text-xl">
|
||||
{{ .Params.heading.subtitle | markdownify }}
|
||||
</h4>
|
||||
{{ end }}
|
||||
{{ if .Params.heading.subsubtitle }}
|
||||
<h4 class="text-lg">
|
||||
{{ .Params.heading.subsubtitle | markdownify }}
|
||||
</h4>
|
||||
{{ end }}
|
||||
|
||||
<section class="w-full min-h-screen bg-hero-llama bg-cover flex items-center justify-center flex-col text-white font-title font-bold text-center pb-8">
|
||||
<div class="mt-48 mb-32">
|
||||
{{ if .Params.heading }}
|
||||
{{ if .Params.heading.heading }}
|
||||
<h1 class="text-5xl mb-4">{{.Params.heading.heading | markdownify}}</h1>
|
||||
{{end}}
|
||||
{{ if .Params.heading.content }}
|
||||
<h3 class="text-3xl mb-6">{{.Params.heading.content | markdownify}}</h3>
|
||||
{{end}}
|
||||
{{ if .Params.heading.subtitle }}
|
||||
<h4 class="text-xl">{{.Params.heading.subtitle | markdownify}}</h4>
|
||||
{{end}}
|
||||
{{ if .Params.heading.subsubtitle }}
|
||||
<h4 class="text-lg">{{.Params.heading.subsubtitle | markdownify}}</h4>
|
||||
{{end}}
|
||||
{{end}}
|
||||
{{ end }}
|
||||
|
||||
<div class="flex py-4 space-x-2 justify-center">
|
||||
<a href="https://try.vikunja.io"
|
||||
class="px-4 py-2 border border-transparent shadow text-xl font-medium rounded-md text-white bg-primary hover:bg-primary-darker cursor-pointer">
|
||||
Try it
|
||||
</a>
|
||||
<a href="/features"
|
||||
class="px-4 py-2 border border-transparent shadow text-xl font-medium rounded-md text-white bg-primary hover:bg-primary-darker cursor-pointer">
|
||||
Features
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="max-w-screen-xl rounded-sm overflow-hidden shadow-lg">
|
||||
<picture class="object-contain object-top w-full">
|
||||
<source srcset="/images/vikunja-task-overview.webp" type="image/webp"/>
|
||||
<source srcset="/images/vikunja-task-overview.png" type="image/png"/>
|
||||
<img src="/images/vikunja-task-overview.png" alt=""/>
|
||||
</picture>
|
||||
</div>
|
||||
</section>
|
||||
<div class="flex justify-center space-x-2 py-4">
|
||||
<a
|
||||
href="https://try.vikunja.io"
|
||||
class="cursor-pointer rounded-md border border-transparent bg-primary px-4 py-2 text-xl font-medium text-white shadow hover:bg-primary-darker"
|
||||
>
|
||||
Try it
|
||||
</a>
|
||||
<a
|
||||
href="/features"
|
||||
class="cursor-pointer rounded-md border border-transparent bg-primary px-4 py-2 text-xl font-medium text-white shadow hover:bg-primary-darker"
|
||||
>
|
||||
Features
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
<div class="max-w-screen-xl overflow-hidden rounded-sm shadow-lg">
|
||||
<picture class="w-full object-contain object-top">
|
||||
<source srcset="/images/vikunja-task-overview.webp" type="image/webp" />
|
||||
<source srcset="/images/vikunja-task-overview.png" type="image/png" />
|
||||
<img src="/images/vikunja-task-overview.png" alt="" />
|
||||
</picture>
|
||||
</div>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
@ -1,67 +1,66 @@
|
||||
<!DOCTYPE html>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge" />
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta http-equiv="x-ua-compatible" content="ie=edge">
|
||||
<!-- Title -->
|
||||
{{ $title := .Site.Title }}
|
||||
{{ if and (not .IsHome) .Title }}
|
||||
{{ $title = printf "%s | %s" .Title .Site.Title }}
|
||||
{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
<meta property="og:title" content="{{ $title }}" />
|
||||
<meta name="twitter:title" content="{{ $title }}" />
|
||||
<meta itemprop="name" content="{{ $title }}" />
|
||||
<meta name="application-name" content="{{ $title }}" />
|
||||
|
||||
<!-- Title -->
|
||||
{{ $title := .Site.Title}}
|
||||
{{ if and (not .IsHome) .Title }}
|
||||
{{ $title = printf "%s | %s" .Title .Site.Title}}
|
||||
{{ end }}
|
||||
<title>{{ $title }}</title>
|
||||
<meta property="og:title" content="{{ $title }}" />
|
||||
<meta name="twitter:title" content="{{ $title }}" />
|
||||
<meta itemprop="name" content="{{ $title }}" />
|
||||
<meta name="application-name" content="{{ $title }}" />
|
||||
<!-- Description -->
|
||||
<meta name="description" content="{{ .Params.description }}" />
|
||||
<meta itemprop="description" content="{{ .Params.description }}" />
|
||||
<meta property="og:description" content="{{ .Params.description }}" />
|
||||
<meta name="twitter:description" content="{{ .Params.description }}" />
|
||||
|
||||
<!-- Description -->
|
||||
<meta name="description" content="{{ .Params.description }}" />
|
||||
<meta itemprop="description" content="{{ .Params.description }}" />
|
||||
<meta property="og:description" content="{{ .Params.description }}" />
|
||||
<meta name="twitter:description" content="{{ .Params.description }}" />
|
||||
<!-- Links -->
|
||||
<base href="{{ .Permalink }}" />
|
||||
<link rel="canonical" href="{{ .Permalink }}" itemprop="url" />
|
||||
<meta name="url" content="{{ .Permalink }}" />
|
||||
<meta name="twitter:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
|
||||
<!-- Links -->
|
||||
<base href="{{ .Permalink }}">
|
||||
<link rel="canonical" href="{{ .Permalink }}" itemprop="url" />
|
||||
<meta name="url" content="{{ .Permalink }}" />
|
||||
<meta name="twitter:url" content="{{ .Permalink }}" />
|
||||
<meta property="og:url" content="{{ .Permalink }}" />
|
||||
<!-- Images -->
|
||||
{{ with .Params.image }}
|
||||
<meta itemprop="image" content="{{ . | absURL }}" />
|
||||
<meta property="og:image" content="{{ . | absURL }}" />
|
||||
<meta name="twitter:image" content="{{ . | absURL }}" />
|
||||
<meta name="twitter:image:src" content="{{ . | absURL }}" />
|
||||
{{ else }}
|
||||
<meta itemprop="image" content="{{ .Site.Params.ogimage | absURL }}images/vikunja.png" />
|
||||
<meta property="og:image" content="{{ .Site.Params.ogimage | absURL }}images/vikunja.png" />
|
||||
<meta name="twitter:image" content="{{ .Site.Params.ogimage | absURL }}images/vikunja.png" />
|
||||
<meta
|
||||
name="twitter:image:src"
|
||||
content="{{ .Site.Params.ogimage | absURL }}images/vikunja.png"
|
||||
/>
|
||||
{{ end }}
|
||||
|
||||
<!-- Images -->
|
||||
{{ with .Params.image }}
|
||||
<meta itemprop="image" content="{{ . | absURL }}" />
|
||||
<meta property="og:image" content="{{ . | absURL }}" />
|
||||
<meta name="twitter:image" content="{{ . | absURL }}" />
|
||||
<meta name="twitter:image:src" content="{{ . | absURL }}" />
|
||||
{{ else }}
|
||||
<meta itemprop="image" content="{{ .Site.Params.ogimage | absURL }}images/vikunja.png" />
|
||||
<meta property="og:image" content="{{ .Site.Params.ogimage | absURL }}images/vikunja.png" />
|
||||
<meta name="twitter:image" content="{{ .Site.Params.ogimage | absURL }}images/vikunja.png" />
|
||||
<meta name="twitter:image:src" content="{{ .Site.Params.ogimage | absURL }}images/vikunja.png" />
|
||||
{{ end }}
|
||||
|
||||
<!-- Misc -->
|
||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}"/>
|
||||
{{ hugo.Generator }}
|
||||
<!-- Misc -->
|
||||
<meta property="og:type" content="{{ if .IsPage }}article{{ else }}website{{ end }}" />
|
||||
{{ hugo.Generator }}
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s"/>` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
{{ range .AlternativeOutputFormats -}}
|
||||
{{ printf `<link rel="%s" type="%s" href="%s" title="%s" />` .Rel .MediaType.Type .Permalink $.Site.Title | safeHTML }}
|
||||
{{ end -}}
|
||||
|
||||
<link rel="canonical" href="{{ .Permalink }}">
|
||||
<link rel="canonical" href="{{ .Permalink }}" />
|
||||
|
||||
{{ $siteBaseURL := .Site.BaseURL }}
|
||||
{{ $styleFolder := "./themes/vikunja/static/css" }}
|
||||
{{ range readDir $styleFolder }}
|
||||
<link rel="stylesheet" href="{{ $siteBaseURL }}css/{{ .Name }}">
|
||||
{{ end }}
|
||||
{{ $siteBaseURL := .Site.BaseURL }}
|
||||
{{ $styleFolder :=
|
||||
"./themes/vikunja/static/css"
|
||||
}}
|
||||
{{ range readDir $styleFolder }}
|
||||
<link rel="stylesheet" href="{{ $siteBaseURL }}css/{{ .Name }}" />
|
||||
{{ end }}
|
||||
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}favicon.ico">
|
||||
<link rel="icon" type="image/x-icon" href="{{ .Site.BaseURL }}favicon.ico">
|
||||
</head>
|
||||
<body class="antialiased bg-gray-50 text-gray-900">
|
||||
|
||||
{{ partial "navbar.html" . }}
|
||||
<link rel="shortcut icon" type="image/x-icon" href="{{ .Site.BaseURL }}favicon.ico" />
|
||||
<link rel="icon" type="image/x-icon" href="{{ .Site.BaseURL }}favicon.ico" />
|
||||
|
@ -1,25 +1,33 @@
|
||||
<a class="navbar-burger py-2 px-1 m-2 mt-6 bg-gray-200 rounded-sm text-center block lg:hidden" data-target="docsMenu">
|
||||
<a
|
||||
class="navbar-burger m-2 mt-6 block rounded-sm bg-gray-200 py-2 px-1 text-center lg:hidden"
|
||||
data-target="docsMenu"
|
||||
>
|
||||
Show Menu
|
||||
</a>
|
||||
|
||||
<aside class="px-2 text-gray-600 hidden lg:block" id="docsMenu">
|
||||
<aside class="hidden px-2 text-gray-600 lg:block" id="docsMenu">
|
||||
{{ $currentNode := . }}
|
||||
{{ range .Site.Menus.sidebar }}
|
||||
{{ if .HasChildren }}
|
||||
<p class="uppercase font-title pb-2 pt-4 text-sm text-gray-500">
|
||||
{{ .Pre }}
|
||||
{{ .Name }}
|
||||
</p>
|
||||
<ul>
|
||||
{{ range .Children }}
|
||||
<li>
|
||||
<a href="{{ .URL }}" class="px-2 py-1.5 block rounded-sm hover:bg-gray-200 {{ if $currentNode.IsMenuCurrent "sidebar" . }} !bg-primary text-white {{ end }}">
|
||||
{{ .Pre }}
|
||||
{{ .Name }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
<p class="pb-2 pt-4 font-title text-sm uppercase text-gray-500">
|
||||
{{ .Pre }}
|
||||
{{ .Name }}
|
||||
</p>
|
||||
<ul>
|
||||
{{ range .Children }}
|
||||
<li>
|
||||
<a
|
||||
href="{{ .URL }}"
|
||||
class="{{ if $currentNode.IsMenuCurrent "sidebar" . }}
|
||||
!bg-primary text-white
|
||||
{{ end }} block rounded-sm px-2 py-1.5 hover:bg-gray-200"
|
||||
>
|
||||
{{ .Pre }}
|
||||
{{ .Name }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</aside>
|
||||
|
@ -1,3 +1,8 @@
|
||||
{{ if .Site.Params.plausibleEnabled }}
|
||||
<script async defer data-domain="{{ .Site.Params.plausibleDomain }}" src="{{ .Site.Params.plausibleURL }}/js/plausible.js"></script>
|
||||
{{end}}
|
||||
<script
|
||||
async
|
||||
defer
|
||||
data-domain="{{ .Site.Params.plausibleDomain }}"
|
||||
src="{{ .Site.Params.plausibleURL }}/js/plausible.js"
|
||||
></script>
|
||||
{{ end }}
|
||||
|
@ -1,3 +1,5 @@
|
||||
<div class="max-w-none prose prose-a:text-primary prose-a:no-underline hover:prose-a:underline prose-h1:font-title prose-h1:font-bold prose-img:rounded-sm">
|
||||
<div
|
||||
class="prose max-w-none prose-h1:font-title prose-h1:font-bold prose-a:text-primary prose-a:no-underline hover:prose-a:underline prose-img:rounded-sm"
|
||||
>
|
||||
{{ partial "headline-hash.html" . }}
|
||||
</div>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<a href="https://vikunja.cloud/?utm_source=io&utm_medium=io&utm_campaign=blog_post"
|
||||
class="bg-hero-llama bg-cover bg-no-repeat bg-center py-44 flex items-center justify-center flex-col shadow hover:shadow-lg rounded text-white mt-8">
|
||||
<a
|
||||
href="https://vikunja.cloud/?utm_source=io&utm_medium=io&utm_campaign=blog_post"
|
||||
class="mt-8 flex flex-col items-center justify-center rounded bg-hero-llama bg-cover bg-center bg-no-repeat py-44 text-white shadow hover:shadow-lg"
|
||||
>
|
||||
<h2 class="font-title text-3xl font-bold">Vikunja Cloud is here!</h2>
|
||||
<p class="pt-4">
|
||||
Get a hosted Vikunja Account.
|
||||
</p>
|
||||
<p class="pt-4">Get a hosted Vikunja Account.</p>
|
||||
</a>
|
||||
|
@ -1,56 +1,91 @@
|
||||
{{ partial "header.html" . }}
|
||||
{{ define "main" }}
|
||||
<article class="mx-auto mt-4 max-w-screen-lg">
|
||||
<h1 class="mb-2 font-title text-4xl font-bold">Blog</h1>
|
||||
<p class="mb-10 text-gray-600">All the latest Vikunja news and updates.</p>
|
||||
|
||||
<article class="max-w-screen-lg mx-auto mt-4">
|
||||
<h1 class="font-title text-4xl font-bold mb-2">Blog</h1>
|
||||
<p class="text-gray-600 mb-10">All the latest Vikunja news and updates.</p>
|
||||
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}{{ range $paginator.Pages }}
|
||||
<section class="mb-8">
|
||||
<a class="font-title text-2xl font-bold" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
<p class="text-gray-400">
|
||||
{{ .Date.Format "2006-01-02" }}
|
||||
</p>
|
||||
<p class="pt-4 text-gray-600">
|
||||
{{ .Summary }}
|
||||
</p>
|
||||
<a href="{{ .Permalink }}"
|
||||
class="inline-flex items-center mt-4 px-2 py-2 rounded-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
||||
<span class="mr-1">
|
||||
Read more
|
||||
</span>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
|
||||
<path fill-rule="evenodd"
|
||||
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
||||
clip-rule="evenodd"/>
|
||||
</svg>
|
||||
</a>
|
||||
</section>
|
||||
{{ end }}
|
||||
|
||||
<nav class="relative z-0 inline-flex rounded-md shadow-sm -space-x-px" aria-label="Pagination">
|
||||
{{ if .Paginator.HasPrev}}
|
||||
<a href="{{ .Paginator.Prev.URL }}" class="relative inline-flex items-center px-2 py-2 {{ if .Paginator.HasNext }} rounded-l-md {{ else }} rounded-md {{ end }} border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
||||
Previous
|
||||
<svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"
|
||||
aria-hidden="true">
|
||||
<path fill-rule="evenodd"
|
||||
d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z"
|
||||
clip-rule="evenodd"/>
|
||||
</svg>
|
||||
</a>
|
||||
{{ $paginator := .Paginate (where .Data.Pages "Type" "post") }}{{ range
|
||||
$paginator.Pages
|
||||
}}
|
||||
<section class="mb-8">
|
||||
<a class="font-title text-2xl font-bold" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
<p class="text-gray-400">{{ .Date.Format "2006-01-02" }}</p>
|
||||
<p class="pt-4 text-gray-600">{{ .Summary }}</p>
|
||||
<a
|
||||
href="{{ .Permalink }}"
|
||||
class="mt-4 inline-flex items-center rounded-md border border-gray-300 bg-white px-2 py-2 text-sm font-medium text-gray-500 hover:bg-gray-50"
|
||||
>
|
||||
<span class="mr-1"> Read more </span>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
class="h-5 w-5"
|
||||
viewBox="0 0 20 20"
|
||||
fill="currentColor"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
||||
clip-rule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a href="{{ .Paginator.Next.URL }}" class="relative inline-flex items-center px-2 py-2 {{ if .Paginator.HasPrev }} rounded-r-md {{ else }} rounded-md {{ end }} border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50">
|
||||
Next
|
||||
<svg class="h-5 w-5" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"
|
||||
aria-hidden="true">
|
||||
<path fill-rule="evenodd"
|
||||
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
||||
clip-rule="evenodd"/>
|
||||
</svg>
|
||||
</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</article>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
|
||||
<nav
|
||||
class="relative z-0 inline-flex -space-x-px rounded-md shadow-sm"
|
||||
aria-label="Pagination"
|
||||
>
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<a
|
||||
href="{{ .Paginator.Prev.URL }}"
|
||||
class="{{ if .Paginator.HasNext }}
|
||||
rounded-l-md
|
||||
{{ else }}
|
||||
rounded-md
|
||||
{{ end }} relative inline-flex items-center border border-gray-300 bg-white px-2 py-2 text-sm font-medium text-gray-500 hover:bg-gray-50"
|
||||
>
|
||||
Previous
|
||||
<svg
|
||||
class="h-5 w-5"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 20 20"
|
||||
fill="currentColor"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z"
|
||||
clip-rule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a
|
||||
href="{{ .Paginator.Next.URL }}"
|
||||
class="{{ if .Paginator.HasPrev }}
|
||||
rounded-r-md
|
||||
{{ else }}
|
||||
rounded-md
|
||||
{{ end }} relative inline-flex items-center border border-gray-300 bg-white px-2 py-2 text-sm font-medium text-gray-500 hover:bg-gray-50"
|
||||
>
|
||||
Next
|
||||
<svg
|
||||
class="h-5 w-5"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
viewBox="0 0 20 20"
|
||||
fill="currentColor"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
d="M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z"
|
||||
clip-rule="evenodd"
|
||||
/>
|
||||
</svg>
|
||||
</a>
|
||||
{{ end }}
|
||||
</nav>
|
||||
</article>
|
||||
{{ end }}
|
||||
|
@ -1,15 +1,10 @@
|
||||
{{ partial "header.html" . }}
|
||||
|
||||
<article class="max-w-screen-lg mx-auto mt-4">
|
||||
<h1 class="text-3xl font-bold font-title mb-8">
|
||||
<a href="{{ .Permalink }}">
|
||||
{{ .Title }}
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
{{ partial "prose.html" .Content }}
|
||||
|
||||
{{ partial "vikunja-cloud-banner.html" }}
|
||||
</article>
|
||||
|
||||
{{ partial "footer.html" . }}
|
||||
{{ define "main" }}
|
||||
<article class="mx-auto mt-4 max-w-screen-lg">
|
||||
<h1 class="mb-8 font-title text-3xl font-bold">
|
||||
<a href="{{ .Permalink }}"> {{ .Title }} </a>
|
||||
</h1>
|
||||
|
||||
{{ partial "prose.html" .Content }}
|
||||
{{ partial "vikunja-cloud-banner.html" }}
|
||||
</article>
|
||||
{{ end }}
|
||||
|
@ -1,5 +1,5 @@
|
||||
<div class="toc">
|
||||
<h2>Table of contents</h2>
|
||||
<h2>Table of contents</h2>
|
||||
|
||||
{{ .Page.TableOfContents }}
|
||||
{{ .Page.TableOfContents }}
|
||||
</div>
|
||||
|
@ -1,24 +1,28 @@
|
||||
{
|
||||
"name": "vikunja-theme",
|
||||
"version": "1.0.0",
|
||||
"description": "A Hugo theme that gets used within all of our websites.",
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"author": {
|
||||
"name": "The Vikunja authors",
|
||||
"email": "team@vikunja.io"
|
||||
},
|
||||
"scripts": {
|
||||
"prod": "tailwindcss -i src/style.css -o static/css/styles.css --minify",
|
||||
"watch": "tailwindcss -i src/style.css -o static/css/styles.css --watch",
|
||||
"clean": "rm -rf dist && mkdir dist",
|
||||
"release": "tar -czvf dist/vikunja-theme.tar.gz archetypes layouts static LICENSE README.md theme.toml"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/typography": "^0.5.0",
|
||||
"postcss": "^8.4.5",
|
||||
"tailwindcss": "^3.0.17"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/forms": "^0.4.0"
|
||||
}
|
||||
"name": "vikunja-theme",
|
||||
"version": "1.0.0",
|
||||
"description": "A Hugo theme that gets used within all of our websites.",
|
||||
"license": "LGPL-3.0-or-later",
|
||||
"author": {
|
||||
"name": "The Vikunja authors",
|
||||
"email": "team@vikunja.io"
|
||||
},
|
||||
"scripts": {
|
||||
"prod": "tailwindcss -i src/style.css -o static/css/styles.css --minify",
|
||||
"watch": "tailwindcss -i src/style.css -o static/css/styles.css --watch",
|
||||
"clean": "rm -rf dist && mkdir dist",
|
||||
"release": "tar -czvf dist/vikunja-theme.tar.gz archetypes layouts static LICENSE README.md theme.toml",
|
||||
"format": "prettier --write ."
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/typography": "^0.5.0",
|
||||
"postcss": "^8.4.5",
|
||||
"prettier": "^2.5.1",
|
||||
"prettier-plugin-go-template": "^0.0.11",
|
||||
"prettier-plugin-tailwindcss": "^0.1.4",
|
||||
"tailwindcss": "^3.0.17"
|
||||
},
|
||||
"dependencies": {
|
||||
"@tailwindcss/forms": "^0.4.0"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue