-
-
Notifications
You must be signed in to change notification settings - Fork 615
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
Customization Redesign & Portfolio #358
Conversation
Edit: Nevermind, it seems like I could probably just do exactly as it was already done, just with different variables. I'm just poking around the existing files and figuring it out as I go. Everything else would stay largely the same except the main loop would iterate on the collection and each page's individual variables instead of on This sounds pretty promising... 😃 |
Okay, it's all rigged up using collections. I haven't added anything specific to collections into
If neither item is defined, it falls back to loading them from the current page. |
…es to arrays and added new ones. Created example file.
Note for myself: Use https://github.com/picocms/Pico/pull/358/files/a48924bbc2d3ce208c86554d6c05dae667132d8e..HEAD to get a diff of all changes except for the changes of #352 @smcdougall: The cherry pick command is |
<h2>{{ item.heading | markdownify | remove: "<p>" | remove: "</p>" }}</h2> | ||
<ul class="item-info"> | ||
{% for info in item.info %} | ||
<li>{% if info[0] != "_blank" %}<span class="lite1">{{ info[0] | markdownify | remove: "<p>" | remove: "</p>" }}: </span>{% endif %}{{ info[1] | markdownify | remove: "<p>" | remove: "</p>" }}</li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The whitespace after the :
(content of <span class="lite1">
) isn't intended, is it? Furthermore, the border-bottom
spans over a whitespace after the element for some reason, I don't know why this happens, but it looks a bit odd.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Huh. I hadn't noticed that. I'll move the white space to after the span. I'm usually working from my laptop (13", 1080p screen), so maybe the border issue wasn't as obvious on the smaller screen. That space is definitely what's causing the problem with the bottom border though.
I also need to figure out why there's a space rendered before the colon. I think it has something to do with Markdownify. I was working on that before, but I guess I forgot about it.
I'll add that to my notes. 😃
Looks great so far! 👍
I really like this idea 😃 |
In response to #352 (comment):
Yeah, I like it, great idea! 👍 😃
As I've said already, I like the idea of a "gray puzzle piece background with persistent overlay text". This is a convenient solution for the plugins overview, but not for the details view (i.e. when clicking on a plugin). The portfolio details are pretty oriented towards the screenshot, what doesn't work quite well for most plugins. 😒 This doesn't mean that I think most plugins can't be visualized. A pagination plugin could show the pagination, a tags plugin its tag cloud. Others can be visualized a bit more abstract, but still "on the topic" - a search plugin could show a big search icon, a multilanguage plugin country flags. But most plugins have in common that they can't be visualized with a large screenshot. Unfortunately I don't have a solution for this problem... Maybe by shrinking the screenshot's width halfway through and using the additional horizontal space for a second text column? The details view of plugins should be less high in general. |
I agree. However, this is nothing we should forget about (i.e. add a ToDo to our list if we don't resolve it now)
Actually that's one of the reasons why a separate repo is no good idea 😒 We should keep everything at one place.
GitHub wasn't complaining about it 😄 😉 |
Yeah, but you were worried about the extra space that would take up. I just mean that temporarily it's better than implementing a different solution, then deciding you don't like it and having it stuck in the ever-growing git history. (To my understanding, even if said large file was deleted later on, it would still be taking up space).
Well my Jekyll instance refused to regenerate the site. 😠 😜 |
Where would you like me to make a note about it? It's kind of useless on this PR as it'll be lost in the "closed" section. I could also make a note in the zzz_contribute file if that'd be helpful. Edit: Uploaded |
That's the reason why I was suggesting Git LFS 😆 With Git LFS the file is stored separately on a arbitrary server (GitHub e.g. hosts such servers). The large file is then replaced by a simple text file pointing to that space in the repo. |
Well, if it's how you want to handle it, that's fine. My questions are:
|
At this point it's just waiting on you. Minus the one source file, and our decision there, everything is ready to merge. The only "conflict" is that I can merge it (:smile:) or you can. Either way, I'll wait for your final permission. :wink: |
This is rather a brainstorming than a decision 😆
dunno.
Afaik: Yes. Never used it either. See https://git-lfs.github.com/
Sure, go on and merge it. As you said, this isn't required for this PR. |
Okay! 👍 I'll also investigate the Git LFS thing if I have some time. |
Aaaaand it's Official! 🎉 🍻 |
🎊 🎉 🍻 Amazing work @smcdougall, thank you! 👍 😃 |
I've got a little more work to do though. Apparently I never added Pico HTTP Parameters to the Plugin page. 😅 Also, one plugin I cut from the old page was "Pico Navigation". This is because it was last updated 3 years(!) ago. If you know that this plugin is still compatible / relevant to modern Pico, I can add it back though. |
😮 I can edit your comments now. I went to click on the "reaction" button and hit Edit by mistake. |
😆
I probably tested it, but I'm not sure. Anyway, it is going to be incompatible with Pico 1.1 and most people use a custom theme anyway, so simply leave it out. It's discouraged anyway, this can easily be achieved with Twig.
Yep 😆 |
Now to be responsible and test my changes before pushing them to the real website. Unlike some people. 😝 |
cough no idea about who you're talking cough 😆 |
...so what happens when @BesrourMS goes to make a PR later this week and discovers that |
I think this link will be my target : https://github.com/smcdougall/Pico/tree/gh-pages/_themes 😜 |
If you haven't found them yet, I've written some Submission Guidelines that show how everything works. Obviously, I've already made entries for all of your existing themes. When you go to submit another one, go ahead and copy one of those as a template. 😉 |
Redesigned Customization page using Webpaint's Portfolio style.
Viewable here: Themes and Plugins
This PR is both for the page itself and for the portfolio framework that generates it.
Also note that it contains currently unmerged changes from #352 that are unrelated to this PR. Actual changes begin at
Implemented Portfolio and Revamped Customization.
8819d43Previously discussed in #352.
Areas to improve on:
customization
? Download? Launch Site? View on GitHub? (since I think all but NotePaper go to GitHub).Meta
text in existing tiles...portfolio-detail-view
.content
Migrate HeadingThis is probably out-of-scope.As Links.Remove "Default Theme" images. Maybe re-purpose them elsewhere.Use these images for the About Page, instead of its own.a
tags in the info section should be white, not green.Captions for carousel items?Probably not worth the effort, since we already have a content area.Provide "Documentation" on how to use"Unnecessary"gallery
andportfolio
.Don't forget about things likeinfo._blank
,page.portfolio.categories
,include categories=variable
and other examples that may not be represented on the current page.:
in the Item-Details<span>
.(and image locations)portfolio-detail-view code
plugindefaultThumbnail styles trigger{{ site.github.url }}
. Remove leading/
from paths.myCarousel
ID toentry-{{ forloop.index0 }}-carousel
or something similar.meta
todescription
info
lines implementation.Find a replacement for theNone
category? (created when I removedmulti-page
)layout
variable.Contribute
sectiondescription
is correctly treated as a string (otherwise it'd be a spaceless jumble of letters).Is creating: