init refactor to drop juice index template
This commit is contained in:
parent
69baa309a3
commit
cb3bacb7f5
8 changed files with 124 additions and 100 deletions
|
|
@ -1,113 +1,82 @@
|
|||
{% extends "juice/templates/index.html" %}
|
||||
{% import "_macros.html" as macros %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="{{ lang }}">
|
||||
|
||||
{% block head %}
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
|
||||
<!-- <title>Software, Product Developement and IT consulting</title> -->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
{% block favicon %}
|
||||
<link rel="icon" href="/flat_blocks.svg" sizes="any" type="image/svg+xml">
|
||||
{% endblock favicon %}
|
||||
|
||||
<link rel="icon" href="/flat_blocks.svg" sizes="any" type="image/svg+xml">
|
||||
{% include "_variables.html" %}
|
||||
|
||||
<!-- <link rel="stylesheet" href="{{ get_url(path='carbon.css') }}"> -->
|
||||
<link rel="stylesheet" href="{{ get_url(path='form.css') }}">
|
||||
<link rel="stylesheet" href="{{ get_url(path='style.css') }}">
|
||||
<link rel="stylesheet" href="{{ get_url(path='darkmode_toggle.css') }}">
|
||||
{% block fonts %}
|
||||
<link href="https://fonts.googleapis.com/css?family=Alfa+Slab+One&display=swap" rel="stylesheet">
|
||||
<link href="https://fonts.googleapis.com/css?family=Fira+Sans:400,500,600&display=swap" rel="stylesheet">
|
||||
{% endblock fonts %}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/syntax-theme-dark.css" media="(prefers-color-scheme: dark)" />
|
||||
<link rel="stylesheet" type="text/css" href="/syntax-theme-light.css" media="(prefers-color-scheme: light)" />
|
||||
<link rel="stylesheet" href="/normalize.css">
|
||||
<link rel="stylesheet" href="{{ get_url(path='juice.css') }}">
|
||||
<link rel="stylesheet" href="{{ get_url(path='form.css') }}">
|
||||
<link rel="stylesheet" href="{{ get_url(path='style.css') }}">
|
||||
<link rel="stylesheet" href="{{ get_url(path='darkmode_toggle.css') }}">
|
||||
<link rel="stylesheet" type="text/css" href="{{ get_url(path='cards.css') }}" />
|
||||
<link rel="stylesheet" type="text/css" href="/syntax-theme-dark.css" media="(prefers-color-scheme: dark)" />
|
||||
<link rel="stylesheet" type="text/css" href="/syntax-theme-light.css" media="(prefers-color-scheme: light)" />
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css"
|
||||
integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous">
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"
|
||||
integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg"
|
||||
crossorigin="anonymous"></script>
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css"
|
||||
integrity="sha384-nB0miv6/jRmo5UMMR1wu3Gz6NLsoTkbqJghGIsx//Rlm+ZU03BU6SQNC66uf4l5+" crossorigin="anonymous">
|
||||
<!-- To automatically render math in text elements, include the auto-render extension: -->
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js"
|
||||
integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous"
|
||||
onload="renderMathInElement(document.body);"></script>
|
||||
|
||||
<!-- The loading of KaTeX is deferred to speed up page rendering -->
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.js"
|
||||
integrity="sha384-7zkQWkzuo3B5mTepMUcHkMB5jZaolc2xDwL6VFqjFALcbeS9Ggm/Yr2r3Dy4lfFg" crossorigin="anonymous"></script>
|
||||
<script src="https://unpkg.com/htmx.org@2.0.3"
|
||||
integrity="sha384-0895/pl2MU10Hqc6jd4RvrthNlDiE9U1tWmX7WRESftEDRosgxNsQG/Ze9YMRzHq"
|
||||
crossorigin="anonymous"></script>
|
||||
<script src="https://unpkg.com/hyperscript.org@0.9.13"></script>
|
||||
|
||||
<!-- To automatically render math in text elements, include the auto-render extension: -->
|
||||
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/contrib/auto-render.min.js"
|
||||
integrity="sha384-43gviWU0YVjaDtb/GhzOouOXtZMP/7XUzwPTstBeZFe/+rCMvRwr4yROQP43s0Xk" crossorigin="anonymous"
|
||||
onload="renderMathInElement(document.body);"></script>
|
||||
|
||||
<script src="https://unpkg.com/htmx.org@2.0.3"
|
||||
integrity="sha384-0895/pl2MU10Hqc6jd4RvrthNlDiE9U1tWmX7WRESftEDRosgxNsQG/Ze9YMRzHq" crossorigin="anonymous"></script>
|
||||
|
||||
<title>Software, Product Developement and IT consulting</title>
|
||||
<meta charset="UTF-8">
|
||||
|
||||
<script src="https://unpkg.com/hyperscript.org@0.9.13"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{ get_url(path='cards.css') }}" />
|
||||
|
||||
{% endblock head %}
|
||||
{% block head %}
|
||||
{% endblock head %}
|
||||
|
||||
</head>
|
||||
|
||||
{% block body_tag%}
|
||||
|
||||
<body hx-boost="true">
|
||||
<body hx-boost="true" hx-target="next <main/>" hx-select="#main" hx-swap="outerHTML" id="top">
|
||||
{% endblock body_tag %}
|
||||
|
||||
|
||||
{% block header %}
|
||||
|
||||
<header class="pos-absolute" style="background-color: transparent">
|
||||
{{ macros::render_header(path="/") }}
|
||||
</header>
|
||||
<div class="hero">
|
||||
|
||||
{% block hero %}
|
||||
|
||||
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||
<section class="text-center">
|
||||
<h1 class="heading-text" style="font-size: 50px">
|
||||
{{ config.extra.slogan }}
|
||||
</h1>
|
||||
<h3 class="title-text">
|
||||
{{ section.extra.intro | safe }}
|
||||
</h3>
|
||||
<div>
|
||||
<!-- <a class="github-button" href="https://github.com/huhu/juice" data-size="large" data-show-count="true" -->
|
||||
<!-- aria-label="Star huhu/juice on GitHub">Star</a> -->
|
||||
<!-- <a class="github-button" href="https://github.com/huhu/juice/fork" data-size="large" data-show-count="true" -->
|
||||
<!-- aria-label="Fork huhu/juice on GitHub">Repos</a> -->
|
||||
</div>
|
||||
</section>
|
||||
<img class="hero-image" style="width: 50%" src="{{ get_url(path='build-blocks.svg') }}">
|
||||
|
||||
<div class="explore-more text" onclick="document.getElementById('features').scrollIntoView({behavior: 'smooth'})">
|
||||
Explore More ⇩
|
||||
</div>
|
||||
<style>
|
||||
.hero section {
|
||||
padding: 0 5rem;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
.hero section {
|
||||
padding: 0 2rem;
|
||||
}
|
||||
|
||||
.hero-image {
|
||||
display: none
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
{% endblock hero %}
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
{% endblock header %}
|
||||
|
||||
<main id="main">
|
||||
{% block hero %}
|
||||
{{ macros::hero(slogan=config.extra.slogan, intro=config.extra.intro)}}
|
||||
{% endblock hero %}
|
||||
|
||||
{% block toc %}
|
||||
{% endblock toc %}
|
||||
|
||||
{% block toc %}
|
||||
{% endblock toc %}
|
||||
{% block content %}
|
||||
<div class="content text">
|
||||
<div id="features" class="heading-text">{{section.title}}</div>
|
||||
{{ section.content | safe }}
|
||||
</div>
|
||||
{% endblock content %}
|
||||
|
||||
|
||||
|
||||
|
||||
{% block sidebar %}
|
||||
<!-- <div> -->
|
||||
<!-- Your cool sidebar -->
|
||||
<!-- </div> -->
|
||||
{% endblock sidebar %}
|
||||
{% block sidebar %}
|
||||
{% endblock sidebar %}
|
||||
</main>
|
||||
|
||||
|
||||
{% block footer %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue