Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
- remove prismjs css
- convert fontWeight to numbers and reduce to 400, 600, 800
- skip adding params to ogImage already containing params
  • Loading branch information
AdamQuadmon committed Mar 14, 2022
1 parent 12e9db7 commit 2aeedc7
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 11 deletions.
6 changes: 6 additions & 0 deletions themes/gatsby-theme-lucifero/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 2.0.11

### Patch Changes

- Small fixes

## 2.0.10

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion themes/gatsby-theme-lucifero/gatsby-browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'gatsby-plugin-breadcrumb/gatsby-plugin-breadcrumb.css'
// import '@fontsource/sorts-mill-goudy'
// import '@fontsource/im-fell-english'

import 'prismjs/themes/prism-solarizedlight.css'
// import 'prismjs/themes/prism-solarizedlight.css'
// require('prismjs/themes/prism-dark.css');
// require("prismjs/themes/prism-tomorrow.css")

Expand Down
2 changes: 1 addition & 1 deletion themes/gatsby-theme-lucifero/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@adamquadmon/gatsby-theme-lucifero",
"version": "2.0.10",
"version": "2.0.11",
"author": "Luciano Amodio <gatsby@lucianoamodio.it> (@adamquadmon)",
"description": "Dark/Light Chakra UI theme with MDX and other suff",
"license": "MIT",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const breadcrumbs = {
// Applied to each breadcrumb 'crumbs' (<li>)
'a.breadcrumb__link': {
fontSize: 'xs',
fontWeight: 'black',
fontWeight: 800,
_hover: {
color: colorMode === 'dark' ? 'gray.600' : 'gray.400',
},
Expand All @@ -30,7 +30,7 @@ export const breadcrumbs = {
// Applied to the breadcrumb separators (<span>)
'.breadcrumb__separator': {
fontSize: 'xs',
fontWeight: 'bold',
fontWeight: 600,
},
}),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const link = {
inactive: ({ colorMode }) => ({
color: colorMode === 'dark' ? 'gray.800' : 'gray.400',
fontSize: 'xs',
fontWeight: 'black',
fontWeight: 800,
textTransform: 'uppercase',
_hover: {
textDecoration: 'none',
Expand All @@ -13,7 +13,7 @@ export const link = {
}),
imageLink: {
fontSize: 'xs',
fontWeight: 'black',
fontWeight: 800,
textTransform: 'uppercase',
},
mdx: ({ colorMode }) => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export const navItemSub = {
'.item_header': {
textTransform: 'uppercase',
// fontFamily: 'heading',
fontWeight: 700,
fontWeight: 600,
color: colorMode === 'dark' ? 'gray.200' : 'gray.700',
px: 2,
display: 'block',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export const page = {
Page: {
baseStyle: {
pb: 4,
fontWeight: 'light',
fontWeight: 400,
},
variants: {
blog: {},
Expand Down
1 change: 0 additions & 1 deletion themes/gatsby-theme-lucifero/src/components/Blog/Toc.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const TableOfContents = ({ tableOfContents, variant }) => {
if (!isMini()) return
if (!isOpen) e.preventDefault()
onToggle(e)
console.log(isOpen)
}

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const options = {
fontFamily: 'impact',
fontSizes: [60, 120],
fontStyle: 'normal',
fontWeight: 'normal',
fontWeight: 400,
padding: 1,
rotations: 3,
rotationAngles: [0, 90],
Expand Down
1 change: 1 addition & 0 deletions themes/gatsby-theme-lucifero/src/components/Image.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default Image

const addOgImageSettings = (image) => {
if (image.contentUrl) image = image.contentUrl
if (image.indexOf('?') > -1) return image
return `${image}?w=1200&h=630&fit=crop&crop=edges&auto=compress,format`
}

Expand Down
1 change: 0 additions & 1 deletion themes/gatsby-theme-lucifero/src/components/Seo/Seo.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ const getBaseMeta = (page) => {
}
const getTwitterMeta = (page) => {
const { headline, author, description, image } = page
console.log(addOgImageSettings(image))
const metaTags = [
{
property: `twitter:description`,
Expand Down

0 comments on commit 2aeedc7

Please sign in to comment.