forked from electricdusk/rushlink
Create a rendering stub
This commit is contained in:
10
assets/templates/base.html.tmpl
Normal file
10
assets/templates/base.html.tmpl
Normal file
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>{{block "title" .}}{{end}}</title>{{block "head-append" .}}{{end}}
|
||||
</head>
|
||||
<body>
|
||||
{{block "body" .}}{{end}}
|
||||
</body>
|
||||
</html>
|
||||
0
assets/templates/base.txt.tmpl
Normal file
0
assets/templates/base.txt.tmpl
Normal file
14
assets/templates/index.html.tmpl
Normal file
14
assets/templates/index.html.tmpl
Normal file
@@ -0,0 +1,14 @@
|
||||
{{define "body"}}
|
||||
<pre>
|
||||
#RU URL SHORTENER
|
||||
=================
|
||||
|
||||
Based on https://0x0.st/, this site allows you to easily shorten URLs using
|
||||
the command line.
|
||||
|
||||
## USAGE
|
||||
|
||||
# Shorten a URL
|
||||
curl -F'shorten=http://example.com/some/long/url' <a href="https://hashru.link">https://hashru.link</a>
|
||||
</pre>
|
||||
{{end}}
|
||||
10
assets/templates/index.txt.tmpl
Normal file
10
assets/templates/index.txt.tmpl
Normal file
@@ -0,0 +1,10 @@
|
||||
#RU URL SHORTENER
|
||||
=================
|
||||
|
||||
Based on https://0x0.st/, this site allows you to easily shorten URLs using
|
||||
the command line.
|
||||
|
||||
## USAGE
|
||||
|
||||
# Shorten a URL
|
||||
curl -F'shorten=http://example.com/some/long/url' https://hashru.link
|
||||
Reference in New Issue
Block a user