Add, copy or remove a page
A new page starts as a copy of the page closest to what you want. All pages sit side by side in the HTML folder and link to each other by file name, so a page you add or remove also changes the menus that list it.
How to access
HTML folder → VS Code Explorer
Copying a page
▶️ Step 1.
In VS Code's Explorer, right-click the page to start from, for example studio.html, and choose Copy, then right-click the HTML folder and choose Paste.
▶️ Step 2.
Rename the copy: lowercase, no spaces, ending in .html, for example team.html. Keep it in the HTML folder beside the other pages, not in a subfolder.
▶️ Step 3.
Open the copy and change its <title>:
html
<title>Team – Velum</title>▶️ Step 4.
Take away the original page's current mark from the copy's menus. Search the copy for aria-current="page": on each item it finds, remove aria-current="page" from the link and current-menu-item from the <li>, plus dot-list__item_current where the <li> has it, and current-menu-ancestor from the parent item in the burger menu. In team.html, the two items read:
html
<li class="menu-item" data-menu-item="25"><a href="#">…Pages</span></a>
<ul class="sub-menu">
<li class="menu-item" data-menu-item="26"><a href="studio.html">…About / Classic</span></a></li>html
<li class="menu-item dot-list__item"><a href="studio.html">…Studio</span></a></li>▶️ Step 5.
Change the content: the texts, the pictures, the sections. Move a section covers taking sections from other pages.
The page works as soon as it is saved, and AJAX transitions reach it like any other page. To list it in the menus of every page, add an item for it: Edit every page at once. To mark that item as current on the new page itself: Menus.
A project or a post
A project or a post is listed in more places than the menus: the archives, the sliders, the next and previous links. Copy one with Add a project or Add a post instead.
Removing a page
▶️ Step 1.
Delete the page's file, for example contacts-light.html.
▶️ Step 2.
Remove its menu items from every page. Search all pages (*.html) with Use Regular Expression on, and replace with nothing:
\n\s*<li [^>]*><a href="contacts-light.html".*</li>▶️ Step 3.
Search all pages for the file name, contacts-light.html, with Use Regular Expression off. Each result left is a link in a page's content, such as a button: point it at another page or remove it.
A link left pointing at a deleted page leads to a missing page. Before you launch, check the results of the last search come back empty.
Next: Move a section.