docs: set unsafe HTML parsing to false and fix raw HTML insertion

This means that markdown files can't contain <thing> any more.
This commit is contained in:
Nick Craig-Wood 2020-05-22 12:22:52 +01:00
parent 06427371eb
commit 74b8cbfb84
128 changed files with 945 additions and 645 deletions

View file

@ -0,0 +1 @@
<script src="https://asciinema.org/a/{{ .Get 0 }}.js" id="asciicast-{{ .Get 0 }}" async></script>

View file

@ -0,0 +1 @@
<span style="color: {{ .Get 0 }}">{{ .Inner }}</span>

View file

@ -0,0 +1 @@
<i class="{{ .Get 0 }}" aria-hidden="true"></i>

View file

@ -0,0 +1 @@
<img width="{{ .Get "width" }}" src="{{ .Get "src" }}" alt="{{ .Get "alt" }}" style="{{ .Get "style" | safeCSS }}">

View file

@ -0,0 +1,16 @@
<div>
<a class="btn btn-secondary" role="button" href="https://github.com/sponsors/ncw" target="_blank"><i class="fab fa-github" aria-hidden="true"></i> GitHub Sponsors</a>
<div class="dropdown" style="display: inline;">
<a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fab fa-paypal" aria-hidden="true"></i> Paypal
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<span class="dropdown-item"><small class="text-muted">Please check the "monthly" box</small></span>
<a class="dropdown-item" target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=B9JZV25DCP2SJ&source=url">Donate in $ USD</a>
<a class="dropdown-item" target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RGRFXCDDHK3LW&source=url">Donate in £ GBP</a>
<a class="dropdown-item" target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y2AMZXSALFBR4&source=url">Donate in € EUR</a>
</div>
</div>
<a class="btn btn-secondary" role="button" href="https://github.com/sponsors/ncw" target="_blank"><i class="fab fa-patreon" aria-hidden="true"></i> Patreon</a>
<a class="btn btn-secondary" role="button" href="https://github.com/sponsors/ncw" target="_blank">Liberapay</a>
</div>

View file

@ -0,0 +1,25 @@
<div>
<div class="dropdown" style="display: inline;">
<a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fab fa-paypal" aria-hidden="true"></i> Paypal
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<a class="dropdown-item" target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=B9JZV25DCP2SJ&source=url">Donate in $ USD</a>
<a class="dropdown-item" target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RGRFXCDDHK3LW&source=url">Donate in £ GBP</a>
<a class="dropdown-item" target="_blank" href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Y2AMZXSALFBR4&source=url">Donate in € EUR</a>
</div>
</div>
<a class="btn btn-secondary" role="button" href="https://www.paypal.me/nickcw" target="_blank"><i class="fab fa-paypal" aria-hidden="true"></i> Paypal.me</a>
<div class="dropdown" style="display: inline;">
<a class="btn btn-secondary dropdown-toggle" href="#" role="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fab fa-bitcoin" aria-hidden="true"></i> Bitcoin
</a>
<div class="dropdown-menu" aria-labelledby="dropdownMenuButton">
<span class="dropdown-item">Bitcoin: scan or click the image or copy the address</span>
<a class="dropdown-item" target="_blank" href="bitcoin:19j3oLUsqBcTRvZ2LSq2phVjsAAJ86xSnk"><img src="/img/ncw-bitcoin-address.png"></a>
<span class="dropdown-item">
<input type="text" value="19j3oLUsqBcTRvZ2LSq2phVjsAAJ86xSnk" size="30" readonly>
<button class="btn btn-secondary copy-to-clipboard" type="button" data-toggle="tooltip" data-placement="button" title="Copy to Clipboard"><i class="fas fa-copy" aria-hidden="true"></i></button></span>
</div>
</div>
</div>

View file