What is the purpose of the loop in the main layout? #966
-
main.html has the following code: <div class="hidden">
{{{ page.preheader }}}
<each loop="item in Array.from(Array(150))"> ͏ </each>
</div> In the production build output file I can see that it produces the following markup: <div style="display: none">
👀 Lorem, ipsum, and much dolor in this week's edition.
 ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏  ͏
</div> What is the purpose of this code? |
Beta Was this translation helpful? Give feedback.
Answered by
husseinalhammad
Apr 6, 2023
Replies: 1 comment
-
This is known as the preheader or preview text hack: https://www.litmus.com/blog/the-little-known-preview-text-hack-you-may-want-to-use-in-every-email/ |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
o-t-w
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is known as the preheader or preview text hack:
https://www.litmus.com/blog/the-little-known-preview-text-hack-you-may-want-to-use-in-every-email/
https://parcel.io/blog/preheader-spacing