Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mobile-michel/decapcms-basic

Basic template with Eleventy, LiquidJS, CSS & DecapCMS
https://github.com/mobile-michel/decapcms-basic

netlify-deployment

Last synced: 21 days ago
JSON representation

Basic template with Eleventy, LiquidJS, CSS & DecapCMS

Awesome Lists containing this project

README

        

# Basic template with Eleventy, LiquidJS, CSS & DecapCMS

## Folder structure

- pages in /src
- CSS files in /assets/css
- layouts in /_layouts
- includes in /_components
- Json files in /_data
- images & JavaScripts in /assets
- DecapCMS admin page in /src/admin

## Page layout

- _layouts/base.liquid
- _components/header.liquid
- _components/nav.liquid
- _components/footer.liquid

## Responsive navbar

- responsive mobile menu with CSS without JavaScript from [LogRocket](https://blog.logrocket.com/create-responsive-mobile-menu-with-css-no-javascript/), without classes
- add tags: primary in frontmatter

## Package.json scripts

- "start": "npx @11ty/eleventy --serve",
- "build": "npx @11ty/eleventy --serveeleventy",
- "debug": "DEBUG=* eleventy"

## Dependencies

- "@11ty/eleventy": "^2.0.1"
- ready for [Decap CMS](https://decapcms.org/) integration.

## DecapCMS

- add eleventyConfig.addPassthroughCopy("src/admin");
- the script link before /head
- the script before /body
- configure Netlify for Git Gateway & Identity