GithubHelp home page GithubHelp logo

netlify-11ty-landing-page's Introduction

11ty-landing-page

A simple landing page built with 11ty and Tailwind CSS.

Port of the Hugo Version

How to use this template

Requirements:

  1. Eleventy (developed and tested with version 0.12.1)
  2. Tailwind CSS (@2.0.4 - see #2)

All other dependencies are either linked from a CDN or included in this repository.

Setup:

  1. Fork, clone or download
  2. cd into the root folder
  3. run npm install
  4. run npm run serve
  5. open a browser and go to http://localhost:8080

Basic configuration:

  1. Eleventy -> ./.eleventy.js
  2. Tailwind -> ./tailwind.config.js
  3. Netlify -> ./netlify.toml

CSS is built via PostCSS and based on ./src/_includes/css/_page.css. Building CSS gets triggered by ./src/css/page.11ty.js.

Please note that this CSS build does not include the normalize.css file used for the 2 regular pages (imprint, privacy) - a minified production version is stored in ./src/static/css and gets included in the build by default.

Change Content:

Page content is stored in

  • ./src/
    • imprint.md
    • privacy.md
  • ./src/sections/
  • ./src/_data/features.json

Change Templates/Layout:

Page structure and templates are stored in ./src/_layouts/ and can be edited there.

Best have a look at ./layouts/base.njk first to understand how it all comes together - the page itself is constructed from partial templates stored in ./src/includes/ and each section has a corresponding template file (section.**.njk) stored there.

index.njk in ./src/ arranges everything, meaning that sections can be added/re-ordered/removed/... there.

Change images:

Images are stored in ./static/img/; everything in there can be considered a placeholder that should eventually be replaced with your actual production images.

netlify-11ty-landing-page's People

Contributors

barrettbreshears avatar feld avatar ttntm 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.