{"componentChunkName":"component---src-templates-blog-post-js","path":"/blog/my-first-introduction-to-portable-text/","result":{"data":{"post":{"id":"14dc49ad-585e-5fcf-ac7a-ec52568e675f","publishedAt":"2017-11-13T23:00:00.000Z","categories":[{"_id":"da38ee48-4ccb-4632-aed4-fae6aeb77b8c","title":"New category"}],"mainImage":{"alt":"A hand lighting a candle on a cake decorated with letter candles spelling out Happy Birthday","crop":null,"hotspot":null,"asset":{"_id":"image-3896734a6bff5fedfd3a94a0e587d960b1b22a4c-2250x1500-png","metadata":{"lqip":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAANCAYAAACpUE5eAAAACXBIWXMAAAsSAAALEgHS3X78AAAC60lEQVQ4y3XT609TdxzHcf6YXXp6zunp6UFO4fRyercXaOlWCHYdsjYI0tuG64oIZdHBgJHAZCxsMOp0MVNxF4OKLGZbTMweLtG/571TDcl048Hnwe/JK5/v7/v7dQmCHUGQsIkqgqwiKU5ErZu3nBqCQ6HHcBNKhYkMRDBPm/jCPsKJCLFklN4+HUUS6T3lIBZ2k0oF6RIEwQJFbIKMJCt4vG5iAzGMcABntwuX5sTjc5NIBBjojxC1wGgsSCqdwOvzoMgSmipj+nX60+Fj0P4isiyTiHupTOWYmswx/G6E/oSXXCZApZSlWS1QLg0xPvoO75/JEDINHFZDhyyi6xrReOAYfBlRFDFNjeJYiAv1FPVykvpkkkZlkIVGnlajQKM6wpXmOdZaNapjQ8TNPnSXjMtq2aO7XgU7UZx2/AGJTFYh/57GeNHgo6korek08/U0s7Ucu2sz/HF7m/u7q6xNj3E25cHfI1uji6+BNgG7YLPQt/H43ySTfoP8sI3SyCkuF71s1WJ892mRR+1lnj34nucHezzanGXxgziDPgWjW/o/sDO6YN2JjcG0QHHERS3j54ucybXKAHdWatzbnOfXjVke73zG0eZFlksp0oYDt2r/78jHcWkOa5NBPhzLsz46wfb5GjuXm9z4cp7dVpmliWH2FsocrH/C5+NpEm4HLslGl73TyvYq1jmrqpNsNstqc46fV66y/02bn/ZvcnS3zf2vl7h+pcH+RovDrTnWKzkyXhXt3+DrkUWJaCjIpXqVHzY3uHvjGoe/3OLJwS3+vLPHw/ZVDq2lPN5u0Z4pUIrr+FXhZPBFS8UaOxri/Nk8jfI5WhdqLF/6mMVmnflqia8uTvDb1iwPVsssjoYoBBwng2Knpd1Oj2L9AuvRBg2dgK+PsOm1YpAMGSxMDvH7twv8tTvHjzNDLJ7pPQEUXmKq9QvcDgmftSCzV8XjcaH3aehGN8nTBivTBZ5eX+Lvm8scrYyzMxnkH60G9gfdj2sQAAAAAElFTkSuQmCC","dimensions":{"aspectRatio":1.5,"width":2250,"height":1500}}}},"title":"My First Introduction to Portable Text","slug":{"current":"my-first-introduction-to-portable-text"},"_rawExcerpt":[{"_key":"4953b034fdc7","_type":"block","children":[{"_key":"4953b034fdc70","_type":"span","marks":[],"text":"Portable Text is a structured content approach to rich text with some pretty nifty capabilities."}],"markDefs":[],"style":"normal"}],"_rawBody":[{"_key":"8f3691f42e1b","_type":"block","children":[{"_key":"8f3691f42e1b0","_type":"span","marks":[],"text":""},{"_key":"8f3691f42e1b1","_type":"span","marks":["217576d2be65"],"text":"Portable Text"},{"_key":"8f3691f42e1b2","_type":"span","marks":[],"text":" is a JSON based rich text specification for modern content editing platforms. The rich text editor in Sanity Studio uses it and lets me embed data objects both inline and inbetween my text blocks. I can even have references in them so that my content backend warns me if I try to delete content that is linked to. I can also customize the editor with "},{"_key":"8f3691f42e1b3","_type":"span","marks":["fc7e797c1dd6"],"text":"React components and paste-handling overrides"},{"_key":"8f3691f42e1b4","_type":"span","marks":[],"text":". I can even "},{"_key":"8f3691f42e1b5","_type":"span","marks":["2c6896e3acbc"],"text":"make it speak"},{"_key":"8f3691f42e1b6","_type":"span","marks":[],"text":"!"}],"markDefs":[{"_key":"217576d2be65","_type":"link","href":"https://www.portabletext.org"},{"_key":"fc7e797c1dd6","_type":"link","href":"https://www.sanity.io/docs/what-you-need-to-know-about-block-text/customization"},{"_key":"2c6896e3acbc","_type":"link","href":"https://www.smashingmagazine.com/2019/03/sanity-portabletext-speech-synthesis/"}],"style":"normal"},{"_key":"b5d4c234015c","_type":"instagram","url":"https://www.instagram.com/p/B7QaNttJzFd/"}],"authors":[{"_key":"7156d9937ca9","author":{"image":{"crop":null,"hotspot":null,"asset":{"_id":"image-ea2ab7bb8793351740ff50e3943089369c420de6-1024x1024-png"}},"name":"An AI generated author"}}]}},"pageContext":{"id":"14dc49ad-585e-5fcf-ac7a-ec52568e675f"}},"staticQueryHashes":["2817707602","2891822173"]}