I want to know what’s the use of image.html
in _layouts and where does it affect?
This is the source code:
<figure>
{% if {{include.url}} %}<a class="no_icon" target="_blank" href="{{include.url}}">{% endif %}
<img class="docimage" src="{{include.file}} " alt="{{include.alt}}" {% if {{include.max-width}} %}style="max-width: {{include.max-width}}px"{% endif %} />
{% if {{include.url}} %}</a>{% endif %}
{% if {{include.caption}} %}
<figcaption>{{include.caption}}</figcaption>
{% endif %}
</figure>
I’ve been trying to solve this issue for past few days, it seems like some css for the image gets overridden when page is ready.
While loading the page:
On page ready:
My conjecture was that it’s happening due to image.html
. If anyone could explain this behavior, that would be a big help.
hamelsmu
(Hamel Husain)
April 17, 2020, 8:10pm
223
What is the difference between While loading the page
and On page ready
?
hamelsmu
(Hamel Husain)
April 17, 2020, 8:11pm
224
P.S. it is much appreciated if you have an issue to start a separate thread, when possible rather than having a mega troubleshooting thread as that dilutes the ability for folks to search later on… not a big deal just thought I should mention this.
2 Likes
Is it possible to use #collapse
and #hide_output
both on a single cell?
I did in several ways, like #collapse
first, #hide_output
first, both on single line - separated by space, both on new lines, etc.
Nothing worked
hamelsmu
(Hamel Husain)
April 24, 2020, 7:46pm
229
@sgugger what do you think should we make all of these flags multiline? My only fear is that people will trigger these comments inadvertently somewhere in their code and may be surprised
Thoughts? I can submit a PR but am not 100% sure this is a good design.
Any thoughts on removing those tags on conversion?
Here I’ve used the #collapse
tag to hide the code cell, which has kept the tag being used for the same. This might confuse the readers if seen frequently in the blog
In the rest of nbdev, those are multiline: it’s very common to have a cell that has a test flag and a hide flag. So this would be consistent with this. I’m surprised hide_output
is not multiline already.
hamelsmu
(Hamel Husain)
April 24, 2020, 8:21pm
232
h3045
April 27, 2020, 1:07pm
233
@hamelsmu
fastpages is the most BEAUTIFUL thing on the internet right now!
I’m just playing around with it and it feels like magic, just THANK YOU!
Is there any simple way in which I could help, I just feel like I owe something back for this.
1 Like
Is this enabled in fastpages? seems like nbdev
current version is 0.2.18 while fastpages-nbdev.Dockerfile
is using 0.2.17.
Also I tried using multi-line tags but didn’t work.
What is the right way to get all the latest changes from upstream (fastpages) and basing my work onto it?
I tried rebasing master onto upstream/master but it says no merge base found
.
I’ve also tried merging upstream/master and local master, but it brings up 700+ commits after merge.
I even tried to create a patch of my changes and applying that on a branch based on latest commit of fastpages
, but that too, didn’t work.
EDIT: I guess merge is the right way those 700+ commits merely becomes part of my git history which is fine I guess.
I suppose you need to merge once and rebase afterwards.
hamelsmu
(Hamel Husain)
April 28, 2020, 4:26pm
237
Is there a reason you cannot use the Automated upgrade process?
1 Like
Sorry, I was unaware of that, but glad that such provision exists. It’s super cool
hamelsmu
(Hamel Husain)
April 29, 2020, 6:49pm
239
@kshitijpatil09 fastpages is now using the latest version of nbdev, you can now upgrade.
1 Like