Implement theme for blog post page
This commit is contained in:
parent
b18ac5b0c5
commit
d09d277fde
7 changed files with 96 additions and 23 deletions
|
|
@ -31,6 +31,7 @@ Production-ready in mind:
|
|||
- 📖 Pagination
|
||||
- ✅ Cache busting
|
||||
- 💯 Maximize lighthouse score
|
||||
- 🌈 Include a FREE minimalist blog theme
|
||||
|
||||
### Philosophy
|
||||
|
||||
|
|
@ -42,7 +43,7 @@ Production-ready in mind:
|
|||
|
||||
- Node.js and npm
|
||||
|
||||
### Premium Themes
|
||||
### Premium Themes ([Eleventy Themes](https://creativedesignsguru.com/category/eleventy/))
|
||||
|
||||
| [Blue Dark Eleventy Theme](https://creativedesignsguru.com/blue-dark-eleventy-theme/) | [Blue Eclatant Eleventy Theme](https://creativedesignsguru.com/blue-eclatant-eleventy-theme/) |
|
||||
| --- | --- |
|
||||
|
|
@ -134,4 +135,4 @@ See [LICENSE](LICENSE) for more information.
|
|||
|
||||
---
|
||||
|
||||
Made with ♥ by [Ixartz](https://github.com/ixartz)
|
||||
Made with ♥ by [CreativeDesignsGuru](https://creativedesignsguru.com)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"site_name": "Hello",
|
||||
"title": "Hello personal blog",
|
||||
"description": "Blog description",
|
||||
"site_name": "Starter",
|
||||
"title": "Eleventy Starter Boilerplate",
|
||||
"description": "Starter code for your 11ty blog Boilerplate",
|
||||
"url": "https://example.com",
|
||||
"locale": "en",
|
||||
"author": "Anonymous"
|
||||
|
|
|
|||
|
|
@ -48,16 +48,16 @@
|
|||
<div class="max-w-screen-md mx-auto">
|
||||
<div class="border-b border-gray-300">
|
||||
<div class="pt-16 pb-8">
|
||||
<div class="font-semibold text-3xl text-gray-900"><%= site.title %></div>
|
||||
<div class="font-semibold text-3xl text-gray-800"><%= site.title %></div>
|
||||
<div class="text-xl"><%= site.description %></div>
|
||||
</div>
|
||||
<div>
|
||||
<ul class="flex flex-wrap text-xl">
|
||||
<li class="mr-6">
|
||||
<a class="text-gray-700 border-none hover:no-underline hover:text-gray-900" href="/">Home</a>
|
||||
<a class="text-gray-700 border-none hover:no-underline hover:text-gray-800" href="/">Home</a>
|
||||
</li>
|
||||
<li class="mr-6">
|
||||
<a class="text-gray-700 border-none hover:no-underline hover:text-gray-900"
|
||||
<a class="text-gray-700 border-none hover:no-underline hover:text-gray-800"
|
||||
href="https://github.com/ixartz/Eleventy-Starter-Boilerplate">
|
||||
GitHub
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -2,17 +2,13 @@
|
|||
layout: layouts/base.ejs
|
||||
---
|
||||
|
||||
<article class="post">
|
||||
<article>
|
||||
<header>
|
||||
<h1 class="font-bold text-3xl"><%= title %></h1>
|
||||
<div class="text-gray-600">
|
||||
<%= this.dateFns.format(new Date(date), 'LLLL d, yyyy') %>
|
||||
</div>
|
||||
<h1 class="text-center font-bold text-3xl text-gray-800"><%= title %></h1>
|
||||
<div class="text-center text-sm mb-8"><%= this.dateFns.format(new Date(date), 'LLLL d, yyyy') %></div>
|
||||
</header>
|
||||
<section class="pt-3 pb-3">
|
||||
|
||||
<section class="content">
|
||||
<%- content %>
|
||||
</section>
|
||||
<footer>
|
||||
<a href="/">Back to home</a>
|
||||
</footer>
|
||||
</article>
|
||||
|
|
|
|||
BIN
src/assets/images/posts/eleventy-js-starter-boilerplate.png
Normal file
BIN
src/assets/images/posts/eleventy-js-starter-boilerplate.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 218 KiB |
|
|
@ -11,3 +11,76 @@ a:hover {
|
|||
@tailwind components;
|
||||
|
||||
@tailwind utilities;
|
||||
|
||||
.content {
|
||||
@apply tracking-wider leading-8 text-xl;
|
||||
}
|
||||
|
||||
.content p {
|
||||
@apply my-5;
|
||||
}
|
||||
|
||||
.content h1 {
|
||||
@apply text-5xl font-bold mt-12 mb-5 leading-10;
|
||||
}
|
||||
|
||||
.content h2 {
|
||||
@apply text-4xl font-bold mt-10 mb-5;
|
||||
}
|
||||
|
||||
.content h3 {
|
||||
@apply text-3xl font-bold mt-10 mb-5;
|
||||
}
|
||||
|
||||
.content h4 {
|
||||
@apply text-2xl font-bold mt-10 mb-5;
|
||||
}
|
||||
|
||||
.content h5 {
|
||||
@apply text-xl font-bold mt-10 mb-5;
|
||||
}
|
||||
|
||||
.content h6 {
|
||||
@apply text-lg font-bold mt-10 mb-5;
|
||||
}
|
||||
|
||||
.content ul,
|
||||
.content ol,
|
||||
.content p {
|
||||
@apply overflow-auto;
|
||||
}
|
||||
|
||||
.content > div > ul,
|
||||
.content > div > ol {
|
||||
@apply my-6;
|
||||
}
|
||||
|
||||
.content ul,
|
||||
.content ol {
|
||||
@apply pl-8;
|
||||
}
|
||||
|
||||
.content ul {
|
||||
@apply list-outside list-disc;
|
||||
}
|
||||
|
||||
.content ol {
|
||||
@apply list-outside list-decimal;
|
||||
}
|
||||
|
||||
.content pre[class*='language-'] {
|
||||
@apply my-8;
|
||||
}
|
||||
|
||||
.content table {
|
||||
@apply whitespace-no-wrap my-8 border-collapse block overflow-auto;
|
||||
}
|
||||
|
||||
.content th,
|
||||
.content td {
|
||||
@apply border px-8 py-4;
|
||||
}
|
||||
|
||||
.content th {
|
||||
@apply bg-gray-100;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,14 +1,16 @@
|
|||
---
|
||||
title: 'Eleventy Starter Boilerplate Presentation'
|
||||
description: Everything you need to use this Eleventy Boilerplate template
|
||||
date: 2020-01-01 00:00:00
|
||||
date: 2020-05-05 00:00:00
|
||||
---
|
||||
|
||||
# Eleventy Starter Boilerplate
|
||||
[](https://creativedesignsguru.com/demo/Eleventy-Starter-Boilerplate/)
|
||||
|
||||
🚀 Eleventy Starter Boilerplate is production-ready with SEO-friendly for quickly starting a blog. ⚡️ Built with [Eleventy](https://www.11ty.dev), [ESLint](https://eslint.org), [Prettier](https://prettier.io), [Webpack](https://webpack.js.org), [PostCSS](https://postcss.org), [Tailwind CSS](https://tailwindcss.com).
|
||||
|
||||
Clone this project and use it to create your own [Eleventy](https://www.11ty.dev) blog.
|
||||
Clone this project and use it to create your own [Eleventy](https://www.11ty.dev) blog. You can check a [Eleventy js blog templates demo](https://creativedesignsguru.com/demo/Eleventy-Starter-Boilerplate/).
|
||||
|
||||
The GitHub repository is located [Eleventy Starter Boilerplate](https://github.com/ixartz/Eleventy-Starter-Boilerplate).
|
||||
|
||||
### Features
|
||||
|
||||
|
|
@ -33,6 +35,7 @@ Production-ready in mind:
|
|||
- 📖 Pagination
|
||||
- ✅ Cache busting
|
||||
- 💯 Maximize lighthouse score
|
||||
- 🌈 Include a FREE minimalist blog theme
|
||||
|
||||
### Philosophy
|
||||
|
||||
|
|
@ -44,7 +47,7 @@ Production-ready in mind:
|
|||
|
||||
- Node.js and npm
|
||||
|
||||
### Premium Themes
|
||||
### Premium Themes ([Eleventy Themes](https://creativedesignsguru.com/category/eleventy/))
|
||||
|
||||
| [Blue Dark Eleventy Theme](https://creativedesignsguru.com/blue-dark-eleventy-theme/) | [Blue Eclatant Eleventy Theme](https://creativedesignsguru.com/blue-eclatant-eleventy-theme/) |
|
||||
| --- | --- |
|
||||
|
|
@ -134,6 +137,6 @@ Licensed under the MIT License, Copyright © 2020
|
|||
|
||||
See [LICENSE](https://github.com/ixartz/Eleventy-Starter-Boilerplate/blob/master/LICENSE) for more information.
|
||||
|
||||
---
|
||||
### GitHub
|
||||
|
||||
Made with ♥ by [Ixartz](https://github.com/ixartz)
|
||||
The GitHub repository is located [Eleventy Starter Boilerplate](https://github.com/ixartz/Eleventy-Starter-Boilerplate) maintained by [Creative Design Guru](https://creativedesignsguru.com).
|
||||
Loading…
Reference in a new issue