Add hybrid editing system with markdown collections
Implement markdown collection support alongside existing element-level editing. Users can now choose between individual element editing (headlines, buttons) and rich markdown editing (stories, bios). Includes responsive overlay forms, smart field detection, and comprehensive documentation updates. Features: - Markdown collections with data-field-type="markdown" - Responsive overlay forms that adapt to element width - Element-level editing for granular control - Updated documentation and integration guide - Fixed marked.js renderer configuration issues - Enhanced about.html to demonstrate both approaches
This commit is contained in:
@@ -11,9 +11,7 @@
|
||||
<!-- Navigation -->
|
||||
<nav class="navbar">
|
||||
<div class="container">
|
||||
<div class="insertr" data-content-id="nav-logo">
|
||||
<h1 class="logo">Acme Consulting</h1>
|
||||
</div>
|
||||
<h1 class="logo insertr" data-content-id="nav-logo">Acme Consulting</h1>
|
||||
<ul class="nav-links">
|
||||
<li><a href="index.html">Home</a></li>
|
||||
<li><a href="about.html">About</a></li>
|
||||
@@ -30,23 +28,21 @@
|
||||
<!-- Hero Section -->
|
||||
<section class="hero">
|
||||
<div class="container">
|
||||
<div class="insertr" data-content-id="about-hero" data-content-type="rich">
|
||||
<h1>About Acme Consulting</h1>
|
||||
<p class="lead">We're a team of experienced consultants dedicated to helping small businesses thrive in today's competitive marketplace.</p>
|
||||
</div>
|
||||
<h1 class="insertr" data-content-id="about-title">About Acme Consulting</h1>
|
||||
<p class="lead insertr" data-content-id="about-subtitle">We're a team of experienced consultants dedicated to helping small businesses thrive in today's competitive marketplace.</p>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Story Section -->
|
||||
<section class="services">
|
||||
<div class="container">
|
||||
<div class="insertr" data-content-id="our-story" data-content-type="rich">
|
||||
<h2>Our Story</h2>
|
||||
<h2 class="insertr" data-content-id="story-title">Our Story</h2>
|
||||
<div class="insertr" data-content-id="story-content" data-field-type="markdown">
|
||||
<p>Founded in 2020, Acme Consulting emerged from a simple observation: small businesses needed access to the same high-quality strategic advice that large corporations receive, but in a format that was accessible, affordable, and actionable.</p>
|
||||
|
||||
<p>Our founders, with combined experience of over 30 years in business strategy, operations, and technology, recognized that the traditional consulting model wasn't serving the needs of growing businesses. We set out to change that.</p>
|
||||
|
||||
<p>Today, we've helped over 200 businesses streamline their operations, clarify their strategy, and achieve sustainable growth. Our approach combines proven methodologies with a deep understanding of the unique challenges facing small to medium-sized businesses.</p>
|
||||
<p>Today, we've helped over **200 businesses** streamline their operations, clarify their strategy, and achieve sustainable growth. Our approach combines proven methodologies with a deep understanding of the unique challenges facing small to medium-sized businesses.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
@@ -54,31 +50,29 @@
|
||||
<!-- Team Section -->
|
||||
<section class="cta">
|
||||
<div class="container">
|
||||
<div class="insertr" data-content-id="team-section">
|
||||
<h2>Our Team</h2>
|
||||
<p>We're a diverse group of strategists, operators, and technology experts united by our passion for helping businesses succeed.</p>
|
||||
</div>
|
||||
<h2 class="insertr" data-content-id="team-title">Our Team</h2>
|
||||
<p class="insertr" data-content-id="team-subtitle">We're a diverse group of strategists, operators, and technology experts united by our passion for helping businesses succeed.</p>
|
||||
|
||||
<div class="services-grid" style="margin-top: 3rem;">
|
||||
<div class="service-card">
|
||||
<div class="insertr" data-content-id="team-member-1" data-content-type="rich">
|
||||
<div class="insertr" data-content-id="member1-info" data-field-type="markdown">
|
||||
<h3>Sarah Chen</h3>
|
||||
<p><strong>Founder & CEO</strong></p>
|
||||
<p>Former McKinsey consultant with 15 years of experience in strategy and operations. MBA from Stanford.</p>
|
||||
<p>Former **McKinsey consultant** with 15 years of experience in strategy and operations. MBA from Stanford.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="service-card">
|
||||
<div class="insertr" data-content-id="team-member-2" data-content-type="rich">
|
||||
<div class="insertr" data-content-id="member2-info" data-field-type="markdown">
|
||||
<h3>Michael Rodriguez</h3>
|
||||
<p><strong>Head of Operations</strong></p>
|
||||
<p>20 years in manufacturing and supply chain optimization. Expert in lean methodologies and process improvement.</p>
|
||||
<p>20 years in manufacturing and supply chain optimization. Expert in **lean methodologies** and process improvement.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="service-card">
|
||||
<div class="insertr" data-content-id="team-member-3" data-content-type="rich">
|
||||
<div class="insertr" data-content-id="member3-info" data-field-type="markdown">
|
||||
<h3>Emma Thompson</h3>
|
||||
<p><strong>Digital Strategy Lead</strong></p>
|
||||
<p>Former tech startup founder turned consultant. Specializes in digital transformation and technology adoption.</p>
|
||||
<p>Former tech startup founder turned consultant. Specializes in *digital transformation* and technology adoption.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -88,21 +82,19 @@
|
||||
<!-- Values Section -->
|
||||
<section class="testimonial">
|
||||
<div class="container">
|
||||
<div class="insertr" data-content-id="values-section" data-content-type="rich">
|
||||
<h2 style="margin-bottom: 2rem;">Our Values</h2>
|
||||
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: left;">
|
||||
<div>
|
||||
<h3>Client-First</h3>
|
||||
<p>Every recommendation we make is designed with your specific business context and goals in mind.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h3>Practical Solutions</h3>
|
||||
<p>We believe in strategies that you can actually implement with your current resources and capabilities.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h3>Long-term Partnership</h3>
|
||||
<p>We're not just consultants; we're partners in your business success for the long haul.</p>
|
||||
</div>
|
||||
<h2 class="insertr" data-content-id="values-title" style="margin-bottom: 2rem;">Our Values</h2>
|
||||
<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; text-align: left;">
|
||||
<div>
|
||||
<h3 class="insertr" data-content-id="value1-title">Client-First</h3>
|
||||
<p class="insertr" data-content-id="value1-desc">Every recommendation we make is designed with your specific business context and goals in mind.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="insertr" data-content-id="value2-title">Practical Solutions</h3>
|
||||
<p class="insertr" data-content-id="value2-desc">We believe in strategies that you can actually implement with your current resources and capabilities.</p>
|
||||
</div>
|
||||
<div>
|
||||
<h3 class="insertr" data-content-id="value3-title">Long-term Partnership</h3>
|
||||
<p class="insertr" data-content-id="value3-desc">We're not just consultants; we're partners in your business success for the long haul.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -111,16 +103,13 @@
|
||||
<!-- Footer -->
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
<div class="insertr" data-content-id="footer-info">
|
||||
<p>© 2024 Acme Consulting Services. All rights reserved.</p>
|
||||
<p>📧 info@acmeconsulting.com | 📞 (555) 123-4567</p>
|
||||
</div>
|
||||
<p class="insertr" data-content-id="footer-copyright">© 2024 Acme Consulting Services. All rights reserved.</p>
|
||||
<p class="insertr" data-content-id="footer-contact">📧 info@acmeconsulting.com | 📞 (555) 123-4567</p>
|
||||
</div>
|
||||
</footer>
|
||||
|
||||
<!-- Insertr JavaScript Library -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/marked@16.2.1/lib/marked.umd.js"></script>
|
||||
<script src="https://unpkg.com/alpinejs@3.x.x/dist/cdn.min.js" defer></script>
|
||||
<script src="insertr/insertr.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user