|
| 1 | +{{define "main"}} |
| 2 | + <!-- Hero Section --> |
| 3 | + <div class="mb-16 pt-8"> |
| 4 | + <div class="flex items-center gap-2 text-emerald-400 text-sm mb-6 font-mono"> |
| 5 | + <span class="text-gray-500">$</span> |
| 6 | + <span>hype build</span> |
| 7 | + </div> |
| 8 | + <h1 class="text-5xl font-bold mb-4 font-mono leading-tight"> |
| 9 | + Markdown that <span class="text-emerald-400">executes</span>. |
| 10 | + </h1> |
| 11 | + <p class="text-xl text-gray-400 font-mono mb-8 max-w-3xl leading-relaxed"> |
| 12 | + Hype is a content engine for technical writers. Execute code blocks, include files, |
| 13 | + and validate everything at build time. Your docs are never out of date. |
| 14 | + </p> |
| 15 | + <div class="flex gap-4 font-mono text-sm"> |
| 16 | + <a href="https://github.com/gopherguides/hype" class="bg-emerald-500 text-gray-950 px-6 py-3 rounded font-bold hover:bg-emerald-400 transition-colors"> |
| 17 | + Get Started |
| 18 | + </a> |
| 19 | + <a href="https://github.com/gopherguides/hype" class="border border-gray-700 text-gray-300 px-6 py-3 rounded hover:border-emerald-400 hover:text-emerald-400 transition-colors"> |
| 20 | + View on GitHub |
| 21 | + </a> |
| 22 | + </div> |
| 23 | + </div> |
| 24 | + |
| 25 | + <!-- Features Grid --> |
| 26 | + <div class="grid md:grid-cols-3 gap-6 mb-16"> |
| 27 | + <div class="border border-gray-800 rounded-lg p-6 hover:border-emerald-400/30 transition-colors"> |
| 28 | + <div class="text-emerald-400 font-mono text-sm mb-2">// execute</div> |
| 29 | + <h3 class="font-mono font-bold mb-2">Code Execution</h3> |
| 30 | + <p class="text-gray-400 text-sm">Run Go, shell commands, and more directly from your Markdown. Output is captured and included in the final document.</p> |
| 31 | + </div> |
| 32 | + <div class="border border-gray-800 rounded-lg p-6 hover:border-emerald-400/30 transition-colors"> |
| 33 | + <div class="text-emerald-400 font-mono text-sm mb-2">// include</div> |
| 34 | + <h3 class="font-mono font-bold mb-2">File Includes</h3> |
| 35 | + <p class="text-gray-400 text-sm">Include source files, snippets, and outputs. Keep your documentation DRY and always synchronized with your codebase.</p> |
| 36 | + </div> |
| 37 | + <div class="border border-gray-800 rounded-lg p-6 hover:border-emerald-400/30 transition-colors"> |
| 38 | + <div class="text-emerald-400 font-mono text-sm mb-2">// validate</div> |
| 39 | + <h3 class="font-mono font-bold mb-2">Build-Time Validation</h3> |
| 40 | + <p class="text-gray-400 text-sm">Broken links, missing files, and failing code are caught at build time. Ship docs you can trust.</p> |
| 41 | + </div> |
| 42 | + </div> |
| 43 | + |
| 44 | + <!-- Install Section --> |
| 45 | + <div class="mb-16 border border-gray-800 rounded-lg p-6"> |
| 46 | + <div class="text-emerald-400 font-mono text-sm mb-3">// install</div> |
| 47 | + <div class="bg-gray-900 rounded p-4 font-mono text-sm"> |
| 48 | + <div class="text-gray-500 mb-1"># with Homebrew</div> |
| 49 | + <div class="text-gray-100">brew install gopherguides/tap/hype</div> |
| 50 | + <div class="text-gray-500 mt-3 mb-1"># or with Go</div> |
| 51 | + <div class="text-gray-100">go install github.com/gopherguides/hype/cmd/hype@latest</div> |
| 52 | + </div> |
| 53 | + </div> |
| 54 | + |
| 55 | + <!-- Articles Section --> |
| 56 | + {{if .Articles}} |
| 57 | + <div> |
| 58 | + <div class="flex items-center gap-2 text-emerald-400 text-sm mb-4 font-mono"> |
| 59 | + <span class="text-gray-500">$</span> |
| 60 | + <span>ls -la articles/</span> |
| 61 | + </div> |
| 62 | + <div class="text-gray-500 text-xs font-mono pb-2 border-b border-gray-800"> |
| 63 | + total {{len .Articles}} |
| 64 | + </div> |
| 65 | + <div class="space-y-4 mt-4"> |
| 66 | + {{range .Articles}} |
| 67 | + <article class="group py-4 border-b border-gray-800 hover:bg-gray-900/50 transition-colors -mx-4 px-4"> |
| 68 | + <div class="flex items-start gap-4"> |
| 69 | + <div class="text-gray-500 text-xs font-mono whitespace-nowrap pt-1"> |
| 70 | + {{.FormattedDate}} |
| 71 | + </div> |
| 72 | + <div class="flex-1 min-w-0"> |
| 73 | + <h2 class="text-lg font-mono mb-1"> |
| 74 | + <a href="{{.URL}}" class="text-white hover:text-emerald-400 transition-colors"> |
| 75 | + {{.Title}} |
| 76 | + </a> |
| 77 | + </h2> |
| 78 | + {{if .SEODescription}} |
| 79 | + <p class="text-gray-400 text-sm line-clamp-2">{{.SEODescription}}</p> |
| 80 | + {{end}} |
| 81 | + <div class="flex items-center gap-4 mt-2 text-xs text-gray-500 font-mono"> |
| 82 | + {{if .Author}}<span>@{{.Author}}</span>{{end}} |
| 83 | + {{if .ReadingTime}}<span>~{{.ReadingTime}}m</span>{{end}} |
| 84 | + {{if .Tags}} |
| 85 | + <div class="flex gap-1"> |
| 86 | + {{range .Tags}}<span class="text-emerald-600">#{{.}}</span>{{end}} |
| 87 | + </div> |
| 88 | + {{end}} |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + <a href="{{.URL}}" class="text-emerald-400 opacity-0 group-hover:opacity-100 transition-opacity font-mono text-sm"> |
| 92 | + → |
| 93 | + </a> |
| 94 | + </div> |
| 95 | + </article> |
| 96 | + {{end}} |
| 97 | + </div> |
| 98 | + </div> |
| 99 | + {{end}} |
| 100 | +{{end}} |
0 commit comments