AIdventures / web

AIdventure blog webpage.

Home Page:https://aidventure.es

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Astro Starter Kit: Basics

npm create astro@latest -- --template basics

Open in StackBlitz Open with CodeSandbox Open in GitHub Codespaces

πŸ§‘β€πŸš€ Seasoned astronaut? Delete this file. Have fun!

just-the-basics

πŸš€ Project Structure

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

/
β”œβ”€β”€ public/
β”‚   └── favicon.svg
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ components/
β”‚   β”‚   └── Card.astro
β”‚   β”œβ”€β”€ layouts/
β”‚   β”‚   └── Layout.astro
β”‚   └── pages/
β”‚       └── index.astro
└── package.json

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.

🧞 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:4321
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run astro ... Run CLI commands like astro add, astro check
npm run astro -- --help Get help using the Astro CLI

πŸ‘€ Want to learn more?

Feel free to check our documentation or jump into our Discord server.

πŸ“ ToDos

  • Add a 404 page

  • Menu toggler not working on mobile

  • Image caption

  • [-] Add a sitemap.xml file

  • [-] Add a robots.txt file

  • [-] Add RSS

  • Add copy-paste code

  • [?] Add pagination - Load more

  • Add tag filter

  • TOC for mobile down the screen collapsible => TOC title touch and expand

  • Add Google Analytics (https://www.freecodecamp.org/news/how-to-add-google-analytics-to-your-astro-website/)

  • Add search

  • Responsive test

  • Image optimization

  • Add envio correo suscripciΓ³n

  • Add a manifest.json file

  • Fix "our/we" y otras palabras personales en los posts

<!-- Add a Load More button here -->
<div class=`
    cursor-pointer
    flex
    items-center
    justify-center
    w-48
    my-6
    px-5
    py-3
    mx-auto
    focus:outline-none
    focus:ring-2
    focus:ring-black
    focus:ring-offset-2
    rounded-xl
    font-medium
    border-black
    border-2
    bg-black
    text-base
    text-white
    hover:bg-lila-500
    hover:text-black
`>
    <button class="btn btn-primary">Load More</button>
</div>

https://github.com/danielcgilibert/blog-template

NGINX Config

server {
  server_name   aidventure.es;

  location / {
    proxy_pass  http://localhost:8321;
  }

  location /subscribe {
    proxy_set_header Host $host;
    proxy_pass  http://localhost:8123/subscribe;
  }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/aidventure.es/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/aidventure.es/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
server {
    if ($host = aidventure.es) {
        return 301 https://$host$request_uri;
    } # managed by Certbot


  listen        80;
  server_name   aidventure.es;
    return 404; # managed by Certbot


}

Start the services

docker compose up --build -d

Posts Ideas

  • TF-IDF, BM25, Bert. Ranking de documentos ante una query

About

AIdventure blog webpage.

https://aidventure.es


Languages

Language:Jupyter Notebook 90.7%Language:MDX 6.9%Language:Astro 1.9%Language:Python 0.2%Language:Dockerfile 0.1%Language:JavaScript 0.1%Language:TypeScript 0.1%