refactor: extract shared partials from HTML pages (nav, footer, styles, modals)
Some checks failed
Deploy to Production / Deploy to Server (push) Has been cancelled
Some checks failed
Deploy to Production / Deploy to Server (push) Has been cancelled
- Created build-time templating system using existing build-html.cjs - Extracted index.html into source template with partials: _styles_index.html, _nav_index.html, _modals.html - All 4 templated pages (index, impressum, privacy, terms) use partials - docs.html excluded (Swagger UI, completely different structure) - Added HTML build step to Dockerfile - Built output is byte-identical to original files
This commit is contained in:
parent
aab6bf3bee
commit
e51e65524a
6 changed files with 554 additions and 2 deletions
10
public/partials/_nav_index.html
Normal file
10
public/partials/_nav_index.html
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
<nav aria-label="Main navigation">
|
||||
<div class="container">
|
||||
<a href="/" class="logo">⚡ Doc<span>Fast</span></a>
|
||||
<div class="nav-links">
|
||||
<a href="#features">Features</a>
|
||||
<a href="#pricing">Pricing</a>
|
||||
<a href="/docs">Docs</a>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
Loading…
Add table
Add a link
Reference in a new issue