DEV Community

Del Taco Menu Prices
Del Taco Menu Prices

Posted on

One Data File, 149 Pages: How I Structured the Data Behind a Menu Website

Earlier this year I built a menu reference site that has quietly grown to 149 pages: 14 categories, 100+ item pages, guides, a blog, the works. The interesting part isn't the page count. It's that every page is generated from a single Python data file — and the mistakes that file forced me to fix taught me more about data modelling than any tutorial.

Here's the setup, and the three problems that shaped it.

The data model

Each item is one dictionary:

{"slug": "the-del-taco", "cat": "tacos", "name": "The Del Taco",
 "price": "$2.19", "cal": "300",
 "desc": "The original since 1964 — seasoned beef, hand-grated cheddar...",
 "visual": "classic crunchy taco with seasoned beef, shredded cheddar..."}
Enter fullscreen mode Exit fullscreen mode

Categories are a second list with slugs, names, taglines and descriptions. The builder walks the two lists and emits item pages, category pages, a full price index, a nutrition page, sitemap and JSON-LD (MenuItem, FAQPage, BreadcrumbList) — all from the same records. Change a price once, and it updates on the item page, the category page, the price index and the schema in a single build. That consistency is the entire point.

Problem 1: What do you do when the price doesn't exist?

In November, the chain launched a limited-time lineup (a birria range, then a collaboration shake) with no published prices and no nutrition figures. My schema assumed every item has a price. The lazy options were all bad: invent plausible numbers (dishonest), or skip the launch (the site exists to cover launches).

The fix was a flag:

{"slug": "marinela-gansito-shake", "cat": "desserts-shakes",
 "name": "Marinela Gansito Shake", "noprice": True, ...}
Enter fullscreen mode Exit fullscreen mode

When noprice is set, the templates render "Price varies by location" and "Not published", and — this is the important part — the JSON-LD generator omits the Offer entirely instead of emitting a fake price. A missing field became a first-class state instead of an accident. If you model real-world data, "unknown" deserves its own representation; your templates will thank you.

Problem 2: The "Menu Menu" bug

Category titles were generated with a pattern like "Del Taco %s Menu with Prices" % category_name. Fine — until a category is itself named "Breakfast Menu", and the site ships "Del Taco Breakfast Menu Menu with Prices". It sat live, in production, looking ridiculous.

The fix wasn't just correcting two titles. I added a guard in the builder (if the name already ends in "Menu", don't append it) and a build-time lint that fails the build if any generated title exceeds 65 characters, any meta description falls outside 100–165, any page has more or fewer than one H1, or any canonical doesn't point at itself. A menu site is a title-and-meta machine; linting those at build time is cheaper than auditing 149 pages by hand later.

Problem 3: Every item needs an image

One design rule I set early: no text-only item pages. Each record carries a visual field — a short art-direction brief — and the build fails if an item has no matching image file. It's a small constraint, but it means the data file doubles as the asset checklist, and a new item can't silently ship as a bare page of text.

What I'd tell anyone building a content site

Model the domain honestly (including "we don't know"), generate everything from one source of truth, and put your quality rules in the build, not in a checklist you'll forget. The site itself — Del Taco Menu Prices — is unofficial and fan-made, and the prices are labelled typical estimates for exactly the reasons above.

If you're building something similar, I'm happy to compare notes in the comments.

Top comments (0)