gatsby-matrix-theme 27.0.0 → 28.0.0

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/CHANGELOG.md CHANGED
@@ -1,3 +1,30 @@
1
+ # [28.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v27.0.1...v28.0.0) (2023-07-14)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * update core version ([84731f1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/84731f1d6763301e19c1ca7cd20aac28ff68eb5a))
7
+
8
+
9
+ ### Code Refactoring
10
+
11
+ * add custom styles based on path path ([83f19b3](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/83f19b355993cbd2fab970c4e5cdb0aa451104cb))
12
+ * enable author image ([55d94f9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/55d94f9200e9e1b5722e4f2427b57351d8b4dcc8))
13
+ * remove temp fix ([1e333b5](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1e333b56c5867592ab4b6af412674a6f2f0b92d5))
14
+ * temp fix ([1d6beb9](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/1d6beb95b23b1731c372251c5da58a0d8d03e705))
15
+
16
+
17
+ * Merge branch 'tm-author-image' into 'master' ([b3ef056](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/b3ef0565cb47f271987c6afbf3104546339b819e))
18
+ * Merge branch 'master' into tm-author-image ([efe6f05](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/efe6f057a64e53ce1c61584103de47d8a5618338))
19
+ * Merge branch 'master' into tm-author-image ([e518ca7](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/e518ca799916d6f37e0e530c7c3e02c530b9b610))
20
+
21
+ ## [27.0.1](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v27.0.0...v27.0.1) (2023-07-12)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * upgrade ([65a15da](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/commit/65a15daaaf818085bb34eee14360400ac9a4dcc8))
27
+
1
28
  # [27.0.0](https://git.ilcd.rocks/team-floyd/themes/matrix-theme/compare/v26.0.6...v27.0.0) (2023-07-12)
2
29
 
3
30
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-matrix-theme",
3
- "version": "27.0.0",
3
+ "version": "28.0.0",
4
4
  "main": "index.js",
5
5
  "description": "Matrix Theme NPM Package",
6
6
  "author": "",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@react-icons/all-files": "^4.1.0",
27
27
  "gatsby": "^5.11.0",
28
- "gatsby-core-theme": "25.0.0",
28
+ "gatsby-core-theme": "25.0.3",
29
29
  "gatsby-plugin-sharp": "^5.11.0",
30
30
  "gatsby-plugin-sitemap": "^3.3.0",
31
31
  "gatsby-transformer-sharp": "^5.11.0",
@@ -187,6 +187,7 @@ export const relationContent = (section, numOfStarsRating) => {
187
187
 
188
188
  export default function Header({ section, numOfStarsRating = 5 }) {
189
189
  const { bannerIsActive } = useContext(Context) || {};
190
+ const customStyles = section.page.path === '/' ? 'homepage' : section.page.path.replace('/', '-');
190
191
 
191
192
  return (
192
193
  <header
@@ -198,7 +199,9 @@ export default function Header({ section, numOfStarsRating = 5 }) {
198
199
  ? styles[section?.page?.page_styles?.short_name] || ''
199
200
  : ''
200
201
  }
201
- ${bannerIsActive && styles.bannerIsActive ? styles.bannerIsActive : ''}`}
202
+ ${bannerIsActive && styles.bannerIsActive ? styles.bannerIsActive : ''}
203
+ ${styles[customStyles] ? styles[customStyles] || '' : ''}
204
+ `}
202
205
  >
203
206
  {section.page.path && <Breadcrumbs markets={section.allMarkets} page={section.page} />}
204
207
  {relationContent(section, numOfStarsRating)}
@@ -65,7 +65,7 @@ const Main = ({ section = {}, pageContext = {}, showAuthor = true, exclOperator
65
65
  name={page.author?.name}
66
66
  date={date}
67
67
  type={page?.template}
68
- // authorImg={page?.author?.image}
68
+ authorImg={page?.author?.image}
69
69
  readingTime={page.reading_time}
70
70
  link={page?.author?.profile_page_path}
71
71
  reviewer={page.reviewer_id && page?.reviewer}