Coder Social home page Coder Social logo

hi-'s Introduction

Astronotion starter site

Opinionated starter site ("theme") to get you up and running with an Astro site + Notion content.

  • Uses Astronotion to fetch, transform, and render data from Notion with Astro components
  • Fast, accessible, and SEO-friendly
    • Sitemap, metadata, web manifest
    • Semantic HTML markup
    • Lazy loaded images
    • A+ Lighthouse score
  • Multiple customizable colour modes with Tailwind and daisyUI
  • Markdown examples provided for non-Notion use cases

Currently only available in SSG.

Quick start

Deploy with Vercel Deploy with Netlify

Or create a new repo from this template.

Commands

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

You may also use yarn or pnpm instead of npm.

Configure

  1. Edit the config file for basic site content/data

https://github.com/ekafyi/astronotion-starter-ssg/blob/main/src/configs/an-starter-config.mjs

  1. Replace the static assets with your own (presumably non-feline) branding assets

https://github.com/ekafyi/astronotion-starter-ssg/tree/main/public

What to modify:

  • favicon.ico
  • manifest.json
  • images/branding/icon-192x192.png
  • images/branding/icon-512x512.png
  1. Replace the sample Notion page ids

โš ๏ธ Make sure the Notion page is shared to public

Example for standalone page

https://github.com/ekafyi/astronotion-starter-ssg/blob/main/src/pages/kitchen-sink-notion.astro#L8

Notion source page: https://ekafyi-playground.notion.site/Plants-1cf6f82effc24ad4aea5a50f88198a7b

Example for collection ("parent" and "child") pages

Notion source page: https://ekafyi-playground.notion.site/2ba80ec3d84d46479f23ec15ba5e39b0

Deploy

Run the build command (see "Commands" above) and deploy your dist directory to your hosting service.

If you use Netlify or Vercel, you can:

  • run the deploy command from the CLI: netlify deploy or vercel deploy --prebuilt, and/or...
  • trigger automatic deployment when you push to your connected repository

hi-'s People

Contributors

holawanli avatar

Stargazers

Nikola Hristov 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.