This commit is contained in:
samaradel
2022-04-20 13:24:28 +02:00
parent 1654135fec
commit 379d116b42
22 changed files with 126 additions and 320 deletions

View File

@@ -48,7 +48,7 @@
<section class="post-tags container relative py-10">
{% for tag in page.taxonomies.tags %}
{% set fullpath = "/tags/" ~ tag %}
{% set fullpath = "/tags/" ~ tag | replace(from='_', to='-' ) %}
<button class="
text-xs
bg-transparent

View File

@@ -2,7 +2,7 @@
<div class="flex-1">
<a href={{ post.permalink }} class="block">
<div class="flex-shrink-0">
<img class="h-48 w-full mx-auto object-cover" src=/{{post.extra.imgPath}} alt="" />
{# <img class="h-48 w-full mx-auto object-cover" src=/{{post.extra.imgPath}} alt="" /> #}
</div>
<div class="flex-1 bg-white p-6 flex flex-col justify-between">

View File

@@ -0,0 +1,20 @@
<div class="flex flex-col rounded-lg shadow-lg overflow-hidden">
<div class="flex-1">
<a href={{ post.permalink }} class="block">
<div class="flex-shrink-0">
<img class="h-48 w-full mx-auto object-cover" src=/{{post.extra.imgPath}} alt="" />
</div>
<div class="flex-1 bg-white p-6 flex flex-col justify-between">
<h3 class="mt-2 text-xl leading-7 font-medium text-gray-900 text-left not-italic">
{{ post.title }}
</h3>
{% if post.description %}
<p class="mt-3 text-sm font-normal leading-6 text-gray-500 text-left">
{{ post.description }}
</p>
{% endif %}
</a>
</div>
</div>
</div>

View File

@@ -0,0 +1,69 @@
{% block content %}
<div class="text-center px-0 md:w-2/3 lg:w-2/3 mx-8 md:mx-12">
<h1
class="tracking-tight text-left text-2xl sm:text-3xl md:text-4xl lg:text-5xl fw-500 leading-snug font-normal mb-10"
>
{% set path_array = current_path | split(pat="/") %}
{% set taxonomy = path_array[1] %}
{% set tag = path_array[2] %}
{% if taxonomy == "tags" %} #
{{tag | replace(from='-', to='_' ) | title}}
{% endif %}
</h1>
<div>
<div class="mt-12 grid gap-5 max-w-lg mx-auto lg:grid-cols-2 xl:grid-cols-3 lg:max-w-none">
{%- for post in paginator.pages %}
{% if "Engineering" == "Engineering"%}
{% include "partials/tagCard.html" %}
{%endif%} {%- endfor %}
</div>
<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/icons/svgPrevPageIcon.html" %}{% include
"partials/icons/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/icons/svgPrevPageIcon.html" %}</a
>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {% else %} {%
include "partials/icons/svgFirstPageIcon.html" %}{% include
"partials/icons/svgFirstPageIcon.html" %}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {% include
"partials/icons/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/icons/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/icons/svgNextPageIcon.html" %}{% include
"partials/icons/svgNextPageIcon.html" %}</a
>
{% else %} {% include "partials/icons/svgLastPageIcon.html" %}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {% include
"partials/icons/svgLastPageIcon.html" %}{% include
"partials/icons/svgLastPageIcon.html" %} {% endif %}
</p>
</div>
</div>
{% endblock content %}

View File

@@ -0,0 +1,24 @@
<div class="mx-8 md:mx-4 flex flex-col">
<div class="flex flex-col mb-12 mr-8 lg:mr-24">
<h4 class="text-base not-italic font-medium leading-6 text-gray-600 mb-6"> FILTER BY</h4>
<a id="all" class="mb-3 text-black font-normal" href="/tags">All</a>
{% set taxonomy = get_taxonomy(kind="tags") %}
{% set tags = taxonomy.items %}
{% for tag in tags %}
{% set path = tag.name | slugify %}
{% set fullpath = "/tags/" ~ path %}
<a id="{{path}}" class="mb-3 text-black font-normal" href={{fullpath}}> #{{tag.name}} </a>
{% endfor %}
</div>
</div>
<script>
function setActiveCategory() {
let activeCategory = window.location.pathname.split("/")[2]
if (typeof activeCategory === "undefined") { activeLink = document.getElementById("all") }
else { activeLink = document.getElementById(activeCategory) }
activeLink.className = activeLink.className.replace("text-black font-normal", "text-black font-semibold");
}
setActiveCategory()
</script>

View File

@@ -20,31 +20,6 @@
</h1>
<div class="avatars">
<section>
<div class="avatars">
<div class="flex items-center">
<div class="flex justify-between items-center">
<ul class="list-none flex author-list m-0">
{% for member in page.extra.members %}
{% set fullpath = "/people/" ~ member %}
{% set imgpath = "/images/" ~ member ~ "/" ~ member ~ ".jpeg" %}
<li class="author-list-item">
<a href="{{fullpath}}">
<img src="{{imgpath}}" alt="{{member}}" class="
w-8
h-8
rounded-full
bg-gray-200
border-2 border-white
" />
</a>
</li>
{% endfor %}
</ul>
</div>
</div>
</div>
</section>
<section class="container mx-auto py-2">
<ul class="list-none flex author-list my-2 px-0">
{% if page.extra.websites %}
@@ -63,21 +38,10 @@
{% endif %}
</ul>
{% for tag in page.taxonomies.tags %}
{% set fullpath = "/tags/" ~ tag %}
<a href="{{ fullpath }}" class="
text-xs
bg-transparent
hover:text-blue-700
py-2
px-4
mr-2
border
hover:border-blue-500
border-gray-600
text-gray-700
rounded-full
">{{ tag }}</a>
{% endfor %}
<a href="{{'tags/' ~ tag}}" class="border-1 font-light text-xs bg-transparent hover:text-blue-700 py-2 px-4 mr-2 border hover:border-blue-500 border-gray-600 text-gray-700 rounded-full ">
{{tag}}
</a>
{% endfor %}
</section>
</div>
</div>

View File

@@ -1,7 +0,0 @@
{% extends "index.html" %}
{% block content %}
{{ terms }}
{% endblock content %}

View File

@@ -1,12 +0,0 @@
{% extends "index.html" %}
{% block content %}
{% set section = get_section(path="join-us/_index.md")%}
<main class="pt-16">
{{ section.content | safe}}
<hr>
{% include "partials/page_list.html" %}
</main>
{% endblock content %}

View File

@@ -8,6 +8,9 @@
{% if current_path is containing("partners") %}
{% include "partials/partnersCards.html" %}
{% include "partials/partnersSidebar.html" %}
{% elif current_path is containing("tags") %}
{% include "partials/tagsCards.html" %}
{% include "partials/tagsSidebar.html" %}
{% elif current_path is containing("memberships") %}
{% include "partials/memberships.html" %}
{% else %}