SubodhDahal / subodhdahal.github.io

0 stars 0 forks source link

Sweep: setup and use nuxt-seo #16

Open SubodhDahal opened 5 months ago

SubodhDahal commented 5 months ago
Checklist - [X] Modify `package.json` ✓ https://github.com/SubodhDahal/subodhdahal.github.io/commit/0b0bbdbabd876afdb3f67a818a494461cf23e81a [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/package.json) - [ ] Running GitHub Actions for `package.json` ⋯ [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/package.json) - [X] Create `nuxt.config.js` ✓ https://github.com/SubodhDahal/subodhdahal.github.io/commit/46f219cb3a2d61e933bb55474277431b0c55f1e1 [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/nuxt.config.js) - [ ] Running GitHub Actions for `nuxt.config.js` ⋯ [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/nuxt.config.js) - [X] Modify `app.vue` ✓ https://github.com/SubodhDahal/subodhdahal.github.io/commit/2d5d8e4db67084bfda21fc4075297f108ea8706a [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/app.vue#L1-L26) - [ ] Running GitHub Actions for `app.vue` ⋯ [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/app.vue#L1-L26) - [X] Modify `pages/blog/[slug].vue` ✓ https://github.com/SubodhDahal/subodhdahal.github.io/commit/0c1da4281de5133143909cc7af74998a65c8c9be [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/pages/blog/[slug].vue#L48-L87) - [ ] Running GitHub Actions for `pages/blog/[slug].vue` ⋯ [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/pages/blog/[slug].vue#L48-L87) - [X] Modify `pages/blog/2023-travels-visual-journey.vue` ✓ https://github.com/SubodhDahal/subodhdahal.github.io/commit/c86bad8b5e2d6910a0f14ef5f99773c5a4df5dd8 [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/pages/blog/2023-travels-visual-journey.vue#L71-L127) - [ ] Running GitHub Actions for `pages/blog/2023-travels-visual-journey.vue` ⋯ [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/pages/blog/2023-travels-visual-journey.vue#L71-L127) - [X] Modify `pages/blog/index.vue` ✓ https://github.com/SubodhDahal/subodhdahal.github.io/commit/af9d8ff5d4007967c840101eeed6e48b86aea95e [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/pages/blog/index.vue#L10-L24) - [ ] Running GitHub Actions for `pages/blog/index.vue` ⋯ [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/pages/blog/index.vue#L10-L24) - [X] Modify `pages/index.vue` ✓ https://github.com/SubodhDahal/subodhdahal.github.io/commit/f4ac54cc390b7e6f2c2c3c7f1c10507c0ad25fa6 [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/pages/index.vue#L49-L63) - [ ] Running GitHub Actions for `pages/index.vue` ⋯ [Edit](https://github.com/SubodhDahal/subodhdahal.github.io/edit/sweep/setup_and_use_nuxtseo/pages/index.vue#L49-L63)
SubodhDahal commented 5 months ago

🚀 Here's the PR! #17

See Sweep's progress at the progress dashboard!
💎 Sweep Pro: I'm using GPT-4. You have unlimited GPT-4 tickets. (tracking ID: None)
Install Sweep Configs: Pull Request

[!TIP] I can email you next time I complete a pull request if you set up your email here!


Actions (click)

GitHub Actions✓

Here are the GitHub Actions logs prior to making any changes:

Sandbox logs for b3ba364
Checking package.json for syntax errors... ✅ package.json has no syntax errors! 1/1 ✓
Checking package.json for syntax errors...
✅ package.json has no syntax errors!

Sandbox passed on the latest master, so sandbox checks will be enabled for this issue.


Step 1: 🔎 Searching

I found the following snippets in your repository. I will now analyze these snippets and come up with a plan.

Some code snippets I think are relevant in decreasing order of relevance (click to expand). If some file is missing from here, you can mention the path in the ticket description. https://github.com/SubodhDahal/subodhdahal.github.io/blob/b3ba3648651fec1ed999437e53105941879e92b4/app.vue#L1-L35 https://github.com/SubodhDahal/subodhdahal.github.io/blob/b3ba3648651fec1ed999437e53105941879e92b4/pages/blog/[slug].vue#L44-L89 https://github.com/SubodhDahal/subodhdahal.github.io/blob/b3ba3648651fec1ed999437e53105941879e92b4/pages/blog/2023-travels-visual-journey.vue#L67-L127 https://github.com/SubodhDahal/subodhdahal.github.io/blob/b3ba3648651fec1ed999437e53105941879e92b4/pages/blog/index.vue#L1-L37 https://github.com/SubodhDahal/subodhdahal.github.io/blob/b3ba3648651fec1ed999437e53105941879e92b4/pages/index.vue#L29-L70

Step 2: ⌨️ Coding

--- 
+++ 
@@ -14,5 +14,8 @@
     "@nuxtjs/tailwindcss": "^6.11.1",
     "@tailwindcss/typography": "^0.5.10",
     "nuxt": "^3.9.3"
+  },
+  "dependencies": {
+    "@nuxtjs/seo": "^1.4.0"
   }
 }

Ran GitHub Actions for 0b0bbdbabd876afdb3f67a818a494461cf23e81a:
• cd:

Ran GitHub Actions for 46f219cb3a2d61e933bb55474277431b0c55f1e1:
• cd:

--- 
+++ 
@@ -1,28 +1,22 @@
 

Ran GitHub Actions for 2d5d8e4db67084bfda21fc4075297f108ea8706a:
• cd:

--- 
+++ 
@@ -47,7 +47,7 @@

 

Ran GitHub Actions for 0c1da4281de5133143909cc7af74998a65c8c9be:
• cd:

--- 
+++ 
@@ -70,7 +70,7 @@

 

Ran GitHub Actions for c86bad8b5e2d6910a0f14ef5f99773c5a4df5dd8:
• cd:

--- 
+++ 
@@ -13,15 +13,25 @@
 const description: string = 'Blog posts by Subodh Dahal'
 const image: string = ''
 const path: string = '/blog'
-useHead({
-  title,
-  meta: createSEOMeta({ title, description, image, url: path }),
-  link: [
-    {
-      rel: 'canonical',
-      href: `https://subodhdahal.com${path}`,
-    },
-  ],
+useMeta({
+  title: 'Blog posts',
+  description: 'Blog posts by Subodh Dahal',
+  image: '',
+  canonical: 'https://subodhdahal.com/blog',
+  openGraph: {
+    type: 'website',
+    url: 'https://subodhdahal.com/blog',
+    title: 'Blog posts',
+    description: 'Blog posts by Subodh Dahal',
+    image: ''
+  },
+  twitter: {
+    card: 'summary',
+    site: '@SubodhDahal',
+    title: 'Blog posts',
+    description: 'Blog posts by Subodh Dahal',
+    image: ''
+  }
 })

 let selectedTags: Ref = ref([])

Ran GitHub Actions for af9d8ff5d4007967c840101eeed6e48b86aea95e:
• cd:

--- 
+++ 
@@ -51,15 +51,25 @@
 const description: string = 'Subodh Dahal -  Software Engineer, Automation Enthusiast, Hobbyist Photographer & Avid Ponderer'
 const image: string = '/images/me.jpg'
 const path: string = '/'
-useHead({
-  title,
-  meta: createSEOMeta({ title, description, image, url: path }),
-  link: [
-    {
-      rel: 'canonical',
-      href: `https://subodhdahal.com${path}`,
-    },
-  ],
+useMeta({
+  title: 'Subodh Dahal\'s musings on software engineering, automation, photography and more',
+  description: 'Subodh Dahal - Software Engineer, Automation Enthusiast, Hobbyist Photographer & Avid Ponderer',
+  image: '/images/me.jpg',
+  canonical: 'https://subodhdahal.com',
+  openGraph: {
+    type: 'website',
+    url: 'https://subodhdahal.com',
+    title: 'Subodh Dahal\'s musings on software engineering, automation, photography and more',
+    description: 'Subodh Dahal - Software Engineer, Automation Enthusiast, Hobbyist Photographer & Avid Ponderer',
+    image: 'https://subodhdahal.com/images/me.jpg'
+  },
+  twitter: {
+    card: 'summary_large_image',
+    site: '@SubodhDahal',
+    title: 'Subodh Dahal\'s musings on software engineering, automation, photography and more',
+    description: 'Subodh Dahal - Software Engineer, Automation Enthusiast, Hobbyist Photographer & Avid Ponderer',
+    image: 'https://subodhdahal.com/images/me.jpg'
+  }
 })
 

Ran GitHub Actions for f4ac54cc390b7e6f2c2c3c7f1c10507c0ad25fa6:
• cd:


Step 3: 🔁 Code Review

I have finished reviewing the code for completeness. I did not find errors for sweep/setup_and_use_nuxtseo.


🎉 Latest improvements to Sweep:
  • New dashboard launched for real-time tracking of Sweep issues, covering all stages from search to coding.
  • Integration of OpenAI's latest Assistant API for more efficient and reliable code planning and editing, improving speed by 3x.
  • Use the GitHub issues extension for creating Sweep issues directly from your editor.

💡 To recreate the pull request edit the issue title or description. To tweak the pull request, leave a comment on the pull request.Something wrong? Let us know.