Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools oft miss.
@arshad/gatsby-theme-photo-core
Advanced tools
This core theme includes a Photo
type that you can use to build a photography site. It includes no styles.
yarn add @arshad/gatsby-theme-photo-core
gatsby-config.js
// gatsby-config.js
...
plugins: [
`@arshad/gatsby-theme-photo-core`
]
...
Key | Default value | Description |
---|---|---|
contentPath | content/photos | Location of your photos |
basePath | /photography | Root url for all photo posts |
photosPerPage | 9 | Number of photos to show per page for pagination |
pageTitle | Photography | The title for the photos page. Leave blank for no title |
pageExcerpt | null | The excerpt for the photos page. Leave blank for no excerpt |
// gatsby-config.js
...
plugins: [
{
resolve: `@arshad/gatsby-theme-photo-core`,
options: {
basePath: `/photos`,
photosPerPage: 10,
}
}
]
...
type Photo implements Node @dontInfer {
id: ID!
title: String!
date: Date! @dateformat
image: File @fileByRelativePath
excerpt(pruneLength: Int = 150): String
slug: String!
body: String!
}
Place your photos inside content/photos
as follows:
site
├── content
│ └── photos
│ └── photo-1
│ ├── photo.jpg
│ └── index.mdx
├── node_modules
├── gatsby-config.js
└── package.json
# site/content/photos/photo-1/index.mdx
---
title: Proident enim aliqua
date: 2019-10-11
excerpt: Consequat consectetur mollit commodo nisi reprehent velit aliqua quis nisi laborum.
image: ./photo.jpg
---
Et aliquip labore id minim adipisicing excepteur labore in ex deserunt duis quis cillum in.
Create the following components in your site to shadow and customize the core components:
src
└── @arshad
└── gatsby-theme-photo-core
└── components
├── photo-teaser.js
├── photo.js
└── photos.js
To learn more about component shadowing, check out the official theme docs.
Create an issue on the main repo @arshad/gatsby-themes.
FAQs
Adds a photo type for Gatsby sites
We found that @arshad/gatsby-theme-photo-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools oft miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.