Add intotheeast theme: blueprints, 4 templates, CSS
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
name: Into the East
|
||||
version: 0.1.0
|
||||
description: Custom theme for the intotheeast travel blog
|
||||
icon: map-marker
|
||||
author:
|
||||
name: Mischa
|
||||
email: mischa@gorinskat.nl
|
||||
homepage: https://intotheeast.com
|
||||
license: MIT
|
||||
|
||||
form:
|
||||
validation: loose
|
||||
@@ -0,0 +1,87 @@
|
||||
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
|
||||
|
||||
body {
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
||||
font-size: 1rem;
|
||||
line-height: 1.6;
|
||||
color: #1a1a1a;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.site-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
padding: 1rem 1.25rem;
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.site-title {
|
||||
font-weight: 700;
|
||||
font-size: 1.1rem;
|
||||
text-decoration: none;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.site-nav a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
font-size: 0.95rem;
|
||||
padding: 0.5rem;
|
||||
min-height: 44px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.site-main {
|
||||
max-width: 680px;
|
||||
margin: 0 auto;
|
||||
padding: 1.5rem 1.25rem;
|
||||
}
|
||||
|
||||
/* Feed */
|
||||
.feed { display: flex; flex-direction: column; gap: 2rem; }
|
||||
|
||||
.entry-card {
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
|
||||
.entry-date {
|
||||
display: block;
|
||||
font-size: 0.8rem;
|
||||
color: #666;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
margin-bottom: 0.4rem;
|
||||
}
|
||||
|
||||
.entry-title { font-size: 1.3rem; margin-bottom: 0.75rem; }
|
||||
.entry-title a { color: inherit; text-decoration: none; }
|
||||
.entry-title a:hover { text-decoration: underline; }
|
||||
|
||||
.entry-thumb { margin-bottom: 0.75rem; }
|
||||
.entry-thumb img { width: 100%; height: 200px; object-fit: cover; border-radius: 4px; }
|
||||
|
||||
.entry-excerpt { color: #444; margin-bottom: 0.75rem; }
|
||||
|
||||
.entry-read-more {
|
||||
font-size: 0.9rem;
|
||||
color: #0066cc;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.feed-empty { color: #666; font-style: italic; }
|
||||
|
||||
/* Single entry */
|
||||
.entry-header { margin-bottom: 1.5rem; }
|
||||
.entry-header .entry-date { margin-bottom: 0.5rem; }
|
||||
.entry-title { font-size: 1.8rem; }
|
||||
.entry-body { margin-bottom: 2rem; }
|
||||
.entry-body p { margin-bottom: 1em; }
|
||||
.entry-body img { max-width: 100%; height: auto; border-radius: 4px; }
|
||||
.entry-footer { border-top: 1px solid #e5e5e5; padding-top: 1rem; }
|
||||
.entry-footer a { color: #0066cc; text-decoration: none; font-size: 0.9rem; }
|
||||
|
||||
/* Post form */
|
||||
.post-form-wrap h1 { font-size: 1.4rem; margin-bottom: 1.5rem; }
|
||||
@@ -0,0 +1 @@
|
||||
enabled: true
|
||||
@@ -0,0 +1,20 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>{% if page.title %}{{ page.title }} | {% endif %}{{ site.title }}</title>
|
||||
<link rel="stylesheet" href="{{ url('theme://css/style.css') }}">
|
||||
</head>
|
||||
<body>
|
||||
<header class="site-header">
|
||||
<a class="site-title" href="{{ base_url_absolute }}">{{ site.title }}</a>
|
||||
<nav class="site-nav">
|
||||
<a href="{{ base_url_absolute }}/tracker">Journal</a>
|
||||
</nav>
|
||||
</header>
|
||||
<main class="site-main">
|
||||
{% block content %}{% endblock %}
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,18 @@
|
||||
{% extends 'default.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<article class="entry">
|
||||
<header class="entry-header">
|
||||
<time class="entry-date" datetime="{{ page.date|date('Y-m-d') }}">
|
||||
{{ page.date|date('l, d F Y') }}
|
||||
</time>
|
||||
<h1 class="entry-title">{{ page.title }}</h1>
|
||||
</header>
|
||||
<div class="entry-body">
|
||||
{{ page.content }}
|
||||
</div>
|
||||
<footer class="entry-footer">
|
||||
<a href="{{ base_url_absolute }}/tracker">← Back to journal</a>
|
||||
</footer>
|
||||
</article>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,8 @@
|
||||
{% extends 'default.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="post-form-wrap">
|
||||
<h1>{{ page.title }}</h1>
|
||||
{% include 'partials/form.html.twig' %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,30 @@
|
||||
{% extends 'default.html.twig' %}
|
||||
|
||||
{% block content %}
|
||||
<div class="feed">
|
||||
{% set entries = page.children().order('date', 'desc').published() %}
|
||||
{% if entries|length > 0 %}
|
||||
{% for entry in entries %}
|
||||
<article class="entry-card">
|
||||
<time class="entry-date" datetime="{{ entry.date|date('Y-m-d') }}">
|
||||
{{ entry.date|date('d M Y') }}
|
||||
</time>
|
||||
<h2 class="entry-title">
|
||||
<a href="{{ entry.url }}">{{ entry.title }}</a>
|
||||
</h2>
|
||||
{% if entry.header.hero_image %}
|
||||
<div class="entry-thumb">
|
||||
<img src="{{ entry.url }}/{{ entry.header.hero_image }}" alt="{{ entry.title }}">
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="entry-excerpt">
|
||||
{{ entry.summary }}
|
||||
</div>
|
||||
<a class="entry-read-more" href="{{ entry.url }}">Read more →</a>
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<p class="feed-empty">No entries yet. The journey is about to begin.</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user