benbalter / jekyll-remote-theme

Jekyll plugin for building Jekyll sites with any GitHub-hosted theme
MIT License
288 stars 77 forks source link

Feature: Merger of `_data`, additional file inclusion, and support for local themes #102

Open vinorodrigues opened 22 hours ago

vinorodrigues commented 22 hours ago

Firstly, thank you for your work on this plugin—it greatly enhances the flexibility of Jekyll sites by allowing the use of remote themes hosted on GitHub. I'd like to propose several enhancements that build upon the existing functionality, aiming to provide even greater flexibility and control to users.

Is feature request related to a problem?

No existing problem is related - but these feature have been discussed prior, either in issues or pull requests. These include:

Description of the solution requested

1. Merge Remote Theme _data with Local Site Data

As per #89

2. Optional Inclusion of Theme Files Based on _config.yml

As per #69 & #96

3. Support for Local Themes via local_theme Configuration

Alternatives considered

Additional context

Proposed Implementation Overview

Data Merging:
File Inclusion:
Local Theme Support:
vinorodrigues commented 22 hours ago

PS:

I've started to try to resolve these myself, but I've literally needed to start learning how to code in Ruby, as that's not in my repertoire of languages I've worked on before.

If you'd like to see what I've come up with—and obviously I'd be keen to collaborate (with anyone) on this, or just [have you/them] take over—but keep in mind that I've not accounted for anything of an enterprise-level effort. No unit-testing, no comments—just code churn and hope it works.

Anyway, it's here:

WARNING: This code is not working yet. I've still got to test and refine, etc. Mostly the functionality is not reading the files from the unzipped theme, and I can't figure it out... yet.

Once confirmed working, I'll hold off on any PR-ing until I get a sanity check on this. TY to those willing ;)