remove old jobs code

This commit is contained in:
LinuxSquare 2024-03-09 13:50:46 +01:00
parent 14e802da96
commit 908abfb1eb

View file

@ -1,38 +1,5 @@
<!-- Get Data maybe from strapi --> <!-- Get Data maybe from strapi -->
<div id="jobsContainer" class="flex flex-col"> <div id="jobsContainer" class="flex flex-col"></div>
<!-- Check if open jobs are available
{{ if le (index (.Site.Data.jobs) 0) 0 }}
<div class="flex-auto">
<h2>There are currently no open jobs to apply for</h2>
<p class="small">Please again to a different time</p>
</div>
{{ end }}
Range through all available job offerings
{{ range .Site.Data.jobs }}
<div class="flex-auto">
<h2>{{.title}}</h2>
{{ if gt (len .sub) 0 }}
<div class="flex flex-row text-2xl">
{{ range .sub }}
{{ if (eq .source "mdi" ) }}
<span class="iconify" data-icon="mdi-{{.icon}}"></span>
{{ else }}
<span class="icon">
<img height="20" width="20" src="https://cdn.jsdelivr.net/npm/simple-icons@v10/icons/{{.icon}}.svg" />
</span>
{{ end }}
{{ end }}
</div>
{{ end }}
<p>{{.description}}</p>
</div>
<button
type="button"
class="text-white bg-blue-700 hover:bg-blue-800 focus:outline-none focus:ring-4 focus:ring-blue-300 font-medium rounded-full text-sm px-5 py-2.5 text-center me-2 mb-2 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 max-w-2xs"
onclick="openApplyForm('{{.title}}')">Apply</button>
{{ end }} -->
</div>
<script src="/js/jobs.js"></script> <script src="/js/jobs.js"></script>
<form action="/" id="apply-form" class="invisible"> <form action="/" id="apply-form" class="invisible">