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
Change PAGES context variable to pages in all themes #437
Comments
Hey Jerry. Thanks for creating an issue to track this effort. Pelican 3.7 has been released, so now would indeed be a good time to effect this change. I think that a single pull request that updates all the themes in the repo would be just fine. Is that something you could help out with? (^_^) |
Hey! Congratulations on releasing Pelican 3.7!
Yes, I can do this, but not in the next few immediate days. If you would
like this earlier than a week or so from now, I should probably step back.
Jerry
…On Mon, Dec 12, 2016 at 3:40 PM, Justin Mayer ***@***.***> wrote:
Hey Jerry. Thanks for creating an issue to track this effort. Pelican 3.7
has been released, so now would indeed be a good time to effect this
change. I think that a single pull request that updates all the themes in
the repo would be just fine. Is that something you could help out with?
(^_^)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#437 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAosCfjYXxMA4S0p6EHunCWJmca-_27Xks5rHdtxgaJpZM4KL5mQ>
.
|
Hi Justin,
I can't believe it's been a month since you asked. I honestly thought, oh
man that was two weeks ago, I need to get back to this...
Would you still like help with this issue?
On the one hand, it seems a simple change, and it's difficult for me to
think I could screw it up. But I probably could... Which makes me wonder,
how are themes in the repository tested?
At any rate, I have done the following:
1. Updated my local pelican themes repository with
1. git fetch origin
2. git checkout master
3. pull
2. find . -type f | xargs grep PAGES > pages.txt
I opened up the file pages.txt and removed all occurrences of
1. BANNER_ALL_PAGES
2. DISPLAY_PAGES_ON_MENU
3. PAGES_SORT_ATTRIBUTE
Then deleted all lines that did not contain PAGES on it.
There appear to be 52 occurrences of PAGES in pelican in 46 files.
You can find them here:
https://gist.github.com/jerryasher/d6936d08eec5135fbb0aa8fd4b31dc5c
Does this seem reasonable or am I missing something.
I'm still a git n00b, so if I fork pelican, change to a new branch, make
these changes, and create a pull request, ... will that address occurrences
within submodules? Is there anything else I would need to do?
And I guess, ... how would I go about testing this?
Thanks,
Jerry
…On Mon, Dec 12, 2016 at 3:49 PM, Jerry Asher ***@***.***> wrote:
Hey! Congratulations on releasing Pelican 3.7!
Yes, I can do this, but not in the next few immediate days. If you would
like this earlier than a week or so from now, I should probably step back.
Jerry
On Mon, Dec 12, 2016 at 3:40 PM, Justin Mayer ***@***.***>
wrote:
> Hey Jerry. Thanks for creating an issue to track this effort. Pelican 3.7
> has been released, so now would indeed be a good time to effect this
> change. I think that a single pull request that updates all the themes in
> the repo would be just fine. Is that something you could help out with?
> (^_^)
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#437 (comment)>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAosCfjYXxMA4S0p6EHunCWJmca-_27Xks5rHdtxgaJpZM4KL5mQ>
> .
>
|
Ah... Well, I now see I didn't go through the submodules... So I have now recursively checked out the submodules, and redid the above, to find 115 occurrences in 99 files. You can find those here: |
Who "owns" the various themes? Referring to Remove PAGES; use pages instead #1767, it seems as though many (most) themes will break in 3.7.0.
Who "owns" the various themes in pelican-themes?
Would it be wrong to globally change all templates referencing PAGES?
I sense it would be, but what will the process be for updating the themes and when would it take place?
Are you interested in pull requests to fix one theme at a time? For instance, I am using zurb-F5-basic, would you like the changes to the base.html and index.html?
FWIW, I see:
The text was updated successfully, but these errors were encountered: