mirror of
https://github.com/mudler/luet.git
synced 2025-09-13 13:50:26 +00:00
📓 Add docs alongside
This commit is contained in:
10
docs/layouts/404.html
Normal file
10
docs/layouts/404.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{{ define "main"}}
|
||||
<main id="main">
|
||||
<div>
|
||||
<h1 id="title">Not found</h1>
|
||||
<p>Oops! This page doesn't exist. Try going back to our <a href="{{ "/" | relURL }}">home page</a>.</p>
|
||||
|
||||
<p>You can learn how to make a 404 page like this in <a href="https://gohugo.io/templates/404/">Custom 404 Pages</a>.</p>
|
||||
</div>
|
||||
</main>
|
||||
{{ end }}
|
9
docs/layouts/shortcodes/githubembed.html
Normal file
9
docs/layouts/shortcodes/githubembed.html
Normal file
@@ -0,0 +1,9 @@
|
||||
{{/* https://github.com/haideralipunjabi/hugo-shortcodes/tree/master/github */}}
|
||||
|
||||
{{ $dataJ := getJSON "https://api.github.com/repos/" (.Get "repo") "/contents/" (.Get "file") }}
|
||||
{{ $con := base64Decode $dataJ.content }}
|
||||
|
||||
{{ highlight $con (.Get "lang") (.Get "options") }}
|
||||
|
||||
<small> <i class='fab fa-github'></i> <i>Complete source code: <a target=_blank href="{{ print "https://github.com/" ( .Get "repo" ) "/blob/master/" (.Get "file" ) }}">{{ print "https://github.com/" ( .Get "repo" ) "/blob/master/" (.Get "file" ) }}</a></i> </small>
|
||||
<hr>
|
Reference in New Issue
Block a user