Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@mnemonicorg/gatsby-theme-archive-site
Advanced tools
An extendable gatsby theme to be used as a foundation in creating Mnemonic archive sites
yarn install
to install core dependencies.yarn develop
to start the development server (locahost:8000)yarn install @mnemonic/gatsby-theme-archive-site
gatsby-config.js
file// gatsby-config.js
module.exports = {
plugins: [
{
resolve: "@mnemonicorg/gatsby-theme-archive-site",
options: {
contentPath: `${__dirname}/content/`,
dataPath: `${__dirname}/data/`,
// ... additional config options
},
},
],
}
Using yarn workspaces allows you to take advantage of hot reloading to see how changes to the theme or to the code for an archive instance will take effect while debugging an archive site locally in development.
In order for yarn workspaces to work, your local clone of the theme repo must be in the same directory as the archive site you are developing.
├── mnemonic-themes
└── gatsby-theme-archive-site
├── yourarchive
└── package.json
├── package.json
In order to initialize a yarn workspace, you must have a package.json file with the following at the root level in your local directory.
{
"private": true,
"workspaces": [
"mnemonic-themes/gatsby-theme-archive-site",
"yourarchive" // this must match the "name" field in your archive's package.json
]
}
The final change that is necessary is to change the dependency version in your archive's package.json to ensure that it is using the local workspace version of @mnemonicorg/gatsby-theme-archive-site
instead of the npm version.
{
// ...
"dependencies": {
"@mnemonicorg/gatsby-theme-archive-site": "*",
// ...
}
}
Now that you have set up your yarn workspace, from within the root level of your local directory, run:
yarn workspace yourarchive install
to install and link all dependenciesyarn workspace yourarchive develop
Any changes you make to either the theme code, or the your archive will trigger a hot reload on the dev server.
Key | Type | Default value | Description |
---|---|---|---|
aboutPageSupportButtonLink | string | null | Link for about page support button |
actionButtonLink | string | null | A url for the primary action button in the header and footer of the archive site |
analyticsTrackingId | string | null | A google analytics tracking ID |
apiUrl | string | null | A base url for the backend API |
colors | object | { primary: "#ff5400", primary_transparent: "#ff54009c",light: "#ffffff", dark: "#000000", bg: "#f5f5f5" } | Theme colors for the site |
contentPath* | string | null | Content directory path (required) |
customHeaderNavItems | [{ name: string, to: string }] | null | Additional dropdown items for the "About" section in the header nav bar |
dataPath* | string | null | Data directory path (required) |
homepageSupportButtonLink | string | null | Link for homepage support button |
mailchimpEndpoint | string | https://mnemonic.us7.list-manage.com/subscribe/post?u=dad7fb9f6b148644ffbf4a5da&id=443f12971c | Mailchimp url for "Subscribe now" button |
socialMediaLinks | [{ type: string, link: string }] | null | Links for footer social media icons |
translations | { [locale_key]: { key: value }, ... } | null |
FAQs
Mnemonic archive site theme
The npm package @mnemonicorg/gatsby-theme-archive-site receives a total of 62 weekly downloads. As such, @mnemonicorg/gatsby-theme-archive-site popularity was classified as not popular.
We found that @mnemonicorg/gatsby-theme-archive-site demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.