Update zola.toml to include site title, description, theme, and additional URLs for navigation

This commit is contained in:
Hananoshika Yomaru 2026-05-18 21:06:12 -07:00
parent 5548bfce90
commit ab87bc2bd1
59 changed files with 4068 additions and 1 deletions

View file

@ -0,0 +1,493 @@
h1,
h2,
h3 {
margin: 0;
font-family: var(--font-heading);
font-weight: 400;
}
.site-header {
position: sticky;
top: 0;
z-index: 8;
border-bottom: 1px solid transparent;
transition: background-color 320ms ease, border-color 320ms ease, box-shadow 320ms ease;
}
.site-header.is-scrolled {
backdrop-filter: blur(10px);
background: var(--header-bg-scrolled);
border-color: var(--line);
box-shadow: 0 8px 20px var(--shadow-soft);
}
.header-row {
padding: 24px 0;
display: flex;
justify-content: space-between;
align-items: center;
gap: 20px;
transition: padding 320ms ease;
}
.site-header.is-scrolled .header-row {
padding: 13px 0;
}
.brand {
display: flex;
align-items: center;
gap: 12px;
}
.brand-name {
font-family: var(--font-heading);
font-weight: 400;
font-size: 1.2rem;
color: var(--ink);
text-decoration: none;
}
.brand-name:hover,
.brand-name:focus-visible {
color: var(--accent);
}
.header-actions {
display: flex;
align-items: center;
gap: 16px;
}
.main-nav {
display: flex;
gap: 26px;
}
.main-nav a {
color: var(--soft-ink);
letter-spacing: 0.14em;
text-transform: uppercase;
font-size: 0.7rem;
font-weight: 700;
font-family: var(--mono);
text-decoration: none;
}
.main-nav a:hover,
.main-nav a:focus-visible {
color: var(--accent);
}
.theme-toggle {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
margin: 0;
padding: 0;
border: 1px solid var(--line);
border-radius: 8px;
background: transparent;
color: var(--ink);
cursor: pointer;
transition: background-color 0.2s ease, border-color 0.2s ease;
}
.theme-toggle:hover {
background: color-mix(in srgb, var(--accent) 10%, transparent);
border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
}
.theme-toggle:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.nav-burger {
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
gap: 5px;
width: 32px;
height: 32px;
margin: 0;
padding: 0;
border: 0;
border-radius: 8px;
background: transparent;
color: var(--ink);
cursor: pointer;
position: relative;
z-index: 10003;
transition: background-color 0.2s ease;
}
.nav-burger:hover {
background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.nav-burger:focus-visible {
outline: 2px solid var(--accent);
outline-offset: 2px;
}
.nav-burger-line {
display: block;
width: 22px;
height: 2px;
border-radius: 1px;
background: currentColor;
transition: transform 0.32s ease, opacity 0.24s ease;
}
.site-header.nav-is-open .nav-burger-line:nth-child(1) {
transform: translateY(7px) rotate(45deg);
}
.site-header.nav-is-open .nav-burger-line:nth-child(2) {
opacity: 0;
}
.site-header.nav-is-open .nav-burger-line:nth-child(3) {
transform: translateY(-7px) rotate(-45deg);
}
.nav-backdrop {
display: none;
}
.mobile-nav-panel {
display: none;
}
.hero {
position: relative;
min-height: min(88vh, 720px);
display: flex;
flex-direction: column;
padding: 0;
}
.hero .container {
flex: 1;
display: flex;
flex-direction: column;
justify-content: center;
padding-block: clamp(2rem, 6vh, 5rem);
}
.hero h1 {
max-width: 860px;
font-size: clamp(2.2rem, 5.2vw, 4.2rem);
line-height: 1.08;
}
.hero-lead {
max-width: 680px;
margin: 24px 0 16px;
color: var(--soft-ink);
font-size: clamp(1.05rem, 1.9vw, 1.35rem);
line-height: 1.55;
}
.hero-points {
max-width: 680px;
margin: 0 0 32px;
padding: 0;
list-style: none;
color: var(--soft-ink);
font-size: 1.02rem;
line-height: 1.65;
}
.hero-points li {
margin-bottom: 0.5rem;
padding-left: 1.25rem;
position: relative;
}
.hero-points li::before {
content: "—";
position: absolute;
left: 0;
color: var(--accent);
}
.hero-actions {
display: flex;
flex-wrap: wrap;
gap: 20px;
align-items: center;
}
.button {
display: inline-flex;
align-items: center;
justify-content: center;
border-radius: 4px;
padding: 16px 32px;
text-decoration: none;
font-weight: 700;
font-size: 0.93rem;
letter-spacing: 0.02em;
border: 1px solid transparent;
transition: transform 200ms ease, box-shadow 200ms ease, color 200ms ease;
}
.button-primary {
background: var(--accent);
color: #fff;
}
.button-primary:hover {
transform: translateY(-1px);
box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent);
}
.button-secondary {
color: var(--ink);
border-color: transparent;
background: transparent;
padding-left: 0;
padding-right: 0;
border-radius: 0;
}
.button-secondary:hover {
color: var(--accent);
}
.section-kicker {
margin-bottom: 8px;
font-size: 0.72rem;
letter-spacing: 0.16em;
color: var(--accent);
text-transform: uppercase;
font-weight: 700;
font-family: var(--mono);
}
.section-title {
font-size: clamp(1.75rem, 3.1vw, 2.8rem);
margin-bottom: 24px;
}
.section-note {
margin-top: 14px;
color: var(--muted);
font-size: 0.88rem;
}
.work-grid {
display: grid;
gap: 18px;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.work-card {
background: var(--card-bg);
border: 1px solid var(--card-border);
border-radius: 0;
overflow: hidden;
padding: 24px;
transition: transform 350ms ease, opacity 500ms ease, translate 500ms ease;
opacity: 0;
translate: 0 20px;
}
.work-card.is-inview {
opacity: 1;
translate: 0 0;
}
.work-card:hover {
transform: scale(1.01);
}
.work-card h3 {
margin: 0 0 12px;
font-size: clamp(1.4rem, 2vw, 1.85rem);
line-height: 1.2;
}
.work-card p {
color: var(--soft-ink);
margin: 0;
font-size: 1.02rem;
line-height: 1.7;
}
.card-subtitle {
font-style: italic;
color: var(--muted);
font-size: 0.98rem;
margin-bottom: 12px;
}
.marquee-shell {
margin: 0;
padding: 0;
}
.marquee {
overflow: hidden;
white-space: nowrap;
width: 100vw;
margin-left: calc(-50vw + 50%);
padding: 14px 0;
}
.marquee-track {
display: inline-flex;
align-items: center;
animation: marquee-slide 32s linear infinite;
}
.marquee-text {
font-family: var(--font-heading);
font-style: italic;
font-weight: 400;
color: color-mix(in srgb, var(--ink) 72%, transparent);
font-size: clamp(1.25rem, 2.3vw, 1.65rem);
line-height: 1.22;
user-select: none;
white-space: nowrap;
display: inline-block;
padding-right: 3rem;
}
.marquee-line {
height: 1px;
background: linear-gradient(
90deg,
color-mix(in srgb, var(--accent) 45%, transparent) 0%,
color-mix(in srgb, var(--accent) 20%, transparent) 100%
);
}
@keyframes marquee-slide {
from {
transform: translateX(0);
}
to {
transform: translateX(-33.333333%);
}
}
@media (max-width: 900px) {
.work-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 467px) {
.nav-burger {
display: inline-flex;
margin-left: auto;
}
.header-actions .main-nav {
display: none;
}
.site-header.nav-is-open {
z-index: 10000;
background-color: var(--paper);
border-bottom-color: var(--line);
box-shadow: 0 8px 20px var(--shadow-soft);
backdrop-filter: none;
}
.nav-backdrop {
display: block;
position: fixed;
inset: 0;
z-index: 10001;
background: rgba(22, 22, 22, 0.48);
backdrop-filter: blur(10px);
opacity: 0;
pointer-events: none;
transition: opacity 0.3s ease;
}
.site-header.nav-is-open .nav-backdrop {
opacity: 1;
pointer-events: auto;
}
.mobile-nav-panel {
position: fixed;
inset: 0;
z-index: 10002;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
gap: 0;
padding: 96px 28px 40px;
margin: 0;
background-color: var(--paper);
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: none;
}
.mobile-nav-panel::before {
content: "";
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
opacity: 0.7;
mix-blend-mode: multiply;
background-image: var(--grain-svg);
background-size: 180px 180px;
}
.site-header.nav-is-open .mobile-nav-panel {
opacity: 1;
visibility: visible;
pointer-events: auto;
transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-panel a {
position: relative;
z-index: 1;
color: var(--soft-ink);
letter-spacing: 0.14em;
text-transform: uppercase;
font-size: 1.05rem;
font-weight: 700;
font-family: var(--mono);
text-decoration: none;
padding: 14px 0;
width: 100%;
}
.mobile-nav-panel a:hover {
color: var(--accent);
}
}
@media (prefers-reduced-motion: reduce) {
.marquee-track {
animation: none;
}
.work-card {
opacity: 1;
translate: 0 0;
transition: none;
}
}
@media (hover: none), (pointer: coarse) {
.marquee-track {
animation-duration: 48s;
}
}

View file

@ -0,0 +1,23 @@
body::before {
content: "";
position: fixed;
inset: 0;
z-index: 9999;
pointer-events: none;
opacity: 0.7;
mix-blend-mode: multiply;
background-image: var(--grain-svg);
background-size: 180px 180px;
}
[data-theme="dark"] body::before {
opacity: 0.45;
mix-blend-mode: soft-light;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) body::before {
opacity: 0.45;
mix-blend-mode: soft-light;
}
}

View file

@ -0,0 +1,67 @@
* {
box-sizing: border-box;
}
html {
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}
}
html,
body {
margin: 0;
padding: 0;
background: var(--paper);
color: var(--ink);
font-family: var(--font-body);
}
.container {
width: min(1100px, 92vw);
margin: 0 auto;
}
main {
min-height: 50vh;
}
section {
padding: 54px 0;
}
section.hero {
padding: 0;
}
.footer {
border-top: 1px solid var(--line);
margin-top: 45px;
padding: 20px 0 34px;
color: var(--soft-ink);
font-size: 0.84rem;
}
.footer-inner {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: baseline;
gap: 12px 20px;
}
.footer-link {
font-size: 0.78rem;
color: var(--muted);
text-decoration: none;
letter-spacing: 0.02em;
}
.footer-link:hover,
.footer-link:focus-visible {
color: var(--accent);
}

View file

@ -0,0 +1,46 @@
:root {
--ink: #1a1a1a;
--soft-ink: #555;
--muted: #767676;
--accent: #9a6b2e;
--line: #e8e8e8;
--paper: #f5f4f1;
--header-bg-scrolled: rgba(252, 252, 253, 0.9);
--card-bg: rgba(255, 255, 255, 0.66);
--card-border: rgba(26, 26, 26, 0.08);
--shadow-soft: rgba(20, 20, 20, 0.04);
--mono: "IBM Plex Mono", "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono",
"Courier New", monospace;
--font-heading: "Instrument Serif", serif;
--font-body: Inter, Arial, sans-serif;
--prose-width: 68ch;
--grain-svg: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.55'/%3E%3C/svg%3E");
}
[data-theme="dark"] {
--ink: #eceae4;
--soft-ink: #b8b4ab;
--muted: #8f8a80;
--accent: #c4924a;
--line: #3a3834;
--paper: #1a1917;
--header-bg-scrolled: rgba(26, 25, 23, 0.92);
--card-bg: rgba(36, 34, 31, 0.72);
--card-border: rgba(236, 234, 228, 0.1);
--shadow-soft: rgba(0, 0, 0, 0.25);
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--ink: #eceae4;
--soft-ink: #b8b4ab;
--muted: #8f8a80;
--accent: #c4924a;
--line: #3a3834;
--paper: #1a1917;
--header-bg-scrolled: rgba(26, 25, 23, 0.92);
--card-bg: rgba(36, 34, 31, 0.72);
--card-border: rgba(236, 234, 228, 0.1);
--shadow-soft: rgba(0, 0, 0, 0.25);
}
}

View file

@ -0,0 +1,4 @@
@import "tokens";
@import "grain";
@import "layout";
@import "components";

View file

@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Page not found | Open Free Books</title>
<meta name="description" content="Free, open-source textbooks for every learner — elementary through university." />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="icon" type="image/x-icon" href="https://openfreebooks.org/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="https://openfreebooks.org/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="https://openfreebooks.org/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="https://openfreebooks.org/favicon-16x16.png" />
<link rel="manifest" href="https://openfreebooks.org/site.webmanifest" />
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="https://openfreebooks.org/main.css" />
</head>
<body>
<script id="site-config" type="application/json">
{
"brand": "Open Free Books",
"homeUrl": "https://openfreebooks.org",
"browseUrl": "/browse/",
"aboutUrl": "/about/",
"githubUrl": "https://github.com/hananoshikayomaru/openfreebooks"
}
</script>
<div id="site-header"></div>
<main>
<section class="hero">
<div class="container">
<div class="hero-content">
<h1>Page not found</h1>
<p class="hero-lead">That page is not in the catalog yet. Try the homepage or browse when books are published.</p>
<div class="hero-actions">
<a class="button button-primary" href="https://openfreebooks.org">Back home</a>
<a class="button button-secondary" href="https://github.com/hananoshikayomaru/openfreebooks">GitHub</a>
</div>
</div>
</div>
</section>
</main>
<footer class="footer">
<div class="container footer-inner">
<span>© <span id="footer-year"></span> Open Free Books — Free, open textbooks for every learner</span>
<a class="footer-link" href="https://github.com/hananoshikayomaru/openfreebooks">GitHub</a>
</div>
</footer>
<script src="https://openfreebooks.org/js/bundle.js" defer></script>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 172 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 574 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -0,0 +1,123 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Open Free Books</title>
<meta name="description" content="Free, open-source textbooks for every learner — elementary through university. Read the full book online at no cost, or contribute on GitHub." />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="icon" type="image/x-icon" href="https://openfreebooks.org/favicon.ico" />
<link rel="apple-touch-icon" sizes="180x180" href="https://openfreebooks.org/apple-touch-icon.png" />
<link rel="icon" type="image/png" sizes="32x32" href="https://openfreebooks.org/favicon-32x32.png" />
<link rel="icon" type="image/png" sizes="16x16" href="https://openfreebooks.org/favicon-16x16.png" />
<link rel="manifest" href="https://openfreebooks.org/site.webmanifest" />
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="https://openfreebooks.org/main.css" />
</head>
<body>
<script id="site-config" type="application/json">
{
"brand": "Open Free Books",
"homeUrl": "https://openfreebooks.org",
"browseUrl": "/browse/",
"aboutUrl": "/about/",
"githubUrl": "https://github.com/hananoshikayomaru/openfreebooks"
}
</script>
<div id="site-header"></div>
<main>
<section class="hero">
<div class="container">
<div class="hero-content">
<h1>Open textbooks. Free to read. Open to improve.</h1>
<p class="hero-lead">
High-quality learning materials for elementary school through university — on the web, at no cost.
</p>
<ul class="hero-points">
<li><strong>Free</strong> means the whole book, for everyone — read it all online without paywalls.</li>
<li><strong>Open</strong> means open source — anyone can fix a typo, add a chapter, or fork a book on GitHub.</li>
</ul>
<div class="hero-actions">
<a class="button button-primary" href="/browse/">Browse books</a>
<a class="button button-secondary" href="https://github.com/hananoshikayomaru/openfreebooks">View on GitHub</a>
</div>
</div>
</div>
</section>
<div id="marquee"></div>
<section id="browse-by-subject">
<div class="container">
<p class="section-kicker">Catalog</p>
<h2 class="section-title">Browse by subject</h2>
<div class="work-grid" data-scroll-reveal>
<article class="work-card" data-scroll-reveal-card>
<h3>Mathematics</h3>
<p class="card-subtitle">Coming soon</p>
<p>Algebra, calculus, statistics, and more — structured for self-study and classrooms.</p>
</article>
<article class="work-card" data-scroll-reveal-card>
<h3>Science</h3>
<p class="card-subtitle">Coming soon</p>
<p>Physics, chemistry, biology, and earth science from introductory to advanced levels.</p>
</article>
<article class="work-card" data-scroll-reveal-card>
<h3>Humanities</h3>
<p class="card-subtitle">Coming soon</p>
<p>History, literature, philosophy, and languages — readable, citable, and free to share.</p>
</article>
<article class="work-card" data-scroll-reveal-card>
<h3>Computing</h3>
<p class="card-subtitle">Coming soon</p>
<p>Programming, computer science fundamentals, and practical skills for students and teachers.</p>
</article>
</div>
<p class="section-note">Subject pages and full catalogs are on the roadmap. Contribute a book on GitHub.</p>
</div>
</section>
<section id="featured-books">
<div class="container">
<p class="section-kicker">Featured</p>
<h2 class="section-title">Featured books</h2>
<div class="work-grid" data-scroll-reveal>
<article class="work-card" data-scroll-reveal-card>
<h3>Your textbook here</h3>
<p class="card-subtitle">Placeholder</p>
<p>We are building the first open catalog. The first published books will appear in this grid.</p>
</article>
<article class="work-card" data-scroll-reveal-card>
<h3>Community contributions</h3>
<p class="card-subtitle">Open source</p>
<p>Every book is a repository you can fork, translate, or adapt for your classroom.</p>
</article>
</div>
<p class="section-note">Want to list a book? Open a pull request or start a discussion on GitHub.</p>
</div>
</section>
</main>
<footer class="footer">
<div class="container footer-inner">
<span>© <span id="footer-year"></span> Open Free Books — Free, open textbooks for every learner</span>
<a class="footer-link" href="https://github.com/hananoshikayomaru/openfreebooks">GitHub</a>
</div>
</footer>
<script src="https://openfreebooks.org/js/bundle.js" defer></script>
</body>
</html>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,4 @@
User-agent: *
Disallow:
Allow: /
Sitemap: https://openfreebooks.org/sitemap.xml

View file

@ -0,0 +1,19 @@
{
"name": "Open Free Books",
"short_name": "OpenFreeBooks",
"icons": [
{
"src": "/android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png"
},
{
"src": "/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
}
],
"theme_color": "#9a6b2e",
"background_color": "#f5f4f1",
"display": "standalone"
}

View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://openfreebooks.org/</loc>
</url>
</urlset>

View file

@ -0,0 +1,18 @@
{% extends "base.html" %}
{% block title %}Page not found | {{ config.extra.site_title }}{% endblock title %}
{% block content %}
<section class="hero">
<div class="container">
<div class="hero-content">
<h1>Page not found</h1>
<p class="hero-lead">That page is not in the catalog yet. Try the homepage or browse when books are published.</p>
<div class="hero-actions">
<a class="button button-primary" href="{{ get_url(path="/") | safe }}">Back home</a>
<a class="button button-secondary" href="{{ config.extra.github_url | safe }}">GitHub</a>
</div>
</div>
</div>
</section>
{% endblock content %}

View file

@ -0,0 +1,52 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>{% block title %}{{ config.title }}{% endblock title %}</title>
{% block meta_description %}
<meta name="description" content="{{ config.description | default(value=config.extra.site_title) }}" />
{% endblock meta_description %}
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link rel="icon" type="image/x-icon" href="{{ get_url(path='favicon.ico') | safe }}" />
<link rel="apple-touch-icon" sizes="180x180" href="{{ get_url(path='apple-touch-icon.png') | safe }}" />
<link rel="icon" type="image/png" sizes="32x32" href="{{ get_url(path='favicon-32x32.png') | safe }}" />
<link rel="icon" type="image/png" sizes="16x16" href="{{ get_url(path='favicon-16x16.png') | safe }}" />
<link rel="manifest" href="{{ get_url(path='site.webmanifest') | safe }}" />
<link
href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;700&family=Instrument+Serif:ital@0;1&family=Inter:wght@300;400;500;600;700&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="{{ get_url(path='main.css', trailing_slash=false) | safe }}" />
{% block extra_head %}{% endblock extra_head %}
</head>
<body>
<script id="site-config" type="application/json">
{
"brand": {{ config.extra.site_title | json_encode() | safe }},
"homeUrl": {{ get_url(path="/") | json_encode() | safe }},
"browseUrl": {{ config.extra.browse_url | json_encode() | safe }},
"aboutUrl": {{ config.extra.about_url | json_encode() | safe }},
"githubUrl": {{ config.extra.github_url | json_encode() | safe }}
}
</script>
<div id="site-header"></div>
<main>
{% block content %}{% endblock content %}
</main>
<footer class="footer">
<div class="container footer-inner">
<span>© <span id="footer-year"></span> {{ config.extra.site_title }} — Free, open textbooks for every learner</span>
<a class="footer-link" href="{{ config.extra.github_url | safe }}">GitHub</a>
</div>
</footer>
<script src="{{ get_url(path='js/bundle.js', trailing_slash=false) | safe }}" defer></script>
{% block extra_scripts %}{% endblock extra_scripts %}
</body>
</html>

View file

@ -0,0 +1,79 @@
{% extends "base.html" %}
{% block title %}{{ section.title }}{% endblock title %}
{% block meta_description %}
<meta name="description" content="{{ section.description | default(value=config.description) }}" />
{% endblock meta_description %}
{% block content %}
<section class="hero">
<div class="container">
<div class="hero-content">
<h1>Open textbooks. Free to read. Open to improve.</h1>
<p class="hero-lead">
High-quality learning materials for elementary school through university — on the web, at no cost.
</p>
<ul class="hero-points">
<li><strong>Free</strong> means the whole book, for everyone — read it all online without paywalls.</li>
<li><strong>Open</strong> means open source — anyone can fix a typo, add a chapter, or fork a book on GitHub.</li>
</ul>
<div class="hero-actions">
<a class="button button-primary" href="{{ config.extra.browse_url | safe }}">Browse books</a>
<a class="button button-secondary" href="{{ config.extra.github_url | safe }}">View on GitHub</a>
</div>
</div>
</div>
</section>
<div id="marquee"></div>
<section id="browse-by-subject">
<div class="container">
<p class="section-kicker">Catalog</p>
<h2 class="section-title">Browse by subject</h2>
<div class="work-grid" data-scroll-reveal>
<article class="work-card" data-scroll-reveal-card>
<h3>Mathematics</h3>
<p class="card-subtitle">Coming soon</p>
<p>Algebra, calculus, statistics, and more — structured for self-study and classrooms.</p>
</article>
<article class="work-card" data-scroll-reveal-card>
<h3>Science</h3>
<p class="card-subtitle">Coming soon</p>
<p>Physics, chemistry, biology, and earth science from introductory to advanced levels.</p>
</article>
<article class="work-card" data-scroll-reveal-card>
<h3>Humanities</h3>
<p class="card-subtitle">Coming soon</p>
<p>History, literature, philosophy, and languages — readable, citable, and free to share.</p>
</article>
<article class="work-card" data-scroll-reveal-card>
<h3>Computing</h3>
<p class="card-subtitle">Coming soon</p>
<p>Programming, computer science fundamentals, and practical skills for students and teachers.</p>
</article>
</div>
<p class="section-note">Subject pages and full catalogs are on the roadmap. Contribute a book on GitHub.</p>
</div>
</section>
<section id="featured-books">
<div class="container">
<p class="section-kicker">Featured</p>
<h2 class="section-title">Featured books</h2>
<div class="work-grid" data-scroll-reveal>
<article class="work-card" data-scroll-reveal-card>
<h3>Your textbook here</h3>
<p class="card-subtitle">Placeholder</p>
<p>We are building the first open catalog. The first published books will appear in this grid.</p>
</article>
<article class="work-card" data-scroll-reveal-card>
<h3>Community contributions</h3>
<p class="card-subtitle">Open source</p>
<p>Every book is a repository you can fork, translate, or adapt for your classroom.</p>
</article>
</div>
<p class="section-note">Want to list a book? Open a pull request or start a discussion on GitHub.</p>
</div>
</section>
{% endblock content %}

View file

@ -0,0 +1,9 @@
name = "openfreebooks"
description = "Editorial paper theme for Open Free Books"
license = "MIT"
min_version = "0.19.0"
demo = "https://openfreebooks.org"
[author]
name = "Open Free Books"
homepage = "https://openfreebooks.org"