diff --git a/assets/css/main.css b/assets/css/main.css index 4f90f6f..54f9979 100644 --- a/assets/css/main.css +++ b/assets/css/main.css @@ -15,4 +15,8 @@ body { transition: visibility 175ms, opacity 175ms; width: 100%; z-index: 999; +} + +pre { + padding-left: 4ex; /* approx 4 monospaced spaces */ } \ No newline at end of file diff --git a/assets/templates/html/index.html.tmpl b/assets/templates/html/index.html.tmpl index edaa676..80da6a7 100644 --- a/assets/templates/html/index.html.tmpl +++ b/assets/templates/html/index.html.tmpl @@ -27,18 +27,18 @@ the command line.
- # Upload a file - curl -F'file=@yourfile.png' {{.RootURL}} +# Upload a file +curl -F'file=@yourfile.png' {{.RootURL}} - # Shorten a URL - curl -F'shorten=http://example.com/some/long/url' {{.RootURL}} +# Shorten a URL +curl -F'shorten=http://example.com/some/long/url' {{.RootURL}} - # The first line of the result will contain the shortened URL. - # - # In the other lines, you will find other information, including - # information on how to delete the shortened object. +# The first line of the result will contain the shortened URL. +# +# In the other lines, you will find other information, including +# information on how to delete the shortened object. - # To upload a file and only extract the shortened URL (i.e. throw away the rest) - curl -F'file=@yourfile.png' {{.RootURL}} | head -n 1 +# To upload a file and only extract the shortened URL (i.e. throw away the rest) +curl -F'file=@yourfile.png' {{.RootURL}} | head -n 1{{end}} diff --git a/assets/templates/txt/index.txt.tmpl b/assets/templates/txt/index.txt.tmpl index dd5e8e0..f7973c1 100644 --- a/assets/templates/txt/index.txt.tmpl +++ b/assets/templates/txt/index.txt.tmpl @@ -6,16 +6,16 @@ the command line. ## USAGE - # Upload a file - curl -F'file=@yourfile.png' {{.RootURL}} +# Upload a file +curl -F'file=@yourfile.png' {{.RootURL}} - # Shorten a URL - curl -F'shorten=http://example.com/some/long/url' {{.RootURL}} +# Shorten a URL +curl -F'shorten=http://example.com/some/long/url' {{.RootURL}} - # The first line of the result will contain the shortened URL. - # - # In the other lines, you will find other information, including - # information on how to delete the shortened object. +# The first line of the result will contain the shortened URL. +# +# In the other lines, you will find other information, including +# information on how to delete the shortened object. - # To upload a file and only extract the shortened URL (i.e. throw away the rest) - curl -F'file=@yourfile.png' {{.RootURL}} | head -n 1 +# To upload a file and only extract the shortened URL (i.e. throw away the rest) +curl -F'file=@yourfile.png' {{.RootURL}} | head -n 1