diff --git a/.eleventy.js b/.eleventy.js index 9347431..b7faaec 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -44,8 +44,11 @@ module.exports = function(eleventyConfig) { "css" ], - // if your site lives in a subdirectory, change this - pathPrefix: "/eleventy-base-blog/", + // If your site lives in a different subdirectory, change this. + // Leading or trailing slashes are all normalized away, so don’t worry about it. + // If you don’t have a subdirectory, use "" or "/" (they do the same thing) + // This is only used for URLs (it does not affect your file structure) + pathPrefix: "/", markdownTemplateEngine: "liquid", htmlTemplateEngine: "njk", diff --git a/.travis.yml b/.travis.yml index 0b930b0..4827a5b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ node_js: - 8 before_script: - npm install @11ty/eleventy -g -script: eleventy +script: eleventy --pathprefix="/eleventy-base-blog/" deploy: local-dir: _site provider: pages diff --git a/README.md b/README.md index e369862..031b273 100644 --- a/README.md +++ b/README.md @@ -59,4 +59,4 @@ DEBUG=* npx eleventy * `_includes/layouts/base.njk`: the top level HTML structure * `_includes/layouts/home.njk`: the home page template (wrapped into `base.njk`) * `_includes/layouts/post.njk`: the blog post template (wrapped into `base.njk`) -* `_includes/postlist.njk` is a Nunjucks macro and is a reusable component used to display a list of all the posts. `index.njk` has an example of how to use it. \ No newline at end of file +* `_includes/postlist.njk` is a Nunjucks include and is a reusable component used to display a list of all the posts. `index.njk` has an example of how to use it. \ No newline at end of file diff --git a/css/index.css b/css/index.css index 1ad5a13..427fedb 100644 --- a/css/index.css +++ b/css/index.css @@ -153,5 +153,8 @@ pre { /* Warning */ .warning { background-color: #ffc; - padding: 0.375em 0.625em; /* 6px 10px /16 */ + padding: 1em 0.625em; /* 16px 10px /16 */ +} +.warning ol:only-child { + margin: 0; } \ No newline at end of file diff --git a/index.njk b/index.njk index 1777ba0..b5b631d 100644 --- a/index.njk +++ b/index.njk @@ -5,7 +5,11 @@ navtitle: Home ---
- Now edit the _data/metadata.json with your blog’s information—and delete this message from index.njk. +
    +
  1. Edit the _data/metadata.json with your blog’s information.
  2. +
  3. (Optional) Edit .eleventy.js with your configuration preferences.
  4. +
  5. Delete this message from index.njk.
  6. +
{% set postslist = collections.posts %} diff --git a/package.json b/package.json index c02486f..d5cfaa7 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "homepage": "https://github.com/11ty/eleventy-base-blog#readme", "devDependencies": { - "@11ty/eleventy": ">=0.2.10", + "@11ty/eleventy": ">=0.2.11", "luxon": "^0.3.1", "prismjs": "^1.10.0" }