Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update home page #1126

Merged
merged 9 commits into from
Apr 13, 2024
Prev Previous commit
Next Next commit
docs: use blocks for scripts and fix misplaced nav
  • Loading branch information
sandydoo committed Apr 13, 2024
commit 89f46b3e9b9b808cd7f30ad6a79985f74fcc7ddf
17 changes: 12 additions & 5 deletions docs/overrides/home.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{% extends "main.html" %}

{% block scripts %}
{{ super() }}
<link rel="stylesheet" href="/assets/github-dark.min.css">
<script src="/assets/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
{% endblock %}

<!-- Render hero under tabs -->
{% block tabs %}
{{ super() }}
{% endblock %}

<link rel="stylesheet" href="/assets/github-dark.min.css">
<script src="/assets/highlight.min.js"></script>
<script>hljs.highlightAll();</script>
{% block site_nav %}
{% endblock %}

{% block hero %}

<div class="relative isolate overflow-hidden pt-14">
<div class="mx-auto max-w-3xl py-8 px-4">
Expand Down Expand Up @@ -702,7 +709,7 @@ <h2 class="text-2xl mb-6">Built by</h2>

{% endblock %}

<!-- Content -->
<!-- Override content -->
{% block content %}
{% endblock %}

Expand Down