saberland/saber

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Support saber config in theme directory #160

egoist posted onGitHub

<!-- Please don't delete this template or we'll close your issue -->

<!-- Before creating an issue please make sure you are using the latest version of Saber. -->

Feature request

<!-- Please ask questions via following several ways. -->

<!-- https://chat.saber.land/ -->

<!-- https://stackoverflow.com/questions/ask?tags=saberjs -->

What problem does this feature solve?

A theme should be able to pre-configure siteConfig themeConfig plugins etc.

What does the proposed API look like?

Just populate a saber config file in your theme directory.

Some options are not available when it is loaded from theme directory, e.g. theme

How should this be implemented in your opinion?

Merge it with the saber config we found at project root.

Are you willing to work on this yourself?

PR welcome.


@issuehunt has funded $80.00 to this issue.


posted by IssueHuntBot almost 6 years ago

This is actually already possible by using saber-node.js in the theme directory:

// Add a plugin based on `themeConfig`:
exports.beforeRun = function () {
  if (this.config.themeConfig.feed) {
    this.applyPlugin(require('saber-plugin-feed'))
  } 
}
posted by egoist almost 6 years ago

Fund this Issue

$80.00
Funded
Only logged in users can fund an issue

Pull requests

Recent activities

issuehunt funded 80.00 for saberland/saber# 160
almost 6 years ago