mirror of
https://github.com/caddyserver/website.git
synced 2025-04-25 14:36:16 -04:00
Use markdown syntax highlighting on frontpage
This commit is contained in:
parent
5e93103dce
commit
babfa3a7c0
11 changed files with 371 additions and 211 deletions
23
new/includes/examples/local-https.md
Normal file
23
new/includes/examples/local-https.md
Normal file
|
@ -0,0 +1,23 @@
|
|||
<script>
|
||||
document.addEventListener("DOMContentLoaded", (event) => {
|
||||
window.$('.ex-local-https pre.chroma').classList.add('light');
|
||||
});
|
||||
</script>
|
||||
|
||||
<div class="ex-local-https">
|
||||
|
||||
```caddy
|
||||
localhost {
|
||||
respond "Hello from HTTPS!"
|
||||
}
|
||||
|
||||
192.168.1.10 {
|
||||
respond "Also HTTPS!"
|
||||
}
|
||||
|
||||
http://localhost {
|
||||
respond "Plain HTTP"
|
||||
}
|
||||
```
|
||||
|
||||
</div>
|
Loading…
Add table
Add a link
Reference in a new issue