Giter Club home page Giter Club logo

anildash-dot-com's Introduction

Hello! This is the source for Anil's blog.

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.

← package.json: Your project's dependencies, where you will also find the start command to run eleventy.

← 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!

Your site can use incremental builds, so if for example you only change a markdown file, Glitch would just rewrite the relevant page instead of rebuilding the whole site–to enable this, change your package.json start command to eleventy --incremental --serve.

When you add or delete a file and your preview does not update straight away on refresh, you can enter eleventy --serve in your project terminal to force a rewrite.

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.

anildash-dot-com's People

Contributors

anildash avatar

Watchers

 avatar  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.