<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Del Taco Menu Prices</title>
    <description>The latest articles on DEV Community by Del Taco Menu Prices (@deltacomenuprices).</description>
    <link>https://dev.to/deltacomenuprices</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4260364%2F28fdff60-e6f3-4f99-a25e-34c8a68bb743.png</url>
      <title>DEV Community: Del Taco Menu Prices</title>
      <link>https://dev.to/deltacomenuprices</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/deltacomenuprices"/>
    <language>en</language>
    <item>
      <title>One Data File, 149 Pages: How I Structured the Data Behind a Menu Website</title>
      <dc:creator>Del Taco Menu Prices</dc:creator>
      <pubDate>Mon, 23 Nov 2026 10:41:02 +0000</pubDate>
      <link>https://dev.to/deltacomenuprices/one-data-file-149-pages-how-i-structured-the-data-behind-a-menu-website-n02</link>
      <guid>https://dev.to/deltacomenuprices/one-data-file-149-pages-how-i-structured-the-data-behind-a-menu-website-n02</guid>
      <description>&lt;p&gt;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 &lt;strong&gt;every page is generated from a single Python data file&lt;/strong&gt; — and the mistakes that file forced me to fix taught me more about data modelling than any tutorial.&lt;/p&gt;

&lt;p&gt;Here's the setup, and the three problems that shaped it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The data model
&lt;/h2&gt;

&lt;p&gt;Each item is one dictionary:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"slug"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"the-del-taco"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"cat"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"tacos"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"The Del Taco"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="s2"&gt;"price"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"$2.19"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"cal"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"300"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="s2"&gt;"desc"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"The original since 1964 — seasoned beef, hand-grated cheddar..."&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="s2"&gt;"visual"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"classic crunchy taco with seasoned beef, shredded cheddar..."&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 1: What do you do when the price doesn't exist?
&lt;/h2&gt;

&lt;p&gt;In November, the chain launched a limited-time lineup (a birria range, then a collaboration shake) with &lt;strong&gt;no published prices and no nutrition figures&lt;/strong&gt;. 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).&lt;/p&gt;

&lt;p&gt;The fix was a flag:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight python"&gt;&lt;code&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="s2"&gt;"slug"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"marinela-gansito-shake"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"cat"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"desserts-shakes"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
 &lt;span class="s2"&gt;"name"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Marinela Gansito Shake"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"noprice"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="kc"&gt;True&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When &lt;code&gt;noprice&lt;/code&gt; is set, the templates render "Price varies by location" and "Not published", and — this is the important part — the JSON-LD generator &lt;strong&gt;omits the Offer entirely&lt;/strong&gt; 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 2: The "Menu Menu" bug
&lt;/h2&gt;

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

&lt;p&gt;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) &lt;strong&gt;and a build-time lint that fails the build&lt;/strong&gt; 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  Problem 3: Every item needs an image
&lt;/h2&gt;

&lt;p&gt;One design rule I set early: no text-only item pages. Each record carries a &lt;code&gt;visual&lt;/code&gt; 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.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I'd tell anyone building a content site
&lt;/h2&gt;

&lt;p&gt;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 — &lt;a href="https://deltacomenuprices.com/" rel="noopener noreferrer"&gt;Del Taco Menu Prices&lt;/a&gt; — is unofficial and fan-made, and the prices are labelled typical estimates for exactly the reasons above.&lt;/p&gt;

&lt;p&gt;If you're building something similar, I'm happy to compare notes in the comments.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>seo</category>
      <category>python</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
