Giter Club home page Giter Club logo

eleventy-base-blog-main's Introduction

eleventy-base-blog v8 - MODIFIED TO USE sass as a template language

This repo is based on the eleventy-base-blog

It was modified as follows to illustrate an issue:

  • removed all uses of the css bundling feature
  • moved all css files to a css folder under the input folder, content
  • renamed main .css files with an .scss extension
  • created a main.scss with a series of @use statements to include the other scss files
  • added code to eleventy config to support sass as a template language

ISSUE:

Non-existent items are added to collections.all resulting in sitemap entries that reference the css files that seem to be intermediate results of processing done in the plugin.

For example, this repo includes the following files in a css directory under the eleventy input directory (which is named content):

/content
  /css
    _index.scss
    _message-box.scss
    _prism-diff.scss
    _prism-okaidia.css
    main.scss

main.scss has 4 @use statements, referencing each of the other files.

The sitemap.xml that results from processing sitemap.njk includes the following entries:

<url>
  <loc>https://example.com/css/_index.css</loc>
  <lastmod>2023-03-02</lastmod>
</url>

<url>
  <loc>https://example.com/css/_message-box.css</loc>
  <lastmod>2023-03-02</lastmod>
</url>

<url>
  <loc>https://example.com/css/_prism-diff.css</loc>
  <lastmod>2023-03-02</lastmod>
</url>

<url>
  <loc>https://example.com/css/main.css</loc>
  <lastmod>2023-03-08</lastmod>
</url>

eleventy-base-blog-main's People

Contributors

bobmonsour avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.