Add a project
A project is its own page, project-<name>.html, plus every place that lists it: the Works archives, the burger menu, the sliders and lists that show projects, and the footer of the project before it. Each place holds its own copy of the project's title, link and picture, so a new project is a new page and one copied item in each place.
The steps add Casa Lumen after Casa Notte. Use the project that should come before yours.
How to access
HTML folder → VS Code → Search (*.html)
Search all pages for the file of the project before yours, project-casa-notte.html. The results are the places your project goes:
| Where | Pages |
|---|---|
| Archive cards | works-4-columns.html, works-list.html, works-page-3.html, works-dark-page-3.html, works-pagination-page-3.html and the project's category page, works-category-heritage.html |
| Sliders and lists | curtain-slider.html, landing-page.html, horizontal-scroll.html, studio.html |
The search also finds project-interno-sera.html, whose footer leads to Casa Notte: leave it. The footer that will lead to yours is Casa Notte's own, below. An archive split over several files holds the card in the file the search finds, here its third. The burger menu lists only some projects, so search for one it lists (project-salon-rivoli.html) to see it. works-lightbox.html opens pictures instead of projects: its cards are found by the picture's file name.
Making the project's page
▶️ Step 1.
Copy the page of the project before yours, project-casa-notte.html, and rename the copy project-casa-lumen.html. Its footer already leads to the project after Casa Notte, which is now after yours.
▶️ Step 2.
Change its <title>, the masthead's <h1>, the texts and the pictures. Your pictures go in assets/images/projects/.
Leading the previous project to it
The footer of Casa Notte's page shows the next project and visits it as the visitor scrolls on. Point it at yours: both links, the title, the three details under it and the picture. The picture is the one your page opens with, so the visit carries it from the footer into your masthead.
html
<h2 class="posts-navigation-next__title js-posts-navigation-next__title display-l"><a href="project-casa-lumen.html">Casa Lumen</a></h2>
…
<div class="posts-navigation-next__meta js-posts-navigation-next__meta label-m posts-navigation-next__meta_center-start">Heritage</div>
…
<div class="posts-navigation-next__meta js-posts-navigation-next__meta label-m posts-navigation-next__meta_center-end">2022</div>
…
<div class="posts-navigation-next__meta js-posts-navigation-next__meta label-m posts-navigation-next__meta_bottom-start">Denmark</div>
…
src="assets/images/projects/lumen-featured-image.jpg"
…
<a href="project-casa-lumen.html" class="posts-navigation-next__cta …Adding its card to the archives

▶️ Step 1.
In each archive page, copy the <article> of Casa Notte's card and paste it right after it.
▶️ Step 2.
In the copy, change the two links, the aria-label, the picture's src, the title and the year. Give it a data-grid-id no other card of that archive has, across its -page-2 and -page-3 files too: the template's go up to 16.
▶️ Step 3.
Set its category, location and year in data-grid-facets and its year in data-grid-group: the filters and the year groups read them. If the copy carries data-posts-archive-group-start or data-posts-archive-edge, remove them: they mark the first card of a year and the first and last card of a page, which the card you copied was and yours is not.
html
<article
class="posts-archive__item js-posts-archive__item"
data-hover-group-class="posts-archive__item_hover"
data-grid-id="17"
data-grid-facets='{"category":["heritage"],"location":["denmark"],"year":["2022"]}'
data-grid-group="2022"
><a class="posts-archive__media-box" href="project-casa-lumen.html" aria-label="Casa Lumen">▶️ Step 4.
Raise the counts the archive prints, which no script corrects: (16) beside the heading, Showing All 16 Works on every page of an archive that loads more, and on the page before the one you added to, Load 4 More. See Archives.
Adding it to the burger menu
The Projects sub-menu is the same in every page. Add your item after an existing one with one search and replace, as Edit every page at once shows, with menu-m as the item's type class.

Adding a slide

▶️ Step 1.
In curtain-slider.html, copy Casa Notte's slide, from its <div class="fullscreen-backgrounds-slider__slide to its closing </div>, and paste it after it.
▶️ Step 2.
Change the links, the title, the details and the picture, and give the slide a data-index no other slide has.
▶️ Step 3.
Raise the total under the slider: in fullscreen-backgrounds-slider__counter-total, change 05 to 06, and the second data-split-counter-value="5" there to 6.
html
<span class="split-counter__text">06</span>
…
<span class="split-counter__lane" aria-hidden="true" data-split-counter-value="6">Do the same in the other pages the search listed, copying the item next to Casa Notte's. Then load each page and arrive at your project from it: a link left to the old project shows up as a visit to the wrong page.
Next: Add a post.