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

@hodgef/blank-theme

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hodgef/blank-theme

Blank Theme for PRSS

  • 2.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Blank

Absolute flexibility. All you need to let your imagination flow.

⚠️ How to use:

When you first build your page with the theme, you'll notice nothing shows up. This is intentional, as it's up to you to use the data to build your layout.

The PRSS Client Library, is already loaded with the Theme. Use its methods to render your content.

For example:

<main>
    <h1></h1>
    <div class="content"></div>
</main>
<script>
    const setContent = (selector, html) => document.querySelector(selector).innerHTML = html;
    const { item } = PRSS.getAllProps();
    /*
    Returns: {
      "uuid":"fffb7461-1380-46d2-bca5-70696b1cda1c",
      "slug":"home",
      "title":"Home",
      "content":"<p>This is the beginning of something great.</p>",
      "template":"home",
      "updatedAt":1713499483159,
      "createdAt":1713390209013,
      "vars":{}
    }
    */
    setContent("h1", item.title);
    setContent(".content", item.content);
</script>

image image image

Alternatively, you can apply this code to all pages of your site:

image image

FAQs

Package last updated on 10 May 2024

Did you know?

Socket

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.

Install

Related posts

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