From 12079eb8ae6f036aca1da5c063fa6687134d1b52 Mon Sep 17 00:00:00 2001 From: Nir Galon Date: Thu, 6 Oct 2022 15:34:40 +0300 Subject: [PATCH] fix: url base path --- README.md | 28 ++++++++++++++-------------- astro.config.mjs | 3 ++- release.config.js | 28 ---------------------------- src/pages/blog/[...page].astro | 2 +- src/pages/index.astro | 2 +- 5 files changed, 18 insertions(+), 45 deletions(-) delete mode 100644 release.config.js diff --git a/README.md b/README.md index 5cbf9de..7490b7d 100644 --- a/README.md +++ b/README.md @@ -1,21 +1,21 @@ -# Welcome to [Astro](https://astro.build) +# Nir Galon Blog & portfolio -[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/basics) +[![CC BY 4.0](https://img.shields.io/badge/License-CC%20BY%204.0-blue.svg)](http://creativecommons.org/licenses/by/4.0/) ![Continuous Deployment](https://github.com/nirgn975/stories-of-a-lifelong-student/workflows/Continuous%20Deployment/badge.svg?branch=main) [![Donate](https://img.shields.io/badge/PayPal-Donate-lightgrey.svg)](https://www.paypal.me/nirgn/2) -> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun! +> Stories of a Lifelong Student is the fourth interaction of my private blog. I always wanted to open source as much as I can in my blog, and when I decided to rebuilt and design it, it was the perfect chance to move to GitHub and open source the code, the images, the posts themselves, and especially my process. +> +> All of the posts are written by me, but I'm more then happy to receive some PRs to correct my grammar, a misleading information, an update to something, or basically everything! +> +> All the things I write in this post are my own thoughts and personal experiments. I'm not responsible for anything you might try to do, and not encourages anything that is not within the law. All the info in the posts are for learning and expanding horizons only! +> +> The posts are usually about computer science (data structures, algorithms, computer networks, operating system, and machine learning), open source (linux, git, code contribution), software development (programming, programming languages, frameworks, design patterns, and architecture), security information (pen testing and whitehat hacking), android and reverse engineering. -![basics](https://user-images.githubusercontent.com/4677417/186188965-73453154-fdec-4d6b-9c34-cb35c248ae5b.png) +## 🚀 Getting Started -Features: +1. [Nodejs & npm](https://nodejs.org) +2. [Astro](https://astro.build) -- ✅ Minimal styling (make it your own!) -- ✅ 100/100 Lighthouse performance -- ✅ SEO-friendly with canonical URLs and OpenGraph data -- ✅ Sitemap support -- ✅ RSS Feed support -- ✅ Markdown & MDX support - -## 🚀 Project Structure +## Project Structure Inside of your Astro project, you'll see the following folders and files: @@ -52,6 +52,6 @@ All commands are run from the root of the project, from a terminal: | `npm run astro ...` | Run CLI commands like `astro add`, `astro preview` | | `npm run astro --help` | Get help using the Astro CLI | -## 👀 Want to learn more? +## 👀 Want to help? Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat). diff --git a/astro.config.mjs b/astro.config.mjs index 173d306..4616522 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,6 +8,7 @@ import mdx from "@astrojs/mdx"; // https://astro.build/config export default defineConfig({ - site: "https://nir.galons.io/portfolio", + site: "https://nir.galons.io", + base: "/portfolio", integrations: [sitemap(), tailwind(), astroImageTools, partytown(), mdx()], }); diff --git a/release.config.js b/release.config.js deleted file mode 100644 index df0c415..0000000 --- a/release.config.js +++ /dev/null @@ -1,28 +0,0 @@ -module.exports = { - branches: [ - "main", - { - name: "beta", - prerelease: true, - }, - ], - plugins: [ - "@semantic-release/commit-analyzer", - "@semantic-release/release-notes-generator", - [ - "@semantic-release/changelog", - { - changelogFile: "CHANGELOG.md", - }, - ], - "@semantic-release/npm", - "@semantic-release/github", - [ - "@semantic-release/git", - { - assets: ["package.json", "package-lock.json", "CHANGELOG.md", "dist/**"], - message: "chore(release): set `package.json` to ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", - }, - ], - ], -}; diff --git a/src/pages/blog/[...page].astro b/src/pages/blog/[...page].astro index be2e5f4..726a7e1 100644 --- a/src/pages/blog/[...page].astro +++ b/src/pages/blog/[...page].astro @@ -103,7 +103,7 @@ const { page } = Astro.props; - + +