Skip to content

Commit

Permalink
fix: og image previews (#34)
Browse files Browse the repository at this point in the history
* fix: runner

* refactor: use config variable
  • Loading branch information
cseas authored Dec 21, 2024
1 parent a768b8c commit 9c0e14f
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 5 deletions.
26 changes: 26 additions & 0 deletions .changeset/soft-swans-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
"blog": patch
---

fix: og image previews

## Summary by CodeRabbit

- **New Features**

- Introduced a changeset-based labeling mechanism for pull requests.
- Enhanced pull request template for clearer issue tracking and requirements.
- Added a new GitHub Actions workflow to enforce a checklist process for pull requests.
- Implemented a new workflow for automatic labeling of pull requests.

- **Improvements**

- Updated configuration for Next.js application to improve package handling.
- Enhanced metadata for social media sharing in post components.

- **Documentation**

- Updated titles and publication dates in documentation files for clarity.

- **Chores**
- Added a new configuration file for code formatting guidelines.
4 changes: 2 additions & 2 deletions .github/workflows/checklist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
jobs:
detect:
name: Detect
runs-on: self-hosted
runs-on: ubuntu-latest
outputs:
checked: ${{ steps.detect.outputs.checked }}
unchecked: ${{ steps.detect.outputs.unchecked }}
Expand All @@ -37,7 +37,7 @@ jobs:
verify:
name: Verify
needs: [detect]
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- name: Self-review
if: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
contents: read
pull-requests: write

runs-on: self-hosted
runs-on: ubuntu-latest

steps:
- name: Add labels
Expand Down
4 changes: 2 additions & 2 deletions src/PostContent/PostContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export function PostContent({ frontMatter, mdxSource }: Post) {
title: frontMatter.title,
image: config.host + frontMatter.cover,
imageAlt: `Cover image for ${frontMatter.title}`,
twitter: "@cse_as",
twitter: config.twitter,
};

return (
Expand All @@ -35,7 +35,7 @@ export function PostContent({ frontMatter, mdxSource }: Post) {
</Head>
<Layout>
<article>
<Typography variant="display">{frontMatter.title}</Typography>
<Typography variant="display">{page.title}</Typography>

{frontMatter.cover ? (
<img src={frontMatter.cover} alt="Cover image" style={{ marginTop: "1rem" }} />
Expand Down

0 comments on commit 9c0e14f

Please sign in to comment.