Skip to content

Commit

Permalink
Adjust OG image size (#22)
Browse files Browse the repository at this point in the history
* Adjust OG image size

* Modify generator tag

* Update d0xigen OG image

* Add custom emoji to a projects

* lintfix

* Add changelog
  • Loading branch information
d0rich authored Jun 16, 2024
1 parent cb541c3 commit ceeaa38
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/brown-rules-destroy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'd0xigen': minor
---

Display d0xigen as generator in meta tag
5 changes: 5 additions & 0 deletions .changeset/twenty-schools-vanish.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'd0xigen': minor
---

Make images big in OpenGraph
2 changes: 1 addition & 1 deletion apps/d0rich.me/components/projects/Tile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ defineProps<{

<style>
.project-tile {
@apply relative isolate;
@apply relative isolate font-sans;
}
.project-tile__frame--top,
Expand Down
Binary file modified apps/d0xigen.d0rich.me/public/og/image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion packages/d0xigen/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ useSeoMeta({
description: appConfig.d0xigen.description,
ogDescription: appConfig.d0xigen.description,
author: appConfig.d0xigen.author,
generator: 'Nuxt 3',
generator: `d0xigen v${useRuntimeConfig().public.version}`,
ogSiteName: appConfig.d0xigen.title,
ogImage: appConfig.d0xigen.url + appConfig.d0xigen.og.image,
twitterImage: appConfig.d0xigen.url + appConfig.d0xigen.og.image,
twitterCard: 'summary_large_image',
ogUrl: computed(() => appConfig.d0xigen.url + route.path)
})
</script>
Expand Down
8 changes: 7 additions & 1 deletion packages/d0xigen/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import { fileURLToPath } from 'url'
import { dirname, join } from 'path'
import fs from 'fs'
const currentDir = dirname(fileURLToPath(import.meta.url))

const packageJson = JSON.parse(
fs.readFileSync(join(currentDir, 'package.json'), 'utf-8')
)

// https://v3.nuxtjs.org/api/configuration/nuxt.config
export default defineNuxtConfig({
extends: [
Expand Down Expand Up @@ -35,7 +40,8 @@ export default defineNuxtConfig({
runtimeConfig: {
public: {
isDev: process.env.NODE_ENV === 'development',
isProd: process.env.NODE_ENV === 'production'
isProd: process.env.NODE_ENV === 'production',
version: packageJson.version
}
},
colorMode: {
Expand Down

0 comments on commit ceeaa38

Please sign in to comment.