Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site Extensions ? #4

Open
melMass opened this issue Apr 9, 2017 · 4 comments
Open

Site Extensions ? #4

melMass opened this issue Apr 9, 2017 · 4 comments

Comments

@melMass
Copy link

melMass commented Apr 9, 2017

Hi oulvhai,

Great job on mweb, using it everyday.
I'm trying to use your site system over jekyll and was looking for documentation on site extensions ?

thanks

@oulvhai
Copy link
Owner

oulvhai commented Apr 10, 2017

Hi,

Sorry, no site extension documents for English now, I will add it soon, may be latest this month.
Thanks.

Or you can check "mweb-medium-like" Theme: https://github.com/oulvhai/mweb-medium-like.

MWeb has two extension: Site Extension and Document Extension.

You can access all Site Extension variable in all template page use "ext_ + variable name", for example in "footer.html" https://github.com/oulvhai/mweb-medium-like/blob/master/footer.html, like: {{ ext_disqus_shortname }}.

Document Extension only for every post, also use "ext_ + variable name", for example: https://github.com/oulvhai/mweb-medium-like/blob/master/category.html, like: {% if p.ext_featured_image.length %}, {% if p.ext_small_image.length %} ...

@melMass
Copy link
Author

melMass commented Apr 10, 2017

That's amazing, I get it now.
Once you are done with the english doc, we could maybe have community themes where we share our themes ?

@oulvhai
Copy link
Owner

oulvhai commented Apr 10, 2017

@melMass Yes, Plan to that feature. Thanks.

@melMass
Copy link
Author

melMass commented Apr 10, 2017

So extensible this way!!!

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants