feat: añadido sitemap custom
This commit is contained in:
@@ -39,27 +39,25 @@
|
||||
</div>
|
||||
<hr class="m-4" />
|
||||
|
||||
<div class="flex justify-center p-8 flex-col items-center bg-teal-200 rounded-t-lg shadow-md">
|
||||
<p
|
||||
class="underline font-serif font-bold text-2xl md:text-4xl lg:text-5xl self-center"
|
||||
>
|
||||
Sitemap
|
||||
</p>
|
||||
|
||||
{{partial "sitemap.html"}}
|
||||
</div>
|
||||
|
||||
<hr class="m-4" />
|
||||
<!-- Aca esta la parte de abajo de la portada -->
|
||||
|
||||
<div class="flex justify-center p-8 flex-col items-center bg-sky-200 rounded-t-lg shadow-md">
|
||||
<div
|
||||
class="w-[80%] rounded-lg overflow-hidden border-2 shadow-2xl bg-[radial-gradient(circle,rgba(0,0,0,0)_0%,rgba(0,0,0,0.5)_70%,#ffffff_100%),repeating-linear-gradient(45deg,#000000,#000000_10px,#ffffff_10px,#ffffff_20px)]"
|
||||
<p
|
||||
class="underline font-serif font-bold text-2xl md:text-4xl lg:text-5xl self-center"
|
||||
>
|
||||
<div class="px-6 py-4 flex flex-col sm:flex-row justify-between">
|
||||
<span
|
||||
class="inline-block bg-gray-200 border rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2 mb-2 sm:mb-0"
|
||||
>
|
||||
<div class="font-bold text-black text-xl">Portfolio</div>
|
||||
</span>
|
||||
<span
|
||||
class="inline-block bg-gray-200 border rounded-full px-3 py-1 text-sm font-semibold text-gray-700 mr-2"
|
||||
>
|
||||
<p class="text-black text-sm md:text-xl">
|
||||
Algunos proyectos que he estado haciendo
|
||||
</p>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
Portfolio
|
||||
</p>
|
||||
{{partial "proyectos.html" .}}
|
||||
{{partial "posts.html" .}}
|
||||
</div>
|
||||
|
||||
41
layouts/partials/sitemap.html
Normal file
41
layouts/partials/sitemap.html
Normal file
@@ -0,0 +1,41 @@
|
||||
<div class="container mx-auto px-4 py-8">
|
||||
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
|
||||
{{ range where site.RegularPages "Section" "sitemap" }}
|
||||
<div
|
||||
class="
|
||||
bg-white rounded-lg
|
||||
border-4 border-black
|
||||
shadow-[0_4px_0_black]
|
||||
hover:shadow-[0_8px_0_black]
|
||||
hover:-translate-y-1
|
||||
hover:scale-105
|
||||
transition-all duration-100 ease-linear
|
||||
overflow-hidden
|
||||
transform
|
||||
mx-auto
|
||||
hover:z-2
|
||||
"
|
||||
>
|
||||
<a href="{{ .Params.redirect }}" class="block w-86 h-48">
|
||||
|
||||
{{ if .Params.image }}
|
||||
<img
|
||||
src="{{ .Params.image }}"
|
||||
alt="{{ .Title }}"
|
||||
class="w-full h-48 object-cover"
|
||||
/>
|
||||
{{ else }}
|
||||
<div class="w-full h-48 border border-gray-200 flex flex-col justify-center items-center p-5">
|
||||
<span class="text-gray-700 font-mono text-lg font-medium leading-tight">
|
||||
{{ .Params.title }}
|
||||
</span>
|
||||
<p class="text-gray-400 font-mono text-sm line-clamp-2 bg-grey-300 p-1 rounded-lg">
|
||||
{{ .Params.redirect }}
|
||||
</p>
|
||||
</div>
|
||||
{{ end }}
|
||||
</a>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user