Every Hypertekt site is built to be found: fast pages, a sitemap, the tags search engines and shared links read, and structured data saying who the business is. Most of that is done for you. What’s left is filling in the parts only you know, and fixing what the checks find.
What’s done for you
Hypertekt writes every page’s <head> from the page’s front matter and site.yaml, so a layout can’t get it wrong:
- the page’s
<title>, formatted bytitleFormat, and its description - the canonical address, on the site’s primary domain, so
www, the bare domain and previews never compete - the tags shared links read (Open Graph), with a share card drawn for each page that has no image of its own
- the icons and the web app manifest, drawn from the site’s
logooricon - structured data: the site, a breadcrumb trail on every page below the home page, and the business on the home page
sitemap.xml lists every page, with when it last changed, and robots.txt points to the sitemap. Previews are never
indexed. If a template writes one of the <head> tags above itself, that’s an error. The error says which front matter
key to use instead.
What to fill in
- Every page’s
titleanddescription. The title is what people click in search results. Say what the page is, in the words people search for. Keep the title to about 60 characters, including the site’s name. The description is the line under the title, between 50 and 160 characters. businessinsite.yaml. The business’s type, address, phone, hours and special hours are the structured data that puts a local business on the map in search results. Keep these details the same as on the business’s Google Business Profile. Owners change them under Business in the Content tab.logo,iconandthemeColor. The share cards and icons are drawn from them.imageon the pages people share, like an event’s page with its photo, asimage: "{{ event.photo }}".
Say what an item is
A page made for each item of a collection can tell search engines what the item is: an event, a product, a menu item, a
service, a person, a recipe, a course, a job or an article. Set describes in the collection, with the type and the
field that holds each detail. The checker makes sure those fields exist:
# collections/events.yaml
label: Events
describes: { type: Event, name: title, startDate: date, image: photo }
fields:
title: { type: text, required: true }
slug: { type: slug, from: title }
date: { type: date, time: true, required: true }
photo: { type: image }
For anything else, a page can write its own JSON-LD in its structuredData front matter.
The checks that matter most
The Checks tab and tekt check warn about anything that hurts a page in search or makes the page hard to use. The
warnings that matter most:
missing-business: search engines aren’t told who the site is for.title-length,missing-descriptionandduplicate-title: what search results show for the page is cut off, made up by the search engine, or the same as another page’s.broken-link: a link that goes nowhere, which visitors and search engines both hit.heading-count: a page with no<h1>, or more than one, so it isn’t clear what the page is about.missing-altandalt-text: pictures that screen readers and search engines can’t describe.low-contrastandmissing-label: text that’s hard to read, and form fields that aren’t named.
When many pages made from one template have the same problem, the checker gives one warning that lists the pages, so fixing the template fixes them all.
After it’s live
Add the site to Google Search Console and Bing Webmaster Tools, and give each of them /sitemap.xml. To verify the
site, put googleSiteVerification or bingSiteVerification in site.yaml’s integrations. Search Console’s
Pages report says which pages Google has found, and why any of them aren’t indexed.
Help for owners has two guides on writing for search: Write for what people search for and Match your details on Google and elsewhere.