<commit_before>{{ define "header" }}{{- partial "_global/header_alt.html" . -}}{{ end }}

{{ define "main" }}
  {{ $tools := where .Site.RegularPages "Section" "tool"}}
  {{ $tools_top := $tools }}
  {{ $tools_new := $tools }}


<div class="page-list_default mt-16 center mx-auto">


<div class="sm:grid lg:px-4 grid-columns-12 grid-gap-4">


  <div class="col-span-9">
    <div class="borderTK p-8 sm:grid grid-columns-12 grid-gap-4">
      <div class="col-span-4">
          <img src="/uploads/fast.svg" alt="" class="h-64 ">
      </div>
      <div class="col-span-8">
        <p class="font-brand text-4xl lh-copy grey-dark mb-4 max-w-sm">
          {{- .Site.Params.description -}}
        </p>
        {{ with .Content }}{{ . }}{{ end }}
      </div>
    </div>
    <div class="mt-8 grid-columns-2 grid-gap-4 sm:grid lg:grid-columns-3">


        {{ $featured := where (.Site.RegularPages) "Section" "showcase" }}
        {{ range first 1 ($featured) }}
          <div class="col-span-2">
            {{- partial "showcase/display-horizontal.html" . -}}
          </div>
        {{ end }}

      {{ partial "articles-cards.html" (dict "limit" 4 "item" .) }}
    </div>
  </div>


  <div class="rightt col-span-3">

    <div class="bg-grey-lighter mb-8 p-8">
      <h3>Join the Conversation</h3>
      <div class="inline-block hidden lg:flex flex-wrap items-center">
        {{ partial "_components/social-follow.html" (dict "cx" . "icon_size" "26px") }}
      </div>
    </div>


      <div class="bg-grey-lighter mb-8 p-8">
        <h3>Top Tools</h3>
        <ul class="list-reset">
          {{ range first 10 $tools_top }}
            <li class="mb-1">
              <a href="{{ .Permalink }}" class="no-underline dim text-black">
                {{ .Title }}
              </a>
            </li>
          {{ end }}
        </ul>
      </div>

      <div class="bg-grey-lighter p-8">
        <h3 class="mt-8">New Tools</h3>
        <ul class="list-reset">
          {{ range first 10 $tools_top }}
            <li class="mb-1">
              <a href="{{ .Permalink }}" class="no-underline dim text-black">
                {{ .Title }}
              </a>
            </li>
          {{ end }}
        </ul>
      </div>


  </div>


</div>
</div>
{{ end }}<commit_msg>[wip] Add videos to home page<commit_after>{{ define "header" }}{{- partial "_global/header_alt.html" . -}}{{ end }}

{{ define "main" }}
  {{ $tools := where .Site.RegularPages "Section" "tool"}}
  {{ $tools_top := $tools }}
  {{ $tools_new := $tools }}


<div class="page-list_default mt-16 center mx-auto">

  <div class="sm:grid lg:px-4 grid-columns-12 grid-gap-4">

    <div class="col-span-9">
      <div class="borderTK p-8 sm:grid grid-columns-12 grid-gap-4">
        <div class="col-span-4">
            <img src="/uploads/fast.svg" alt="" class="h-64 ">
        </div>
        <div class="col-span-8">
          <p class="font-brand text-4xl lh-copy grey-dark mb-4 max-w-sm">
            {{- .Site.Params.description -}}
          </p>
          {{ with .Content }}{{ . }}{{ end }}
        </div>
      </div>
      <div class="mt-8 grid-columns-2 grid-gap-4 sm:grid lg:grid-columns-3">
        {{ $featured := where (.Site.RegularPages) "Section" "showcase" }}
        {{ range first 1 ($featured) }}
          <div class="col-span-2">
            {{- partial "showcase/display-horizontal.html" . -}}
          </div>
        {{ end }}
        {{ partial "articles-cards.html" (dict "limit" 4 "item" .) }}
      </div>
    </div>


    <div class="rightt col-span-3">

      <div class="bg-grey-lighter mb-8 p-8">
        <h3>Join the Conversation</h3>
        <div class="inline-block hidden lg:flex flex-wrap items-center">
          {{ partial "_components/social-follow.html" (dict "cx" . "icon_size" "26px") }}
        </div>
      </div>

      <div class="bg-grey-lighter mb-8 p-8">
        <h3>Top Tools</h3>
        <ul class="list-reset">
          {{ range first 10 $tools_top }}
            <li class="mb-1">
              <a href="{{ .Permalink }}" class="no-underline dim text-black">
                {{ .Title }}
              </a>
            </li>
          {{ end }}
        </ul>
      </div>

      <div class="bg-grey-lighter p-8">
        <h3 class="mt-8">New Tools</h3>
        <ul class="list-reset">
          {{ range first 10 $tools_top }}
            <li class="mb-1">
              <a href="{{ .Permalink }}" class="no-underline dim text-black">
                {{ .Title }}
              </a>
            </li>
          {{ end }}
        </ul>
      </div>
      </div>
  </div>

  <div class="lg:px-4">
    <div class="flex items-center mb-2">
      <h2 class="inline-block text-4xl">
        <a href="/video/" class="no-underline dim text-black">Video</a>
      </h2>
      <a href="/video/" class="ml-4 dim inline-block bg-grey-dark rounded px-2 py-1f no-underline text-xs text-grey-lighter">
        see all
      </a>
    </div>

    <div class="sm:grid grid-columns-4 grid-gap-4">
      {{range first 4 (where .Site.RegularPages "Section" "video")}}
        {{ $vendor := .Params.vendor }}
        {{ $url := .URL }}
        {{ $title := .Title }}
        {{ with .Params.video_id }}
          <div class="p-0">
            {{ $.Scratch.Set "video_id" . }}
            <a href="{{ $url }}" class="no-underline">
              <img src="/images/placeholder.svg" data-src="{{ if eq $vendor "YouTube" }}http://img.youtube.com/vi/{{ . }}/hqdefault.jpg{{ else if eq $vendor "Vimeo" }}https://i.vimeocdn.com/video/{{ . }}_640.jpg{{ end }}" alt="" class="lazyload max-w-full">
            </a>
            <h3 class="text-base">{{ $title }}</h3>
          </div>
        {{ end }}
      {{ end }}
    </div>
  </div>

</div>

{{ end }}
{'fraction_non_alphanumeric': 0.20319833130540588, 'fraction_numerical': 0.018598991830349382, 'mean_word_length': 1.8303000491883916, 'pattern_counts': {'":': 0, '<': 116, '<?xml version=': 0, '>': 116, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2179455', 'n_tokens_mistral': 2040, 'n_tokens_neox': 1955, 'n_words': 427}