Skip to content
open.blog documentation
open.blog

Services

A service is one thing your business sells, described once: what it includes, a starting price band, a typical timeline and the questions customers ask. It is a Markdown file in content/services/. A site that has no such folder builds exactly as it did before. A Markdown file in content/services/ counts as a service only if its front matter has version or id; a file with neither is ignored as it always was, and one with either that is otherwise invalid fails the build naming the file (ADR 0311).

open.blog is not a field-service tool. A price band is a label you choose to show; nothing here adds up, estimates or quotes.

A service file#

---
version: 1
id: hardwood-install
name: Hardwood floor installation
summary: Solid oak or maple floors, nailed down and finished on site.
includes:
  - Removing the old floor
  - Subfloor check and repairs
  - Two coats of finish
priceBand: 2k-10k
typicalTimeline: 2 to 4 days
faq:
  - question: Can you match my existing floor?
    answer: Usually. We bring samples so you can compare in your own light.
  - question: Do I have to move out?
    answer: No. We work one room at a time.
---
Anything you write here is the long description on the service's page, as ordinary Markdown.
FieldRequiredRule
versionno1. Another number is refused; update open.blog if the file came from a newer one.
idyesLowercase letters, digits and hyphens, up to 60 characters, not page. Jobs name the service by this id.
nameyesUp to 120 characters on one line.
summaryyesOne sentence, up to 300 characters.
includesnoUp to 30 short items, 160 characters each.
priceBandnoThe same set a job's costBand uses: under-500, 500-2k, 2k-10k, 10k-50k, over-50k or ask. Never free text.
typicalTimelinenoA short label up to 80 characters, such as 2 to 4 days.
faqnoUp to 20 entries, each with a question (200 characters) and an answer (1,000). Plain text.
draftnotrue keeps the service off the site while you write it.

Every text value is plain text on one line. Keys you add that this version does not know are kept untouched. Each problem is a sentence naming the field, and every problem in a file is listed at once.

Writing a service#

In Studio open Services (#/services, in the navigation on a trade site and in Find). Add a service asks for a name (the id is made from it, and you can change it before the first save), a summary, what is included, a price band, a typical timeline, the questions customers ask and, if you like, text for the page. The questions are a list: Add a question puts the cursor in the new one, and each has Up, Down and Remove. Tick Keep this as a draft to save it unfinished; a draft is not on your site. Problems are said in words beside the field they are about, and nothing is saved until the build would accept it. The screen is one column from 320px with 44px controls. It uses the same document routes as posts, pages and series (session, CSRF and the revision check included), so there is nothing new to secure; see ADR 0313. The job form's service box suggests the ids of your published services.

From the command line, openblog new "Hardwood installation" --profile service writes content/services/hardwood-installation.md as a draft, with version: 1, the id (from the name, or --id hardwood-install), the name, an empty summary and, with --price-band 2k-10k, the band. Each answer is checked the way the build checks it, and nothing is written when one is refused. Fill in the summary, remove draft, and openblog check stops listing it as service not ready to publish.

A service with draft: true is not built and is not one of the ids jobs are checked against; while it is unfinished its problems are warnings, not errors.

What the build makes#

A site with at least one service gets:

  • /services/: every service with its summary, price band and timeline, and its three newest jobs.
  • /services/<id>/: one page per service with what is included, your body text, the price band and timeline, the questions and answers, and the five newest jobs done for it, with links to the archives (/jobs/<trade>/<id>/) that list them all.
  • Service structured data on each page, and FAQPage data beside it only when the service has questions. The provider is your business facts when you have set them (Configuration), otherwise the site title. Everything comes from the file, the same files always build to the same pages, and text is escaped so nothing in a question can break the page.
  • The index and each page in sitemap.xml and llms.txt, and a Services link in the header navigation (unless your own nav already links to /services/). services can no longer be a page or post address.

The price band is shown in words ($2,000 to $10,000) with the note that it is a guide, not a quote. Change one band, rebuild, and the page, the index and the structured data all change. A site with no services builds exactly as it did before. See ADR 0312.

Jobs and services#

A job names its service in job.service (Jobs). Once your site has at least one service, that id has to be one of them: a job that names another one stops the build with job.service: `hardwod-install` is not one of this site's services; known service ids are hardwood-install, tile. A draft job gets the same sentence as a warning. A site with no services does not check it at all, so existing jobs keep working and you adopt services when you are ready. Two services cannot share an id.

View this page's source