Coder Social home page Coder Social logo

myblog's Introduction

A personal blog written by Astro.

๐Ÿš€ Project Structure

Inside of my Astro project, you'll see the following folders and files:

/
โ”œโ”€โ”€ .github/workflows/
โ”‚    โ””โ”€โ”€ deploy.yml
โ”œโ”€โ”€ public/
โ””โ”€โ”€ src/
     โ”œโ”€โ”€ lib/
     โ”‚    โ””โ”€โ”€ components
     โ”‚    โ””โ”€โ”€ layouts
     โ”œโ”€โ”€ pages/
     โ”‚    โ””โ”€โ”€ [...page]/ 
     โ”‚    โ””โ”€โ”€ posts/
     โ”‚    โ””โ”€โ”€ tags/[path]/[...page]/
     โ””โ”€โ”€ styles/
          โ””โ”€โ”€ global.scss 
          โ””โ”€โ”€ md.scss

Descriptions:

folder descriptions
.github/workflows/ Github deploy file
public images .e.c logo.png
src/lib/ common components and layouts
src/styles/ includes layout and markdown page's styles.
src/pages/[...page] this route will match the main page index.html, why use [...page] here? course have paginate in index.html, [...page] will get the page number.
src/pages/posts/ all markdown article pages.
src/pages/tags/[path]/[...page]/ multi-level routes for tags list, first, path route match which tag, then [...page] route match the page number of list

๐Ÿ‘€ How to use this blog template?

  1. Delete all files in src/pages/posts/ folder.
  2. Write your blog post in src/pages/posts/. Program will read all *.md files under this folder.
  3. *.md file use src/lib/layouts/md.astro as layout.

myblog's People

Contributors

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