code clean

This commit is contained in:
timurgordon
2022-02-18 15:04:23 +03:00
parent b37696ffc1
commit 36c0f5bc00
14 changed files with 37 additions and 167 deletions

View File

@@ -1,61 +0,0 @@
{% block content %}
<div class="font-sans text-center px-10 w-full md:w-2/3 lg:w-1/2 mx-auto">
<h1 class="tracking-tight pt-12 lg:pt-24 2xl:pt-32 text-5xl">{{ section.title }}</h1>
<div class="post-line"></div>
<div>
<p class="text-center text-sm mt-2 mb-2">
{% if paginator.previous %}
<a class="border-transparent" aria-label="First page" href="{{ paginator.first }}">{% include "partials/svgPrevPageIcon.html" %}{% include "partials/svgPrevPageIcon.html" %}</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a class="border-transparent" aria-label="Previous page" href="{{ paginator.previous }}">{% include "partials/svgPrevPageIcon.html" %}</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{% else %}
{% include "partials/svgFirstPageIcon.html" %}{% include "partials/svgFirstPageIcon.html" %}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{% include "partials/svgFirstPageIcon.html" %}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{% endif %}
{% if paginator.next %}
<a class="border-transparent" aria-label="Next page" href="{{ paginator.next }}">{% include "partials/svgNextPageIcon.html" %}</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a class="border-transparent" aria-label="Last page" href="{{ paginator.last }}">{% include "partials/svgNextPageIcon.html" %}{% include "partials/svgNextPageIcon.html" %}</a>
{% else %}
{% include "partials/svgLastPageIcon.html" %}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{% include "partials/svgLastPageIcon.html" %}{% include "partials/svgLastPageIcon.html" %}
{% endif %}
</p>
<hr class="mt-2 mb-6" />
{%- for post in paginator.pages %}
{% include "partials/postCard.html" %}
{%- endfor %}
<hr class="mt-6" />
<p class="text-center text-sm mt-2 mb-16">
{% if paginator.previous %}
<a class="border-transparent" aria-label="First page" href="{{ paginator.first }}">{% include "partials/svgPrevPageIcon.html" %}{% include "partials/svgPrevPageIcon.html" %}</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a class="border-transparent" aria-label="Previous page" href="{{ paginator.previous }}">{% include "partials/svgPrevPageIcon.html" %}</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{% else %}
{% include "partials/svgFirstPageIcon.html" %}{% include "partials/svgFirstPageIcon.html" %}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{% include "partials/svgFirstPageIcon.html" %}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{% endif %}
{% if paginator.next %}
<a class="border-transparent" aria-label="Next page" href="{{ paginator.next }}">{% include "partials/svgNextPageIcon.html" %}</a>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<a class="border-transparent" aria-label="Last page" href="{{ paginator.last }}">{% include "partials/svgNextPageIcon.html" %}{% include "partials/svgNextPageIcon.html" %}</a>
{% else %}
{% include "partials/svgLastPageIcon.html" %}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
{% include "partials/svgLastPageIcon.html" %}{% include "partials/svgLastPageIcon.html" %}
{% endif %}
</p>
</div>
</div> {% endblock content %}

View File

@@ -8,7 +8,7 @@
<article class="article lg:w-7/12 mx-auto">
<h1 class="tracking-tight pt-12 lg:pt-12 2xl:pt-32 text-5xl text-left
text-5xl fw-500 leading-snug font-normal mb-10">
hey{{ page.title }}
{{ page.title }}
</h1>
<h4 class="text-sm not-italic font-light leading-6 text-gray-600">
</h4>

View File

@@ -1,7 +1,4 @@
{% extends "index.html" %}
{% block content %}
<div>yoo</div>
{% endblock content %}

View File

@@ -1,31 +0,0 @@
{% extends "_default/base.html" %}
{% block content %}
<!-- Landing page template, has a banner and rows of page summaries -->
<main class="pt-16">
<!-- Landing page banner -->
{% include "partials/splitRow.html" %}
<!-- Landing page full width vertical image -->
<img src="/images/threefold_img2.png" alt="">
<br/>
{%- set section = get_section(path="about/community/_index.md") %}
{% include "partials/splitRow.html" %}
<br/>
<!-- Summary row of sustainability page -->
{%- set section = get_section(path="about/sustainability/_index.md") %}
{% include "partials/splitRow.html" %}
<br/>
<!-- Summary row of creators page -->
{%- set section = get_section(path="about/creators/_index.md") %}
{% include "partials/splitRow.html" %}
</main>
{% endblock content %}

View File

@@ -3,9 +3,6 @@
<!-- Landing page template, has a banner and rows of page summaries -->
<main class="pt-16">
{{section.content | safe}}
</main>
{% endblock content %}

View File

@@ -3,7 +3,7 @@
<!-- Page template for blog posts and basic informative markdown files -->
<h1 class="title">
{{ section.title }} yooo
{{ section.title }}
</h1>
<ul>
{% for page in section.pages %}

View File

@@ -33,8 +33,6 @@
{%- set section = get_section(path="header/_index.md") %}
{% set header_items = section.content | safe | split(pat="<li>") %}
<body>
<div class="z-10 bg-white fixed w-screen">
<div class="relative z-10 shadow">
@@ -70,6 +68,9 @@
-->
</button>
</div>
<a href="/careers" class="text-sm leading-6 font-normal text-gray-500 hover:text-gray-900 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
Careers
</a>
<a href="/blog" class="text-sm leading-6 font-normal text-gray-500 hover:text-gray-900 focus:outline-none focus:text-gray-900 transition ease-in-out duration-150 mt-0">
Blog
</a>

View File

@@ -1,26 +0,0 @@
<!-- Split Row partial.
Basic row with a heading, description and link (optional) on the left,
And an img on the right. Used to summarize pages in landing page etc, and as page headers.
-->
<body>
<div class="relative mt-12 lg:mt-24 lg:grid lg:grid-cols-2 lg:gap-8 lg:items-center m-20">
<div class="relative lg:w-11/12">
<h1 class="text-5xl fw-500 font-normal mb-10">
{{ section.title }}
</h1>
<p class="text-sm leading-6 text-gray-800">
{{ section.description }}
</p>
</div>
<div class="mt-10 -mx-4 relative lg:mt-0 max-w-full">
<img class="relative mx-auto max-w-full max-h-80 mr-0" src=/{{section.extra.imgPath}} alt="" />
</div>
</div>
</div>
</div>
</body>