soames-gatsby-theme 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,11 @@
1
- # Soames Gatsby Theme
1
+ <p align="center">
2
+ <a href="https://www.gatsbyjs.com">
3
+ <img alt="Gatsby" src="https://www.gatsbyjs.com/Gatsby-Monogram.svg" width="60" />
4
+ </a>
5
+ </p>
6
+ <h1 align="center">
7
+ Soames Gatsby Theme
8
+ </h1>
2
9
 
3
10
  [![npm version](https://img.shields.io/npm/v/soames-gatsby-theme.svg?style=flat-square)](https://www.npmjs.com/package/soames-gatsby-theme)
4
11
  [![license](https://img.shields.io/npm/l/soames-gatsby-theme.svg?style=flat-square)](./LICENSE)
@@ -16,31 +16,6 @@ const themeConfig = (themeOptions = {}) => {
16
16
  url,
17
17
  },
18
18
  },
19
- {
20
- resolve: `gatsby-source-filesystem`,
21
- options: {
22
- name: `assets`,
23
- path: `${__dirname}/content/assets`,
24
- },
25
- },
26
- `gatsby-plugin-image`,
27
- `gatsby-plugin-sharp`,
28
- `gatsby-transformer-sharp`,
29
- {
30
- // See https://www.gatsbyjs.com/plugins/gatsby-plugin-manifest/?=gatsby-plugin-manifest
31
- resolve: `gatsby-plugin-manifest`,
32
- options: {
33
- name: `Gatsby Starter WordPress Blog`,
34
- short_name: `GatsbyJS & WP`,
35
- start_url: `/`,
36
- background_color: `#ffffff`,
37
- theme_color: `#663399`,
38
- display: `minimal-ui`,
39
- icon: `content/assets/gatsby-icon.png`,
40
- },
41
- },
42
- // See https://www.gatsbyjs.com/plugins/gatsby-plugin-react-helmet/?=gatsby-plugin-react-helmet
43
- `gatsby-plugin-react-helmet`,
44
19
  ],
45
20
  };
46
21
  };
@@ -6,7 +6,9 @@ const HeroHeader = ({ title, subhead, backgroundImage, backgroundImageTitle, ove
6
6
  backgroundImage = "https://picsum.photos/1080/720";
7
7
  }
8
8
  else {
9
- if (backgroundImageTitle?.includes("_03o_"))
9
+ if (backgroundImageTitle?.includes("_02o_"))
10
+ overlayOpacity = 0.2;
11
+ else if (backgroundImageTitle?.includes("_03o_"))
10
12
  overlayOpacity = 0.3;
11
13
  else if (backgroundImageTitle?.includes("_04o_"))
12
14
  overlayOpacity = 0.4;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "soames-gatsby-theme",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "A customizable Gatsby theme for personal websites using WordPress as a headless CMS.",
5
5
  "main": "dist/gatsby-config.js",
6
6
  "scripts": {
@@ -18,7 +18,8 @@ const HeroHeader = ({
18
18
  if (!backgroundImage) {
19
19
  backgroundImage = "https://picsum.photos/1080/720";
20
20
  } else {
21
- if (backgroundImageTitle?.includes("_03o_")) overlayOpacity = 0.3;
21
+ if (backgroundImageTitle?.includes("_02o_")) overlayOpacity = 0.2;
22
+ else if (backgroundImageTitle?.includes("_03o_")) overlayOpacity = 0.3;
22
23
  else if (backgroundImageTitle?.includes("_04o_")) overlayOpacity = 0.4;
23
24
  else if (backgroundImageTitle?.includes("_05o_")) overlayOpacity = 0.5;
24
25
  else if (backgroundImageTitle?.includes("_06o_")) overlayOpacity = 0.6;