ubdate base
This commit is contained in:
@@ -1,46 +1,10 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="overflow-hidden">
|
||||
<!-- <div class="px-4 py-5 sm:px-6 text-center">
|
||||
<h2 class="text-2xl font-bold text-gray-900">
|
||||
Welcome to {{ config.title }}
|
||||
</h2>
|
||||
<p class="mt-1 max-w-2xl mx-auto text-sm text-gray-500">
|
||||
A beautiful site built with Zola and Tailwind CSS.
|
||||
</p>
|
||||
</div> -->
|
||||
<div>
|
||||
<div class="px-4 py-5 sm:p-6">
|
||||
<div class="">
|
||||
{% if section is defined and section.content is defined %}
|
||||
{{ section.content | safe }}
|
||||
{% elif page is defined and page.content is defined %}
|
||||
{{ page.content | safe }}
|
||||
{% else %}
|
||||
<p>This is a starter template for your Zola site with Tailwind CSS.</p>
|
||||
<p>Edit the content in <code>content/_index.md</code> to customize this page.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<<!-- home page template, has a banner and rows of page summaries -->
|
||||
<div>
|
||||
{% set page = get_page(path="home/index.md") %}
|
||||
{{page.content | safe}}
|
||||
</div>
|
||||
|
||||
{% if section is defined and section.pages is defined %}
|
||||
<!-- <div class="mt-8 grid gap-6 grid-cols-1 md:grid-cols-2 lg:grid-cols-3">
|
||||
{% for page in section.pages %}
|
||||
<a href="{{ page.permalink }}" class="bg-white overflow-hidden shadow rounded-lg hover:shadow-lg transition-shadow duration-300">
|
||||
<div class="px-4 py-5 sm:p-6">
|
||||
<h3 class="text-lg font-medium text-gray-900 truncate">{{ page.title }}</h3>
|
||||
{% if page.description %}
|
||||
<p class="mt-1 text-sm text-gray-500">{{ page.description }}</p>
|
||||
{% endif %}
|
||||
<div class="mt-4 flex items-center text-sm text-gray-500">
|
||||
<span>{{ page.date | date(format="%B %e, %Y") }}</span>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
</div> -->
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endblock content %}
|
||||
|
Reference in New Issue
Block a user