Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@frontity/mars-theme

Package Overview
Dependencies
Maintainers
5
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontity/mars-theme - npm Package Compare versions

Comparing version 0.3.5 to 0.3.6

src/html/components/featured-media.js

8

CHANGELOG.md

@@ -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: {

6

package.json
{
"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 @@ },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc