@@ -28,80 +28,9 @@ export default defineConfig({
2828 } ,
2929 ] ,
3030 ] ,
31- transformHead : ( { pageData } ) => {
32- const head : HeadConfig [ ] = [ ] ;
33-
34- if ( pageData . frontmatter . description ) {
35- head . push ( [
36- "meta" ,
37- {
38- property : "og:description" ,
39- content : pageData . frontmatter . description ,
40- } ,
41- ] ) ;
42- }
43-
44- if ( pageData . frontmatter . image ) {
45- head . push ( [
46- "meta" ,
47- { property : "og:image" , content : pageData . frontmatter . image } ,
48- ] ) ;
49- }
50-
51- head . push ( [
52- "meta" ,
53- {
54- property : "og:url" ,
55- content : `https://mmrl.dev${ pageData . relativePath } ` ,
56- } ,
57- ] ) ;
58-
59- head . push ( [ "meta" , { property : "og:type" , content : "website" } ] ) ;
60-
61- head . push ( [ "meta" , { property : "og:site_name" , content : "MMRL" } ] ) ;
62-
63- head . push ( [ "meta" , { property : "og:locale" , content : "en_US" } ] ) ;
64-
65- head . push ( [ "meta" , { name : "twitter:card" , content : "summary" } ] ) ;
66-
67- head . push ( [ "meta" , { name : "twitter:site" , content : "@Der_Googler" } ] ) ;
68-
69- head . push ( [ "meta" , { name : "twitter:creator" , content : "@Der_Googler" } ] ) ;
70-
71- head . push ( [
72- "meta" ,
73- { name : "twitter:title" , content : pageData . frontmatter . title } ,
74- ] ) ;
75-
76- head . push ( [
77- "meta" ,
78- {
79- name : "twitter:description" ,
80- content : pageData . frontmatter . description ,
81- } ,
82- ] ) ;
83-
84- if ( pageData . frontmatter . image ) {
85- head . push ( [
86- "meta" ,
87- { name : "twitter:image" , content : pageData . frontmatter . image } ,
88- ] ) ;
89-
90- head . push ( [
91- "meta" ,
92- { name : "twitter:image:alt" , content : pageData . frontmatter . title } ,
93- ] ) ;
94- }
95-
96- return head ;
97- } ,
9831 buildEnd : async ( config : SiteConfig ) => {
9932 const publicApi = resolve ( config . outDir , "api" ) ;
100- // const repositoriesYaml = resolve(publicApi, "repositories.yaml");
101- const publicRepoList = resolve ( publicApi , "gg" ) ;
102-
103- // const readContent = await readFile(repositoriesYaml, "utf8");
104- // const par = parse(readContent);
33+ const publicRepoList = resolve ( publicApi , "repositories.json" ) ;
10534
10635 console . log ( "Writing repositories.json" ) ;
10736 await writeFile ( publicRepoList , repositoriesJSONstringify ) ;
0 commit comments