From b18ac5b0c5d0d3335b291be2ef43fcaa9bc69cda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Weng?= Date: Sun, 4 Oct 2020 23:50:01 +0200 Subject: [PATCH 1/2] Implement theme in blog gallery --- src/_includes/layouts/base.ejs | 82 ++++++++++++++++++++++------------ src/assets/styles/main.css | 7 ++- src/index.ejs | 17 ++++--- 3 files changed, 69 insertions(+), 37 deletions(-) diff --git a/src/_includes/layouts/base.ejs b/src/_includes/layouts/base.ejs index 83cc541..1abf54a 100644 --- a/src/_includes/layouts/base.ejs +++ b/src/_includes/layouts/base.ejs @@ -1,29 +1,24 @@ - - - - - - - - <%= title %> - - - - - - - <% if (locals.tags == "posts") { %> - - - - <% } %> <%- include('webpack.ejs') %> - - - <%- content %> - + <% } %> <%- include('webpack.ejs') %> + + + +
+
+
+
<%= site.title %>
+
<%= site.description %>
+
+
+ +
+
+ +
<%- content %>
+ +
+ Made with by CreativeDesignsGuru +
+
+ + diff --git a/src/assets/styles/main.css b/src/assets/styles/main.css index 51f72f6..ea9789d 100644 --- a/src/assets/styles/main.css +++ b/src/assets/styles/main.css @@ -1,8 +1,13 @@ @tailwind base; a { - @apply text-blue-700 underline font-bold; + @apply text-blue-700; +} + +a:hover { + @apply underline; } @tailwind components; + @tailwind utilities; diff --git a/src/index.ejs b/src/index.ejs index 486c1da..a6269fb 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -9,21 +9,24 @@ eleventyComputed: title: '<% if (pagination.pageNumber > 0) { %><%= `Page ${pagination.pageNumber + 1} | ${site.title}` %><% } else { %><%= site.title %><% } %>' --- -

<%= site.title %>

- -
+
<% if (pagination.previous) { %> - ">Newer Posts +
+ ">← Newer Posts +
<% } %> <% if (pagination.next) { %> - ">Older Posts + <% } %>
From d09d277fde960f00488e093a9aceecd7e93c62de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Weng?= Date: Mon, 5 Oct 2020 17:49:01 +0200 Subject: [PATCH 2/2] Implement theme for blog post page --- README.md | 5 +- src/_data/site.json | 6 +- src/_includes/layouts/base.ejs | 6 +- src/_includes/layouts/post.ejs | 14 ++-- .../posts/eleventy-js-starter-boilerplate.png | Bin 0 -> 222873 bytes src/assets/styles/main.css | 73 ++++++++++++++++++ ...venty-starter-boilerplate-presentation.md} | 15 ++-- 7 files changed, 96 insertions(+), 23 deletions(-) create mode 100644 src/assets/images/posts/eleventy-js-starter-boilerplate.png rename src/posts/{2020-01-01-eleventy-starter-boilerplate-presentation.md => 2020-05-05-eleventy-starter-boilerplate-presentation.md} (87%) diff --git a/README.md b/README.md index 1109e0c..99d2a32 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/src/_data/site.json b/src/_data/site.json index 4596770..14825ed 100644 --- a/src/_data/site.json +++ b/src/_data/site.json @@ -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" diff --git a/src/_includes/layouts/base.ejs b/src/_includes/layouts/base.ejs index 1abf54a..31fd800 100644 --- a/src/_includes/layouts/base.ejs +++ b/src/_includes/layouts/base.ejs @@ -48,16 +48,16 @@
-
<%= site.title %>
+
<%= site.title %>
<%= site.description %>