Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 3 additions & 13 deletions layouts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,7 @@
<div class="hero"><div class="wrap">
<div>
<h1 class="head">The whole of PDF<br><span class="accent">in Go, with no C anywhere.</span></h1>
<p class="sub">Read a file, write one, rearrange it, draw it, read it back as words and pictures, and <b>edit it with other people</b> — in a browser tab if you like, since every one of these builds for <code>js/wasm</code>. Fonts are parsed and shaped by <a href="https://github.com/go-opentype/opentype">go-opentype</a>, pages are rasterised by <a href="https://github.com/go-gfx/gfx">go-gfx</a>.</p>
{{/* ⛔ THE MANTRA STRIP ABOVE ALREADY SAYS IT. This sentence ended
"Pure Go, CGO_ENABLED=0. BSD-3-Clause." — two chips' worth of words,
a screen's length below the chips themselves, and the page went on to
say both again twice more. landingkit has the question to ask
(partials/mantra-on.html) precisely so a landing says it ONLY when
the strip is off; this landing had never asked it. */}}
<p class="sub">Read a file, write one, rearrange it, draw it, read it back as words and pictures, and <b>edit it with other people</b> — in a browser tab if you like, since every one of these builds for <code>js/wasm</code>. Fonts are parsed and shaped by <a href="https://github.com/go-opentype/opentype">go-opentype</a>, pages are rasterised by <a href="https://github.com/go-gfx/gfx">go-gfx</a>. {{ if not (partial "mantra-on.html" $) }}Pure Go, <code>CGO_ENABLED=0</code>.{{ end }} {{ if not (partial "mantra-on.html" $) }}BSD-3-Clause.{{ end }}</p>
<div class="cta">
{{/* ⛔ DOCUMENTATION FIRST, as on go-richdoc, go-images and go-slides.
This landing had the app first and was the odd one out; the order
Expand Down Expand Up @@ -160,15 +154,11 @@ <h2>A subset, an encoding, and text you can still copy.</h2>
<section id="eco" style="padding-top:6px"><div class="wrap">
<div class="band">
<h2>100 % statement coverage, including the branches that report a bad file.</h2>
<p>And it <b>runs</b> on {{ len .Site.Params.arches }} architectures, not merely compiles for them.{{ if not (partial "mantra-on.html" .) }} Pure Go, cgo disabled, BSD-3-Clause.{{ end }}</p>
<p>And it <b>runs</b> on {{ len .Site.Params.arches }} architectures, not merely compiles for them. {{ if not (partial "mantra-on.html" $) }}Pure Go, cgo disabled, BSD-3-Clause.{{ end }}</p>
<a class="btn btn-ghost" href="https://github.com/go-pdfkit">{{ partial "icons/github.html" . }}Read the source on GitHub →</a>
</div>
</div></section>

{{/* The idiom landingkit's mantra-on.html documents, used here as written:
the footer says the licence and the cgo setting only when the strip at
the top is not already saying them. What is left either way is the one
claim the strip does NOT make — that every library builds for js/wasm. */}}
<footer><div class="wrap"><span>© the go-pdfkit authors{{ if not (partial "mantra-on.html" .) }} · BSD-3-Clause{{ end }}</span><span>{{ if not (partial "mantra-on.html" .) }}Pure Go · CGO_ENABLED=0 · {{ end }}every library builds for js/wasm</span></div></footer>
<footer><div class="wrap"><span>© the go-pdfkit authors{{ if not (partial "mantra-on.html" $) }} · BSD-3-Clause{{ end }}</span><span>Pure Go · {{ if not (partial "mantra-on.html" $) }}CGO_ENABLED=0 · {{ end }}every library builds for js/wasm</span></div></footer>
</body>
</html>
Loading