@frontity/mars-theme
Advanced tools
Comparing version 0.3.5 to 0.3.6
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.3.6](https://github.com/frontity/frontity/compare/@frontity/mars-theme@0.3.5...@frontity/mars-theme@0.3.6) (2019-05-27) | ||
**Note:** Version bump only for package @frontity/mars-theme | ||
## [0.3.5](https://github.com/frontity/frontity/compare/@frontity/mars-theme@0.3.4...@frontity/mars-theme@0.3.5) (2019-05-20) | ||
@@ -8,0 +16,0 @@ |
@@ -13,2 +13,9 @@ import { Action, Package } from "frontity/types"; | ||
source?: Source["state"]["source"]; | ||
theme: { | ||
menu: [string, string][]; | ||
featured: { | ||
showOnList: boolean; | ||
showOnPost: boolean; | ||
}; | ||
}; | ||
}; | ||
@@ -15,0 +22,0 @@ actions: { |
{ | ||
"name": "@frontity/mars-theme", | ||
"version": "0.3.5", | ||
"version": "0.3.6", | ||
"description": "A starter theme for Frontity", | ||
@@ -24,5 +24,5 @@ "keywords": [ | ||
"@frontity/source": "^0.1.2", | ||
"frontity": "^0.2.11" | ||
"frontity": "^0.2.12" | ||
}, | ||
"gitHead": "96fac513055cb357ff0c611043cbcc1e657e282b" | ||
"gitHead": "2237975b2ffddb89ccb67b6a8e475e1f1def7cf0" | ||
} |
import React from "react"; | ||
import { connect, styled } from "frontity"; | ||
import Link from "../link"; | ||
import FeaturedMedia from "../featured-media"; | ||
@@ -21,2 +22,5 @@ const Item = ({ state, item }) => { | ||
</Fecha> | ||
{state.theme.featured.showOnList && ( | ||
<FeaturedMedia id={item.featured_media} /> | ||
)} | ||
<Excerpt dangerouslySetInnerHTML={{ __html: item.excerpt.rendered }} /> | ||
@@ -23,0 +27,0 @@ </Container> |
import React, { useEffect } from "react"; | ||
import { connect, styled } from "frontity"; | ||
import List from "./list"; | ||
import FeaturedMedia from "./featured-media"; | ||
@@ -36,2 +37,5 @@ const Post = ({ state, actions }) => { | ||
</Head> | ||
{state.theme.featured.showOnPost && ( | ||
<FeaturedMedia id={post.featured_media} /> | ||
)} | ||
<Body | ||
@@ -38,0 +42,0 @@ dangerouslySetInnerHTML={{ |
@@ -10,3 +10,7 @@ import Theme from "./components/theme"; | ||
theme: { | ||
menu: [["Home", "/"]] | ||
menu: [["Home", "/"]], | ||
featured: { | ||
showOnList: false, | ||
showOnPost: false | ||
} | ||
} | ||
@@ -13,0 +17,0 @@ }, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27220
18
494