eltana-org / eltana.com

Eltana.com's public source code

Home Page:https://eltana.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

eltana.com πŸ₯―

deploy ci lint CodeQL

The public source code for the eltana.com website

homepage

About πŸ’‘

This repository contains the source code for eltana.com. It is built with Astro and Tailwind CSS. The site is hosted on GitHub Pages and deployed using GitHub Actions.

Config Files

The core way this template is different from the original is that it heavily uses .js config files to configure data and content for its site.

Here are a few common config directories and what you will find there:

Project structure

Inside AstroWind template, you'll see the following folders and files:

/
β”œβ”€β”€ public/
β”‚   β”œβ”€β”€ robots.txt
β”‚   └── favicon.ico
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ assets/
β”‚   β”‚   β”œβ”€β”€ images/
β”‚   β”‚   └── styles/
β”‚   β”‚       └── base.css
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   β”œβ”€β”€ blog/
β”‚   β”‚   β”œβ”€β”€ common/
β”‚   β”‚   β”œβ”€β”€ widgets/
β”‚   β”‚   β”‚   β”œβ”€β”€ Header.astro
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   β”œβ”€β”€ CustomStyles.astro
β”‚   β”‚   └── Logo.astro
β”‚   β”œβ”€β”€ config/
β”‚   β”‚   β”œβ”€β”€ components/
|   |   |   β”œβ”€β”€ announcement.js
|   |   |   β”œβ”€β”€ call-to-action.js
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   β”œβ”€β”€ home/
|   |   |   β”œβ”€β”€ content.js
|   |   |   β”œβ”€β”€ faqs.js
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   β”œβ”€β”€ site/
β”‚   β”‚   β”‚   β”œβ”€β”€ blog.js
|   |   |   β”œβ”€β”€ config.js
β”‚   β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ content/
β”‚   β”‚   β”œβ”€β”€ post/
β”‚   β”‚   β”‚   β”œβ”€β”€ post-slug-1.md
β”‚   β”‚   β”‚   β”œβ”€β”€ post-slug-2.mdx
β”‚   β”‚   β”‚   └── ...
β”‚   β”‚   β””-- config.ts
β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   β”œβ”€β”€ BaseLayout.astro
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ pages/
β”‚   β”‚   β”œβ”€β”€ [...blog]/
β”‚   β”‚   β”‚   β”œβ”€β”€ [category]/
β”‚   β”‚   β”‚   β”œβ”€β”€ [tag]/
β”‚   β”‚   β”‚   β”œβ”€β”€ [...page].astro
β”‚   β”‚   β”‚   └── index.astro
β”‚   β”‚   β”œβ”€β”€ index.astro
β”‚   β”‚   β”œβ”€β”€ about.md
β”‚   β”‚   β”œβ”€β”€ 404.astro
β”‚   β”‚   β”œ-- rss.xml.ts
β”‚   β”‚   └── ...
β”‚   β”œβ”€β”€ utils/
β”‚   β”œβ”€β”€ config.mjs
β”‚   └── data.js
β”œβ”€β”€ package.json
β”œβ”€β”€ astro.config.mjs
└── ...

Astro looks for .astro or .md files in the src/pages/ directory. Each page is exposed as a route based on its file name.

There's nothing special about src/components/, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

Any static assets, like images, can be placed in the public/ directory if they do not require any transformation or in the assets/ directory if they are imported directly.

Commands

All commands are run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:3000
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run format Format codes with Prettier
npm run lint:eslint Run Eslint
npm run astro ... Run CLI commands like astro add, astro preview

Development

Here are some basic commands to get you up and running to develop with this template:

  1. Install npm dependencies

    npm i
  2. Start the development server

    npm run dev
  3. View your site at localhost:3000

Live reload is enabled by default, so any changes you make will be reflected in the browser.

Deployment

Deployment docs for GitHub Pages

When you push changes to your repository, GitHub will automatically build and deploy your site.

Branch Deploy

This template also comes bundled with the branch-deploy Action. Please ensure you view the branch-deploy.yml file and make any necessary changes if you wish to use it.

The branch-deploy Action will allow you to trigger branch deployments from pull requests by using comments such as .deploy.

Build Cache

This templates also uses a custom GitHub Actions build cache to help speed things up in CI when processing images. If you make any changes to images when working on a project using this template, please ensure to run npm run build before deploying to ensure your cache.json file is updated.

Making Changes

This section goes into details on how you can make changes to the template.

Live Commit Examples

Actual examples in the form of commits to this repository:

Acknowledgements

This theme is based off the template by onwidget

About

Eltana.com's public source code

https://eltana.com/

License:MIT License


Languages

Language:Astro 51.6%Language:JavaScript 36.5%Language:MDX 6.3%Language:TypeScript 4.3%Language:CSS 1.4%Language:Shell 0.0%