Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leogopal/lgblg11ty
11ty static site for Leo's Blog
https://github.com/leogopal/lgblg11ty
Last synced: 21 days ago
JSON representation
11ty static site for Leo's Blog
- Host: GitHub
- URL: https://github.com/leogopal/lgblg11ty
- Owner: leogopal
- License: mit
- Created: 2023-10-29T22:25:52.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-29T22:33:09.000Z (about 1 year ago)
- Last Synced: 2024-10-15T20:14:39.244Z (2 months ago)
- Language: Nunjucks
- Size: 61.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![Eleventy](https://user-images.githubusercontent.com/2342458/230336594-86e2311a-3080-4d1c-9a01-03999a12136b.png)
# Leo Gopal's Blog - Eleventy
An example of how to deploy an **Eleventy** application on Kinsta.
---
Kinsta is a developer-centric cloud host / PaaS. We’re striving to make it easier for you to share your web projects with your users. You can focus on coding and building, and we'll take care of deployments with fast, scalable hosting.
At Kinsta, Static Sites are free, and you can host up to 100 sites on your account for completely free.
Kinsta offers 24/7 support via our chat system, which is always one click away in [MyKinsta](https://my.kinsta.com/) for customers with a paid plan or service.
If you only have a Static Site Hosting account, we have detailed [Static Site Hosting documentation](https://kinsta.com/docs/static-site-hosting/) available. You can also connect with developers and knowledgeable community members in the [Kinsta Community](https://community.kinsta.com/c/static-sites/22) forum.
- [Start your free trial](https://kinsta.com/signup/?product_type=app-db)
- [Application Hosting](https://kinsta.com/application-hosting)
- [Database Hosting](https://kinsta.com/database-hosting)
- [Static Site Hosting](https://kinsta.com/static-site-hosting)## Setup
Static Site Hosting [click to expand]
### Dependency Management
Kinsta automatically installs dependencies defined in your `package.json` file during the deployment process.
### Setting the Build Command, Node version, and Publish directory
After connecting the repository, **Static Site Hosting** will automatically try to populate all the fields with the correct values.
| Configuration option |Value |
|---|---|
| Build command | `npx @11ty/eleventy` |
| Node version | 16.20 |
| Publish directory | `_site` |### Deployment Lifecycle
Whenever a deployment is initiated (through creating an application or re-deploying due to an incoming commit), the build command is run, followed by the deployment of the Publish Directory content.
Application Hosting [click to expand]
### Dependency Management
Kinsta automatically installs dependencies defined in your `package.json` file during the deployment process.
### Port
Kinsta automatically sets the `PORT` environment variable. You should **not** define it yourself and you should **not** hard-code it into the application.
### Start Command
When deploying an application, Kinsta automatically creates a web process with `npm start` as the entry point. Make sure to use this command to run your server.
## Deployment Lifecycle
Whenever a deployment is initiated (through creating an application or re-deploying due to an incoming commit) the `npm build` command is run, followed by the `npm start` command.
## What is Eleventy
Eleventy is a JavaScript-based static site generator that makes it easy for developers to create fast, modern, and customizable websites. More information is available on the [11ty.dev](https://www.11ty.dev/) website.