Compare commits

...

15 commits

Author SHA1 Message Date
ac53d4c577 Meep 2025-02-28 22:24:17 -06:00
Zach Leatherman
9baac5c4e3 Fix conflicts 2025-02-05 15:11:15 -06:00
Zach Leatherman
dffcb2d5ae Merge branch 'alphabetize-tags' of github.com:DougReeder/eleventy-base-blog into DougReeder-alphabetize-tags 2025-02-05 15:11:01 -06:00
Zach Leatherman
fa129da969 Fix bad merge by me 2025-02-05 14:57:39 -06:00
Zach Leatherman
77880fbb61
Merge pull request #155 from fernandocanizo/main
Fix error for no having `prismjs` dependency
2025-02-05 12:56:37 -08:00
Zach Leatherman
75f26bedce
Merge branch 'main' into main 2025-02-05 12:55:44 -08:00
Zach Leatherman
63662c90f4 Adds Vercel 2025-02-05 14:27:39 -06:00
Zach Leatherman
55a0fddca9
Merge pull request #157 from adamwolf/update-404-docs
Add GitLab Pages and Cloudflare Pages to inline 404 help
2025-02-05 12:25:55 -08:00
Zach Leatherman
ec232f4353 Merge branch 'main' of github.com:11ty/eleventy-base-blog 2025-02-05 14:22:33 -06:00
Zach Leatherman
d4bf6e8aa1 GitHub Actions docs 2025-02-05 14:22:31 -06:00
Zach Leatherman
c9d653d67e
Merge pull request #185 from fulldecent/patch-1
Bump dep, fix node issue
2025-02-05 12:18:24 -08:00
William Entriken
e80ecf942b
Bump dep, fix node issue 2024-10-03 10:24:23 -04:00
Adam Wolf
21cddbf3a1
Add GitLab Pages and Cloudflare Pages to inline 404 help
I had to move an Eleventy site to Cloudflare Pages and was pleasantly surprised when 404.html worked the same as GitHub Pages and Netlify et al.

I updated the website quicktip (11ty/11ty-website#1608).

Updating the base blog, I noticed the inline link to GitLab Pages was missing, so I added that as well.
2023-08-22 10:25:11 -05:00
Fernando Lucio Canizo
75efb17b69 Fix error for no having prismjs dependency
Just add `prismjs` as development dependency.
2023-08-02 19:56:59 -04:00
P. Douglas Reeder
87200eb4eb Alphabetizes tags page 2023-04-22 02:26:22 -04:00
8 changed files with 20 additions and 16 deletions

View file

@ -17,7 +17,7 @@ jobs:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3

View file

@ -93,7 +93,7 @@ Deploy this Eleventy site in just a few clicks on these services:
- Read more about [Deploying an Eleventy project](https://www.11ty.dev/docs/deployment/) to the web.
- [Deploy this to **Netlify**](https://app.netlify.com/start/deploy?repository=https://github.com/11ty/eleventy-base-blog)
- [Deploy this to **Vercel**](https://vercel.com/import/project?template=11ty%2Feleventy-base-blog)
- Look in `.github/workflows/gh-pages.yml.sample` for information on Deploying to **GitHub Pages**.
- Look in `.github/workflows/gh-pages.yml.sample` for information on [Deploying to **GitHub Pages**](https://www.11ty.dev/docs/deployment/#deploy-an-eleventy-project-to-git-hub-pages).
- [Try it out on **Stackblitz**](https://stackblitz.com/github/11ty/eleventy-base-blog)
### Implementation Notes

View file

@ -37,4 +37,7 @@ export default function(eleventyConfig) {
return (tags || []).filter(tag => ["all", "posts"].indexOf(tag) === -1);
});
eleventyConfig.addFilter("sortAlphabetically", strings =>
(strings || []).sort((b, a) => b.localeCompare(a))
);
};

View file

@ -1,11 +1,11 @@
export default {
title: "Eleventy Base Blog v9",
url: "https://example.com/",
title: "Nyxblog",
url: "https://blog.everypizza.im/",
language: "en",
description: "I am writing about my experiences as a naval navel-gazer.",
author: {
name: "Your Name Here",
email: "youremailaddress@example.com",
url: "https://example.com/about-me/"
email: "me@everypizza.im",
url: "https://nyx.everypizza.im/"
}
}

View file

@ -10,9 +10,11 @@ Go <a href="index.njk">home</a>.
Read more: https://www.11ty.dev/docs/quicktips/not-found/
This will work for both GitHub pages and Netlify:
* https://help.github.com/articles/creating-a-custom-404-page-for-your-github-pages-site/
* https://www.netlify.com/docs/redirects/#custom-404
This is compatible with:
- GitHub Pages: https://help.github.com/articles/creating-a-custom-404-page-for-your-github-pages-site/
- GitLab Pages: https://docs.gitlab.com/ee/user/project/pages/introduction.html#custom-error-codes-pages
- Netlify: https://www.netlify.com/docs/redirects/#custom-404
- Cloudflare Pages: https://developers.cloudflare.com/pages/platform/serving-pages/#not-found-behavior
- Vercel: https://vercel.com/guides/custom-404-page#static-site-generator-ssg
-->

View file

@ -1,7 +1,7 @@
<h1>Tags</h1>
<ul>
{% for tag in collections | getKeys | filterTagList %}
{% for tag in collections | getKeys | filterTagList | sortAlphabetically %}
{% set tagUrl %}/tags/{{ tag | slugify }}/{% endset %}
<li><a href="{{ tagUrl }}" class="post-tag">{{ tag }}</a></li>
{% endfor %}

View file

@ -42,6 +42,7 @@
"@11ty/eleventy-plugin-syntaxhighlight": "^5.0.0",
"cross-env": "^7.0.3",
"luxon": "^3.5.0",
"prismjs": "^1.29.0",
"zod": "^3.23.8",
"zod-validation-error": "^3.3.1"
},

View file

@ -8,11 +8,10 @@
:root {
--color-gray-20: #e0e0e0;
--color-gray-50: #C0C0C0;
--color-gray-90: #333;
--background-color: #fff;
--text-color: var(--color-gray-90);
--text-color: #000000
--text-color-link: #082840;
--text-color-link-active: #5f2b48;
--text-color-link-visited: #17050F;
@ -24,14 +23,13 @@
:root {
--color-gray-20: #e0e0e0;
--color-gray-50: #C0C0C0;
--color-gray-90: #dad8d8;
/* --text-color is assigned to --color-gray-_ above */
--text-color: #ffffff;
--text-color-link: #1493fb;
--text-color-link-active: #6969f7;
--text-color-link-visited: #a6a6f8;
--background-color: #15202b;
--background-color: #000000;
}
}