alfa
This commit is contained in:
15
themes/main-theme/layouts/_default/baseof.html
Normal file
15
themes/main-theme/layouts/_default/baseof.html
Normal file
@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
{{- partial "head.html" . -}}
|
||||
|
||||
<body class="bg-[#ffffff] flex flex-col min-h-screen">
|
||||
{{- partial "header.html" . -}}
|
||||
<main class="flex-1 flex flex-col py-6">
|
||||
{{ block "main" . }}
|
||||
{{ end }}
|
||||
</main>
|
||||
{{- partial "footer.html" . -}}
|
||||
</body>
|
||||
|
||||
</html>
|
74
themes/main-theme/layouts/_default/home.html
Normal file
74
themes/main-theme/layouts/_default/home.html
Normal file
@ -0,0 +1,74 @@
|
||||
{{ define "main" }}
|
||||
<div class="w-full">
|
||||
<div class="container m-auto">
|
||||
<div class="grid grid-cols-12 gap-14">
|
||||
<div class="col-span-8 col- md:col-span-6">
|
||||
<h1 class="text-5xl leading-10 font-normal text-forest mb-16">Towards a human-centric,<br />
|
||||
next generation Internet.</h1>
|
||||
|
||||
<p class="w-64 h-8 text-2xl font-medium leading-loose text-salmon mb-4">Latest from the blog</p>
|
||||
<div class="max-w-lg">
|
||||
{{ range last 1 (where site.RegularPages "Type" "blog").ByDate }}
|
||||
{{ partial "cards/blog-item" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="col-span-4 md:col-span-6 max-w-xl">
|
||||
<div class="inline-flex flex-col space-y-6">
|
||||
<p class="w-64 h-8 text-2xl font-semibold leading-loose text-forest">What is Interpeer?</p>
|
||||
<p class="text-lg leading-relaxed text-forest">The Interpeer
|
||||
Project’s objective is to empower a human centric internet. In practice, this currently takes
|
||||
the
|
||||
form of a technological initiative with the goal of providing a secure and efficient
|
||||
peer-to-peer
|
||||
networking stack, bypassing the protocols of the past. </p>
|
||||
<h2 class="pt-8 font-normal text-5xl leading-10 text-forest">The future is fully distributed.</h2>
|
||||
<p class="text-lg leading-relaxed text-forest">This initiative
|
||||
is home to a growing number of projects, that can be explored in detail on this website. The
|
||||
project's technical documentation is also available and regularly updated.
|
||||
<br />
|
||||
</p>
|
||||
<div class="py-5 px-4 bg-forest w-full">
|
||||
<div class="relative">
|
||||
<p class="text-xl leading-7 text-white">Interested in supporting this
|
||||
project? <a href="#"
|
||||
class="text-xl font-medium leading-7 underline text-white uppercase">
|
||||
donate</a></p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="py-12 lg:py-20 flex justify-center align-middle">
|
||||
{{ partial "mail-subscription" . }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Towards a human-centric, next generation Internet.
|
||||
|
||||
What is Interpeer?
|
||||
The Interpeer Project’s objective is to empower a human centric internet. In practice, this currently takes the
|
||||
form of a technological initiative with the goal of providing a secure and efficient peer-to-peer networking
|
||||
stack, bypassing the protocols of the past.
|
||||
|
||||
The future is fully distributed.
|
||||
This initiative is home to a growing number of projects, that can be explored in detail on this website. The
|
||||
project's technical documentation is also available and regularly updated.
|
||||
|
||||
Interested in supporting this project? -->
|
||||
{{ end }}
|
33
themes/main-theme/layouts/_default/list.html
Normal file
33
themes/main-theme/layouts/_default/list.html
Normal file
@ -0,0 +1,33 @@
|
||||
{{ define "main" }}
|
||||
<div class="container mx-auto">
|
||||
|
||||
<div class="inline-flex mb-8">
|
||||
<a href="/blog/"
|
||||
class="inline-flex items-center px-4 py-3 border border-forest text-forest hover:bg-forest hover:text-white">
|
||||
<span class="flex-1 h-full text-xl font-medium leading-7 text-center">All</span>
|
||||
</a>
|
||||
{{$currentpage := .Page.Data.Term}}
|
||||
{{ range .Site.Taxonomies.categories }}
|
||||
{{ if eq $currentpage .Page.Title}}
|
||||
<a href="{{ .Page.Permalink }}" class="inline-flex items-center px-4 py-3 border bg-forest border-forest">
|
||||
<span class="h-full text-xl font-medium leading-7 text-center text-white">{{ .Page.Title }}</span>
|
||||
</a>
|
||||
{{ else }}
|
||||
<a href="{{ .Page.Permalink }}"
|
||||
class="inline-flex items-center px-4 py-3 border border-forest text-forest hover:bg-forest hover:text-white">
|
||||
<span class="h-full text-xl font-medium leading-7 text-center">{{ .Page.Title }}</span>
|
||||
</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
{{ $paginator := .Paginate (where .Pages "Type" "blog") }}
|
||||
<div class="grid grid-cols-2 gap-16">
|
||||
{{ range $paginator.Pages }}
|
||||
{{ partial "cards/blog-item" . }}
|
||||
{{ end }}
|
||||
</div>
|
||||
{{ template "partials/pagination.html" . }}
|
||||
|
||||
</div>
|
||||
{{ end }}
|
0
themes/main-theme/layouts/_default/single.html
Normal file
0
themes/main-theme/layouts/_default/single.html
Normal file
Reference in New Issue
Block a user