mirror of
https://github.com/andwati/pwnforfunandprofit.xyz.git
synced 2026-11-05 18:12:15 +00:00
5.3 KiB
5.3 KiB
applyTo
| applyTo |
|---|
| **/* |
Copilot Instructions for pwnforfunandprofit.xyz
0. Mission
Produce production-grade changes that are correct, verifiable, maintainable, and aligned with this Zola blog site's architecture, leveraging high-end premium design aesthetics.
1. Project Context
Workspace Structure
- Framework: Zola (Rust-based static site generator)
- Templates: Tera templates (
templates/) - Styling: SCSS (
sass/) - Content: Markdown (
content/) - Static Assets: JavaScript and CSS (
static/) - Scripts: Python auxiliary scripts (
scripts/) - Skill Instructions: High-level AI design rules (
llms/)
Key Dependencies & Tools
- Zola: Static Site Generator (v0.22.1)
- Template Engine: Tera (Django/Jinja2-like)
- Styling: Vanilla SCSS (No Tailwind or external CSS themes allowed)
- SEO/Metadata: Built-in JSON-LD schemas
- Syntax Highlighting: Zola built-in (Catppuccin Mocha theme)
- Math: KaTeX via CDN
- Diagrams: Mermaid.js via CDN
- Comments: Utterances (GitHub issues based)
Runtime & Commands
- Serve Locally:
zola serve - Build:
zola build - Check/Lint:
zola check - Scripting: Python 3 +
venvfor data manipulation (e.g. RSS migrations)
2. Rule Priority and Conflict Resolution
When instructions conflict, follow this order:
- Safety, correctness, and premium design rules
- User-requested behavior
- This repository instruction file
- The custom
llms/guidelines (taste-skill.mdandredesign-skill.md) - Existing codebase patterns and conventions
3. Operational Mode
- Execute end-to-end without pausing for non-blocking confirmations.
- Keep responses concise during execution; provide one complete summary at the end.
- Do not claim completion until
zola checkconfirms zero validation errors. - Ensure all styling upgrades strictly adhere to the internal bespoke CSS variables.
4. Definition of Done (Mandatory)
A task is complete only when all applicable items pass:
- ✓ Requested behavior implemented.
- ✓
zola checkdetects no orphaned links or missing taxonomies. - ✓
zola buildoutputs seamlessly in less than a second. - ✓ Code changes reflect the high-end
design-taste-frontendspecifics (no generic "AI-slop" designs, no Tailwind injections). - ✓ Modified templates remain semantic HTML5.
5. Mandatory Execution Workflow
Initialization
- Check existing implementations in
templates/andsass/. - Use absolute URLs (
get_url()) inside templates instead of relative paths.
Implementation
- Implement in small, verifiable increments.
- If modifying SCSS variables or structural Tera blocks, verify via:
zola check
Verification
- Spin up the server to verify visual cadence:
zola serve - Ensure any new categories or tags are explicitly defined in
zola.toml.
6. Code Purity and Output Rules
- Generate raw executable code only.
- Forbidden: commented-out code, generic placeholder names (e.g. "John Doe", "Acme"), emojis in code or text (unless explicitly requested).
- Allowed: required comments explaining non-obvious logic.
- Keep SCSS deterministic: Rely on global variables rather than arbitrary hardcoded hexs.
- Never use emojis in code, documentation, commit messages, or alt texts.
7. Frontend Rules (Zola + SCSS)
7.1 Architecture
- Use
{% extends "base.html" %}to establish layout inheritance. - Leverage
{% block %}elements for page-specific overrides. - Use
config.extra.*for user-defined configuration toggles. - Never write JS SPAs inside this structure: interactivity resides in targeted Vanilla JS files in
static/js/.
7.2 Styling Constraints
- Rely exclusively on internal SCSS architecture. Do not suggest or install TailwindCSS.
- Follow
llms/taste-skill.mdrequirements:- Dark Mode overrides inside
html.dark. - Prefer
Outfitor high-quality sans-serif text. - No default flexbox percentage math (use CSS grid).
- No arbitrary
100vh; use100dvh. - Ensure focus rings and accessible outlines exist.
- Dark Mode overrides inside
7.3 Content Constraints
- All Markdown files must be prefixed with valid TOML frontmatter (
+++). - Frontmatter must include:
title,date. - Do not utilize unsupported Markdown extensions (Zola relies on CommonMark + specific extensions configurable in
zola.toml).
8. Debugging Commands Reference
zola serve # Live preview server on http://127.0.0.1:1111
zola build # Build static site into public/
zola check # Validate internal links and config mappings
python3 scripts/migrate.py # Re-run Substack migration script if testing feeds
9. Quick Help
"My template is failing to build with a parse error"
→ Zola's Tera engine uses {{ variable }} for printing and {% expression %} for logic. Check your variable structures.
"Styles updates aren't applying"
→ Ensure compile_sass is enabled in zola.toml and you are modifying valid .scss assets inside sass/.
"My taxonomy doesn't work or throws an error"
→ If you see Tried to render taxonomy_list.html, ensure you created the taxonomy view templates and registered the taxonomy array in zola.toml.
Last Updated: March 8, 2026
Site Generator: Zola
Styling Paradigm: Bespoke SCSS