Skip to content

Commit

Permalink
new ogImages and ogCode | v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
toybreaker committed Feb 21, 2024
1 parent 8b8e454 commit 045f9c6
Show file tree
Hide file tree
Showing 28 changed files with 40 additions and 31 deletions.
5 changes: 3 additions & 2 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import { defineConfig } from 'astro/config'
import mdx from '@astrojs/mdx'
//import partytown from '@astrojs/partytown'

export default defineConfig({
output: 'static',
build: {
inlineStylesheets: 'always'
},
experimental: {
contentCollectionCache: true
},
integrations: [
mdx({
extendMarkdownConfig: false,
gfm: true
})
//partytown()
],
outDir: './dist',
site: 'https://rokma.com/',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "rokastro",
"type": "module",
"version": "1.0.2",
"version": "1.0.3",
"scripts": {
"dev": "astro dev",
"build": "astro build",
Expand Down
34 changes: 18 additions & 16 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/og/og_about.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/og_advertising.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/og_branding.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/og_home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/og_photography.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/og_specials.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/og/og_webdesign.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed src/assets/og_about.jpg
Binary file not shown.
Binary file removed src/assets/og_advertising.jpg
Binary file not shown.
Binary file removed src/assets/og_branding.jpg
Binary file not shown.
Binary file removed src/assets/og_home.jpg
Binary file not shown.
Binary file removed src/assets/og_photography.jpg
Binary file not shown.
Binary file removed src/assets/og_spoecials.jpg
Binary file not shown.
Binary file removed src/assets/og_webdesign.jpg
Binary file not shown.
File renamed without changes
File renamed without changes
3 changes: 2 additions & 1 deletion src/layouts/Post.astro
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ const { title, category, images, tags, bodyClass } =
const pageDesc = siteData.description_web
const mainClass = 'container'
const ogImages = images[0]
---

<Layout
pageTitle={title}
pageDesc={pageDesc}
mainClass={mainClass}
bodyClass={category + ' ' + bodyClass}
ogImage={images[0]}
ogImage={ogImages}
>
<div class='uppercase' slot='header'>
<nav aria-label='breadcrumb'>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/about.astro
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface Props {
const bodyClass = 'about black'
const mainClass = 'no_padding'
const pageTitle = 'empowers'
const ogImage = '/og/og_about.jpg'
const pageDesc = siteData.description
---

Expand All @@ -27,7 +28,7 @@ const pageDesc = siteData.description
bodyClass={bodyClass}
mainClass={mainClass}
pageDesc={pageDesc}
ogImage='../assets/og_about.jpg'
ogImage={ogImage}
>
<article class='container'>
<h1 class='h3 container'>ABOUT ROKMA.</h1>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/advertising/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface Props {
const mainClass = 'container'
const bodyClass = category
const pageDesc = siteData.description_advertising
const ogImage = '/og/og_advertising.jpg'
---

<Layout
Expand All @@ -49,7 +50,7 @@ const pageDesc = siteData.description_advertising
mainClass={mainClass}
category={category}
pageDesc={pageDesc}
ogImage='../assets/og_webdesign.jpg'
ogImage={ogImage}
>
<p slot='header' class='center'>Significative Advertising works</p>
<div class='posts'>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/branding/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface Props {
const mainClass = 'container'
const bodyClass = category + ' lightgray'
const pageDesc = siteData.description_branding
const ogImage = '/og/og_branding.jpg'
---

<Layout
Expand All @@ -49,7 +50,7 @@ const pageDesc = siteData.description_branding
mainClass={mainClass}
category={category}
pageDesc={pageDesc}
ogImage='../assets/og_webdesign.jpg'
ogImage={ogImage}
>
<p slot='header' class='center'>Noteworthy Branding projects</p>
<div class='posts'>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export interface Props {
const bodyClass = 'home'
const mainClass = 'no_padding'
const pageTitle = 'empowers'
const ogImage = '/og/og_home.jpg'
const pageDesc = siteData.description
---

Expand All @@ -34,7 +35,7 @@ const pageDesc = siteData.description
bodyClass={bodyClass}
mainClass={mainClass}
pageDesc={pageDesc}
ogImage='../assets/og_home.jpg'
ogImage={ogImage}
>
<section class='intro why full_height hero'>
<div class='container'>
Expand Down
6 changes: 2 additions & 4 deletions src/pages/photography/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,7 @@ export interface Props {
const mainClass = 'container'
const bodyClass = category + ' black'
const pageDesc = siteData.description_photography
//const pickedTags = 'photography'
// console.log(pickedTags)
const ogImage = '/og/og_photography.jpg'
const relatedPosts = await getCollection('posts', ({ data }) => {
return (
Expand All @@ -62,7 +60,7 @@ const relatedPosts = await getCollection('posts', ({ data }) => {
mainClass={mainClass}
category={category}
pageDesc={pageDesc}
ogImage='../assets/og_webdesign.jpg'
ogImage={ogImage}
>
<p slot='header' class='center'>Pretty Cool Photography projects.</p>
<div class='posts featured'>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/specials/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface Props {
const mainClass = 'container'
const bodyClass = category + ' white'
const pageDesc = siteData.description_specials
const ogImage = '/og/og_specials.jpg'
---

<Layout
Expand All @@ -49,7 +50,7 @@ const pageDesc = siteData.description_specials
mainClass={mainClass}
category={category}
pageDesc={pageDesc}
ogImage='../assets/og_webdesign.jpg'
ogImage={ogImage}
>
<p slot='header' class='center'>Special one-shot projects</p>
<div class='posts'>
Expand Down
3 changes: 2 additions & 1 deletion src/pages/websites/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ export interface Props {
const mainClass = 'container'
const bodyClass = category + ' darkgray'
const pageDesc = siteData.description_web
const ogImage = '/og/og_webdesign.jpg'
---

<Layout
Expand All @@ -49,7 +50,7 @@ const pageDesc = siteData.description_web
mainClass={mainClass}
category={category}
pageDesc={pageDesc}
ogImage='../assets/og_webdesign.jpg'
ogImage={ogImage}
>
<p slot='header' class='center'>Recently Crafted Digital Products</p>
<div class='posts'>
Expand Down
3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"@data/*": ["src/data/*"],
"@fav/*": ["public/assets/favicons/*"],
"@layouts/*": ["src/layouts/*"],
"@p/*": ["src/assets/*"],
"@p/*": ["src/assets/p/*"],
"@og/*": ["src/assets/p/og/*"],
"@scripts/*": ["src/scripts/*"],
"@svgs/*": ["src/assets/svgs/*"],
"@assets/*": ["public/assets/*"],
Expand Down

0 comments on commit 045f9c6

Please sign in to comment.