Uh oh!
There was an error while loading. Please reload this page.
Fix minor UI issues with default.md - #2278
Conversation
tlylt
commented
Apr 16, 2023
@lhw-1 need resolve conflict |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
lhw-1
commented
Apr 16, 2023
Here is a summary of the changes made targeting "Remove generation of blank lines after the navbar in In the current version of MarkBind, when the user calls ...
</nav>
</div>
<footer>
<!-- Support MarkBind by including a link to us on your landing page! -->
<divclass="text-center">
<small>[Generated by {{MarkBind}}]</small>
</div>
</footer>The issue brought up in #1866 is that there are unnecessary blank lines here that are generated during our ...
</nav>
</div>
{%setdefaultFooter%}<!-- Support MarkBind by including a link to us on your landing page! -->
<divclass="text-center">
<small>[Generated by {%raw%}{{MarkBind}}{%endraw%}]</small>
</div>
{%endset%}
<footer>
{{footerordefaultFooter}}
</footer>In the case where the ...
</nav>
</div>
<footer>
{%setdefaultFooter%}<!-- Support MarkBind by including a link to us on your landing page! -->
<divclass="text-center">
<small>[Generated by {%raw%}{{MarkBind}}{%endraw%}]</small>
</div>
{%endset%}{{footerordefaultFooter}}
</footer>And this will result in the following ...
</nav>
</div>
<footer>
<!-- Support MarkBind by including a link to us on your landing page! -->
<divclass="text-center">
<small>[Generated by {{MarkBind}}]</small>
</div>
</footer>The blank lines between the navbar and the footer are now reduced to a single blank line (which is acceptable), but there are now new unnecessary blank lines introduced within the ...
</nav>
</div>
<footer>
{%-setdefaultFooter%}<!-- Support MarkBind by including a link to us on your landing page! -->
<divclass="text-center">
<small>[Generated by {%raw%}{{MarkBind}}{%endraw%}]</small>
</div>
{%endset-%}{{footerordefaultFooter}}
</footer>And the resulting ...
</nav>
</div>
<footer>
<!-- Support MarkBind by including a link to us on your landing page! -->
<divclass="text-center">
<small>[Generated by {{MarkBind}}]</small>
</div>
</footer>Since there is still one newline within the ...
</nav>
</div>
<footer>
{%-setdefaultFooter-%}<!-- Support MarkBind by including a link to us on your landing page! -->
<divclass="text-center">
<small>[Generated by {%raw%}{{MarkBind}}{%endraw%}]</small>
</div>
{%-endset-%}{{footerordefaultFooter}}
</footer>And the resulting ...
</nav>
</div>
<footer>
<!-- Support MarkBind by including a link to us on your landing page! -->
<divclass="text-center">
<small>[Generated by {{MarkBind}}]</small>
</div>
</footer>This is the behavior we would like to see, without unnecessary blank lines. Unfortunately, because we remove the inner blank lines, this will affect custom footers that users may use. When I updated our functional tests, the To: In order to keep the behavior of custom |
tlylt
commented
Apr 16, 2023
@lhw-1 possible to update the outdated content in here? https://markbind-master.netlify.app/devguide/bootcamp/exploremarkbind#modify-site-structure-and-configuration Should have done so in your previous PR updating the template. |
Uh oh!
There was an error while loading. Please reload this page.
tlylt
left a comment
There was a problem hiding this comment.
Can you have another look at packages/core/src/Site/siteConvertLayout.njk to ensure it's up-to-date?
lhw-1
commented
Apr 16, 2023
Thanks for the catch! There does seem to be inconsistencies between On another note, I wonder if we can work on a further refactor to have |
tlylt
commented
Apr 16, 2023
Good suggestion and yes can explore. I wonder if there will be a case where the two (default and convert) will deviate further in the future. From the perspective of the functionality, I think it feels more natural to have "default.md" dictate "siteConvertLayout.njk" |
What is the purpose of this pull request?
Overview of changes:
Addresses two of the issues related to
_markbind/default.mdbrought up in #1866.Specific improvements:
default.mddefault.mdAnything you'd like to highlight/discuss:
Testing instructions:
Try
markbind initormarkbind init --converton a pre-existing set of documents, and ensure that changes are reflected.Proposed commit message: (wrap lines at 72 characters)
Fix minor UI issues with default.md
Checklist: ☑️