File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # URL da aplicação, usada para gerar links absolutos
2+ APP_URL =
3+ BASE_URL =
Original file line number Diff line number Diff line change 11// @ts -check
22import { defineConfig } from 'astro/config' ;
3+ import { type AstroUserConfig } from 'astro' ;
34
45import mdx from '@astrojs/mdx' ;
56import icon from 'astro-icon' ;
67import tailwindcss from '@tailwindcss/vite' ;
78import astroExpressiveCode from 'astro-expressive-code' ;
89
9- import { siteConfig } from './src/site.config' ;
10+ import siteConfig from './src/site.config' ;
1011import remarkDirective from 'remark-directive' ;
1112import rehypeTableProcessor from './src/plugins/rehype-table-processor' ;
1213
1314
1415// https://astro.build/config
1516export default defineConfig ( {
1617 site : siteConfig . Url ,
17- base : '/blog/' ,
18+ base : siteConfig . BaseUrl ,
1819 trailingSlash : 'ignore' ,
1920 integrations : [
2021 astroExpressiveCode ( {
@@ -45,4 +46,4 @@ export default defineConfig({
4546 devToolbar : {
4647 enabled : false ,
4748 } ,
48- } ) ;
49+ } ) as AstroUserConfig ; ;
Original file line number Diff line number Diff line change 11---
2- import { siteConfig } from " @/site.config" ;
2+ import siteConfig from " @/site.config" ;
33---
44
55<footer class =" mt-15 mb-5" >
Original file line number Diff line number Diff line change 11---
2- import { siteConfig } from ' @/site.config' ;
2+ import siteConfig from ' @/site.config' ;
33
44
55interface Props {
Original file line number Diff line number Diff line change 11---
22import ThemeToggle from " @/components/layout/ThemeToggle.astro" ;
33import Search from " ./Search.astro" ;
4- import { menuLinks , siteConfig } from " @/site.config" ;
4+ import siteConfig from " @/site.config" ;
55---
66
77<header >
@@ -19,7 +19,7 @@ import { menuLinks, siteConfig } from "@/site.config";
1919 </div >
2020 <nav class =" divide-x -ms-3 mt-2 divide-dashed font-serif" >
2121 {
22- menuLinks .map (link => (
22+ siteConfig . menuLinks .map (link => (
2323 <a href = { link .path } class = " text-xl px-3 box-border font-semibold" >{ link .title } </a >
2424 ))
2525 }
Original file line number Diff line number Diff line change 11---
22import Head from " @/components/layout/Head.astro" ;
3- import { siteConfig } from " @/site.config" ;
3+ import siteConfig from " @/site.config" ;
44
55import " @/styles/global.css" ;
66
Original file line number Diff line number Diff line change 22import PostPreview from " @/components/blog/PostPreview.astro" ;
33import NotFoundPosts from " @/components/layout/NotFoundPosts.astro" ;
44import SiteBase from " @/layouts/SiteBase.astro" ;
5+ import siteConfig from " @/site.config" ;
56import { getOrderedBlogPosts } from " @/utils/blog" ;
67import { Icon } from " astro-icon/components" ;
78
@@ -18,19 +19,12 @@ const postsFiltereded = allPostsByDate.slice(0, 5)
1819 <p class =" mt-3" >Meu nome é Pedro Henrick, um desenvolvedor com paixão por open source e self hosting.</p >
1920 <p class =" mt-1" ></p >
2021 <p class =" flex items-center gap-3 mt-4" >
21- <span >Me encontre em:</span >
22- <a href =" https://linkedin.com/in/p3aga" target =" _blank" >
23- <Icon name =" simple-icons:linkedin" class =" text-xl" />
24- </a >
25- <a href =" https://github.com/p3aga" target =" _blank" >
26- <Icon name =" simple-icons:github" class =" text-xl" />
27- </a >
28- <a href =" https://codeberg.org/p3aga" target =" _blank" >
29- <Icon name =" simple-icons:codeberg" class =" text-xl" />
30- </a >
31- <a href =" mailto:pedrohenrickqa@gmail.com" target =" _blank" >
32- <Icon name =" simple-icons:maildotru" class =" text-xl" />
33- </a >
22+ <span >Me encontre em:</span >
23+ { siteConfig .UserLinks .map ((link ) => (
24+ <a href = { link .url } target = " _blank" >
25+ <Icon name = { ` simple-icons:${link .icon } ` } class = " text-xl" />
26+ </a >
27+ ))}
3428 </p >
3529 </div >
3630 </section >
Original file line number Diff line number Diff line change 11const siteConfig = ( {
2- Url : 'https://ipedrohenrick.dev.br' ,
2+ Url : import . meta. env . APP_URL || 'http://localhost:4321' ,
3+ BaseUrl : import . meta. env . BASE_URL || '/' ,
34 Lang : "pt-BR" ,
45 SiteName : "P3AGA" ,
56 Description : "Pedro Henrick personal portfolio/blog :)" ,
67 Author : "Pedro Henrick Queiroz" ,
78 Year : 2026 ,
9+ UserLinks : [
10+ { icon : "linkedin" , url : "https://www.linkedin.com/in/p3aga" } ,
11+ { icon : "github" , url : "https://github.com/p3aga" } ,
12+ { icon : "codeberg" , url : "https://codeberg.org/p3aga" } ,
13+ { icon : "maildotru" , url : "mailto:pedrohenrickqa@gmail.com" }
14+ ] ,
15+ menuLinks : [
16+ { path : "/blog" , title : "Blog" } ,
17+ { path : "/about" , title : "Sobre" } ,
18+ ]
819} )
920
10- const menuLinks : { path : string , title : string } [ ] = [
11- { path : "/blog" , title : "Blog" } ,
12- { path : "/about" , title : "Sobre" } ,
13- ] ;
14-
15- export { menuLinks , siteConfig } ;
21+ export default siteConfig ;
You can’t perform that action at this time.
0 commit comments