A paid post build is a static web page embedded in the NYT sponsored content wrapper. These are some basic info to understand better its specificities.
Process
This is the top-line process of the paid posts production:
The team creates a static web page with Webflow or a custom build system. The output should be a index.html file with all the needed assets referenced relatively to it.
The output is wrapped in a zip archive, with the index.html at its root, not in a subfolder.
An index.html file exists within base of payload zip (not within a folder)
If index.html has assets referenced, assets are stored in the appropriate folders relative to the index.html file.
the index.html file contains the following:
an html fragment as is expected to be inserted within the paidpost <article> element
assets are included within zip payload and are referenced within html with relative pathing
all css is targeted correctly within article or #story
Based on the projects requirements, we are free to work with the stack we prefer, as long as we produce a similar bundle that doesn’t error, is semantically correct and doesn’t leak styles in the website wrapper.
Fastly
Assets uploaded to the cloud bucket are served via Fastly CDN.
To Do: discuss if it’s worth asking for different sizes, especially tied to devices standard (480, 640, 768, 1024, 1280, 1440, 1920...)
Markup
The paid post bundle gets rendered in the NYT wrapper and should have a semantically correct markup. You could use the following structure as a guidance.
<body>
<header>
<!-- Fixed: NYT furniture and menu -->
</header>
<!-- Fixed: main content of the document -->
<mainid="site-content">
<header>
<!-- Fixed: T Brand furniture, client logo + outbound link, sharing links -->
</header>
<!-- Fixed: article tag wrapping T Brand content -->
<articleid="story">
<!--
👉 From here, we have control on the markup
-->
<divclass="paidpost">
<!--
Article header goes here,
with a mandatory H1
and an optional content lead
-->
<header>
<h1>Article Title</h1>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
</header>
<!--
Article content goes here,
with the preferred sectioning (DIVs, Sections, nested articles...)
and hierarchical heading structure.
It could include a NAV element for in-page navigation
-->
<section>
<h2>Secondary Heading</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
<div>
<h3>Tertiary Heading</h3>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
</div>
</section>
<section>
<h2>Secondary Heading</h2>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
</section>
<!--
Article footer goes here,
with branding, messaging and outbound link
and an optional content lead
-->
<footer>
<imgsrc="/logo.svg"alt="Company Name"/>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit...</p>
<ahref=""target="_blank"rel="noreferrer"
>Learn More (or even better, a Meaningful Label)</a