summaryrefslogtreecommitdiff
path: root/themes/tufte
diff options
context:
space:
mode:
authorHimanshu Sardana <himanshusardana2005@gmail.com>2026-03-26 21:50:46 +0000
committerHimanshu Sardana <himanshusardana2005@gmail.com>2026-03-26 21:50:46 +0000
commitc36783b52c29782a3acbaa602f6bd76496d62266 (patch)
treead6000a3f2ba27049b647d9078aa3fdab0e23486 /themes/tufte
parenta2d1b515905e4702b97062f5e2932db90095dbab (diff)
feat: add tufte theme
Diffstat (limited to 'themes/tufte')
-rw-r--r--themes/tufte/home.html242
-rw-r--r--themes/tufte/layout.html275
2 files changed, 517 insertions, 0 deletions
diff --git a/themes/tufte/home.html b/themes/tufte/home.html
new file mode 100644
index 0000000..f7092f4
--- /dev/null
+++ b/themes/tufte/home.html
@@ -0,0 +1,242 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>{{ .SiteTitle }}</title>
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
+ <link
+ href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap"
+ rel="stylesheet"
+ />
+ <style>
+ body {
+ margin: 0;
+ padding: 3rem 2rem;
+ background: #fffff8;
+ color: #111;
+ font-family: Georgia, "Libre Baskerville", serif;
+ line-height: 1.75;
+ font-size: 19px;
+ -webkit-font-smoothing: antialiased;
+ text-rendering: optimizeLegibility;
+ }
+
+ body > * {
+ max-width: 720px;
+ margin-left: auto;
+ margin-right: auto;
+ }
+
+ a {
+ color: #0066cc;
+ text-decoration: underline;
+ }
+
+ a:hover {
+ color: #004499;
+ }
+
+ nav {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 1rem 0 2rem;
+ border-bottom: 1px solid #ddd;
+ margin-bottom: 2rem;
+ }
+
+ nav .logo {
+ font-family: Georgia, serif;
+ font-weight: 700;
+ font-size: 1.2rem;
+ color: #111;
+ text-decoration: none;
+ }
+
+ nav ul {
+ display: flex;
+ gap: 1.5rem;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+ nav a {
+ color: #555;
+ text-decoration: none;
+ font-size: 0.9rem;
+ }
+
+ nav a:hover {
+ color: #0066cc;
+ }
+
+ .hero {
+ padding: 2rem 0 3rem;
+ }
+
+ .hero h1 {
+ font-size: 2.8rem;
+ font-weight: 700;
+ margin-bottom: 0.75rem;
+ line-height: 1.2;
+ }
+
+ .author-block {
+ margin-bottom: 1.5rem;
+ }
+
+ .author-name {
+ font-weight: 700;
+ color: #111;
+ }
+
+ .author-role {
+ font-size: 0.9rem;
+ color: #555;
+ }
+
+ .author-bio {
+ color: #333;
+ line-height: 1.7;
+ }
+
+ .section-title {
+ font-size: 0.8rem;
+ text-transform: uppercase;
+ letter-spacing: 0.1em;
+ color: #777;
+ padding-bottom: 0.75rem;
+ border-bottom: 1px solid #ddd;
+ margin-bottom: 1.5rem;
+ }
+
+ .post-list {
+ list-style: none;
+ padding: 0;
+ margin: 0;
+ }
+
+ .post-item {
+ display: block;
+ text-decoration: none;
+ padding: 1rem 0;
+ border-bottom: 1px solid #eee;
+ }
+
+ .post-item:last-child {
+ border-bottom: none;
+ }
+
+ .post-item:hover .post-title {
+ color: #0066cc;
+ }
+
+ .post-title {
+ font-size: 1.15rem;
+ font-weight: 700;
+ color: #111;
+ line-height: 1.4;
+ margin-bottom: 0.25rem;
+ transition: color 150ms ease;
+ }
+
+ .post-meta {
+ font-size: 0.85rem;
+ color: #666;
+ }
+
+ .post-tags {
+ display: flex;
+ gap: 0.5rem;
+ margin-top: 0.5rem;
+ }
+
+ .tag {
+ font-size: 0.75rem;
+ color: #555;
+ padding: 0.1rem 0.4rem;
+ border: 1px solid #ddd;
+ border-radius: 2px;
+ }
+
+ footer {
+ margin-top: 4rem;
+ padding-top: 1.5rem;
+ border-top: 1px solid #ddd;
+ font-size: 0.85rem;
+ color: #555;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ @media (max-width: 700px) {
+ body {
+ padding: 1.5rem 1rem;
+ font-size: 17px;
+ }
+ .hero h1 {
+ font-size: 2.2rem;
+ }
+ nav {
+ flex-wrap: wrap;
+ gap: 0.8rem;
+ }
+ footer {
+ flex-direction: column;
+ text-align: center;
+ gap: 0.5rem;
+ }
+ }
+ </style>
+ </head>
+ <body>
+ <nav>
+ <a href="/" class="logo">Kite</a>
+ <ul>
+ <li><a href="/">Home</a></li>
+ </ul>
+ </nav>
+
+ <main>
+ <section class="hero">
+ <h1>{{ .SiteTitle }}</h1>
+ <div class="author-block">
+ <span class="author-name">{{ .AuthorName }}</span>
+ <span class="author-role">{{ .AuthorRole }}</span>
+ </div>
+ <p class="author-bio">{{ .AuthorBio }}</p>
+ </section>
+
+ <section class="posts">
+ <h2 class="section-title">Latest Posts</h2>
+ <ul class="post-list">
+ {{ range .Posts }}
+ <li>
+ <a href="/{{ .Slug }}/" class="post-item">
+ <span class="post-title">{{ .Title }}</span>
+ <div class="post-meta">
+ <time>{{ .Date }}</time>
+ </div>
+ {{ if .Tags }}
+ <div class="post-tags">
+ {{ range .Tags }}
+ <span class="tag">{{ . }}</span>
+ {{ end }}
+ </div>
+ {{ end }}
+ </a>
+ </li>
+ {{ end }}
+ </ul>
+ </section>
+ </main>
+
+ <footer>
+ <span>&copy; {{ .Year }} {{ .AuthorName }}</span>
+ </footer>
+ </body>
+</html> \ No newline at end of file
diff --git a/themes/tufte/layout.html b/themes/tufte/layout.html
new file mode 100644
index 0000000..d5bb93f
--- /dev/null
+++ b/themes/tufte/layout.html
@@ -0,0 +1,275 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <meta charset="UTF-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <meta name="description" content="{{ .Title }}" />
+ <title>{{ .Title }}</title>
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
+ <link
+ href="https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&display=swap"
+ rel="stylesheet"
+ />
+ <link
+ href="https://cdn.jsdelivr.net/npm/prismjs/themes/prism-okaidia.css"
+ rel="stylesheet"
+ />
+ <script src="https://cdn.jsdelivr.net/npm/prismjs/prism.js"></script>
+ <script src="https://cdn.jsdelivr.net/npm/prismjs/plugins/autoloader/prism-autoloader.min.js"></script>
+ <style>
+ body {
+ margin: 0;
+ padding: 3rem 2rem;
+ background: #fffff8;
+ color: #111;
+ font-family: Georgia, "Libre Baskerville", serif;
+ line-height: 1.75;
+ font-size: 19px;
+ -webkit-font-smoothing: antialiased;
+ text-rendering: optimizeLegibility;
+ }
+
+ body > * {
+ max-width: 720px;
+ margin-left: auto;
+ margin-right: auto;
+ }
+
+ h1, h2, h3 {
+ text-align: left;
+ font-weight: 700;
+ line-height: 1.25;
+ scroll-margin-top: 1rem;
+ }
+
+ h1 {
+ font-size: 2.4rem;
+ margin-bottom: 1rem;
+ }
+
+ h2 {
+ font-size: 1.6rem;
+ margin-top: 3rem;
+ }
+
+ h3 {
+ font-size: 1.3rem;
+ margin-top: 2rem;
+ }
+
+ p {
+ margin: 1.3rem 0;
+ }
+
+ a {
+ color: #0066cc;
+ text-decoration: underline;
+ }
+
+ a:hover {
+ color: #004499;
+ }
+
+ ul, ol {
+ margin: 1.2rem 0 1.2rem 1.6rem;
+ }
+
+ li {
+ margin: 0.4rem 0;
+ }
+
+ hr {
+ border: none;
+ border-top: 1px solid #ddd;
+ margin: 3rem auto;
+ }
+
+ table {
+ border-collapse: collapse;
+ margin: 1.5rem 0;
+ font-size: 0.95rem;
+ }
+
+ th, td {
+ padding: 0.5rem 0.8rem;
+ border-bottom: 1px solid #ddd;
+ }
+
+ th {
+ text-align: left;
+ font-weight: 700;
+ }
+
+ code {
+ font-family: "SF Mono", Menlo, Monaco, monospace;
+ font-size: 0.85rem;
+ background: #f5f5f5;
+ padding: 0.15rem 0.3rem;
+ border-radius: 2px;
+ }
+
+ pre {
+ background: #f5f5f5;
+ padding: 1rem 1.2rem;
+ overflow-x: auto;
+ border-radius: 4px;
+ margin: 1.5rem 0;
+ }
+
+ pre code {
+ background: none;
+ padding: 0;
+ font-size: 0.85rem;
+ }
+
+ blockquote {
+ margin: 2rem 0;
+ padding: 0 0 0 1.5rem;
+ border-left: 2px solid #ddd;
+ font-style: italic;
+ color: #555;
+ }
+
+ img {
+ max-width: 100%;
+ height: auto;
+ margin: 2rem auto;
+ }
+
+ .toc-wrap {
+ margin: 2rem 0;
+ padding: 1rem;
+ background: #f8f8f0;
+ border-radius: 4px;
+ }
+
+ .toc-title {
+ font-size: 0.85rem;
+ text-transform: uppercase;
+ letter-spacing: 0.1em;
+ color: #555;
+ margin: 0 0 0.5rem;
+ display: block;
+ }
+
+ .toc ul {
+ margin: 0;
+ padding-left: 1rem;
+ }
+
+ .toc a {
+ color: #333;
+ text-decoration: none;
+ font-size: 0.95rem;
+ }
+
+ .toc a:hover {
+ color: #0066cc;
+ }
+
+ nav {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 1rem 0 2rem;
+ border-bottom: 1px solid #ddd;
+ margin-bottom: 2rem;
+ }
+
+ nav .logo {
+ font-family: Georgia, serif;
+ font-weight: 700;
+ font-size: 1.2rem;
+ color: #111;
+ text-decoration: none;
+ }
+
+ nav ul {
+ display: flex;
+ gap: 1.5rem;
+ margin: 0;
+ padding: 0;
+ list-style: none;
+ }
+
+ nav a {
+ color: #555;
+ text-decoration: none;
+ font-size: 0.9rem;
+ }
+
+ nav a:hover {
+ color: #0066cc;
+ }
+
+ footer {
+ margin-top: 4rem;
+ padding-top: 1.5rem;
+ border-top: 1px solid #ddd;
+ font-size: 0.85rem;
+ color: #555;
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ }
+
+ @media (max-width: 700px) {
+ body {
+ padding: 1.5rem 1rem;
+ font-size: 17px;
+ }
+ h1 {
+ font-size: 2rem;
+ }
+ h2 {
+ font-size: 1.4rem;
+ }
+ nav {
+ flex-wrap: wrap;
+ gap: 0.8rem;
+ }
+ footer {
+ flex-direction: column;
+ text-align: center;
+ gap: 0.5rem;
+ }
+ }
+ </style>
+ </head>
+ <body>
+ <nav>
+ <a href="/" class="logo">Kite</a>
+ <ul>
+ <li><a href="/">Home</a></li>
+ </ul>
+ </nav>
+
+ <main>
+ <header class="article-header">
+ <h1>{{ .Title }}</h1>
+ </header>
+
+ {{ if .TOC }}
+ <div class="toc-wrap">
+ <details open>
+ <summary class="toc-title">Contents</summary>
+ <ul>
+ {{ range .TOC }}
+ <li>
+ <a href="#{{ .ID }}">{{ .Text }}</a>
+ </li>
+ {{ end }}
+ </ul>
+ </details>
+ </div>
+ {{ end }}
+
+ <article class="prose">{{ .Content }}</article>
+ </main>
+
+ <footer>
+ <span>&copy; {{ .Year }} Kite</span>
+ </footer>
+ </body>
+</html> \ No newline at end of file