bassianotis / glitch

Making a website

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hello Eleventy!

This project is a blog powered by Eleventy, a lightweight static site generator. That means you get all the power of a server-side framework but it builds plain HTML files for fast loading by your visitors. This project includes some default posts and layouts you can use as a foundation, and you can customize how your site builds in the JavaScript code. ๐Ÿ“š

While you're working on the content in the editor your changes will happen โœจ immediately in the preview window. As you code the site is serving files from a local build directory. When you close the editor your site will run a build script then serve the output as a fast and always-on static site.

Prerequisites

You'll get best use out of this project if you're familiar with basic HTML and JavaScript. This is a static site, which means the server builds it using the content of the src folder, then is able to serve it to your users quickly. The posts are in Markdown, which is similar to HTML (markup) but with a lot less syntax!

What's in this project?

โ† README.md: Thatโ€™s this file, where you can tell people what your cool website does and how you built it.

โ† public/style.css: The styling rules for your pages and posts.

โ† .eleventy.js: Here you can configure how Eleventy builds your content into the site. Read through the initial blog posts in the site for steps on extending this code.

โ† src/: This folder contains all the files Eleventy will use to build your site.

Working in the src/ folder ๐Ÿ“

โ† index.md, posts.md, about.md: These Markdown files include the content for your Home, Posts, and About pages.

โ† posts/: These are the Markdown files for the posts that make up your blogโ€“you can add new posts here and remove any you don't want. Each one includes front matter that Eleventy uses to build the content into the site, passing the data into the template referenced as layout at the top of the file.

โ† _includes/layouts/: This is where all of your page level layouts go. The _ tells you that this is an eleventy only folder. Each layout uses Nunjucks to build the page or post data into an HTML page. There is one base layout that all others extend.

โ† seo.json: When you're ready to share your new site or add a custom domain, change SEO/meta settings in here.

Want a basic template version of this project to build your own Eleventy app? Check out Minimal Eleventy!

Try this next ๐Ÿ—๏ธ

With the site preview open on the right and the Glitch editor open on the left, navigate through the initial blog posts to learn more and carry out some development on your Eleventy site!

Check out TODO.md for some more optional next steps.

Glitch

You built this with Glitch!

Glitch is a friendly community where millions of people come together to build web apps and websites.

About

Making a website

License:Other


Languages

Language:CSS 41.4%Language:Nunjucks 33.4%Language:JavaScript 25.2%