From f49b160a5283d13f5f8ce9af95b987d2556883f1 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Tue, 22 Nov 2016 15:51:13 +0100 Subject: Add new subpage for µhttpd. --- content/uhttpd.md | 8 +++ layouts/partials/css.tmpl | 12 ++-- layouts/partials/header.tmpl | 10 +-- layouts/projects/single.html | 3 +- layouts/uhttpd/single.html | 147 +++++++++++++++++++++++++++++++++++++++++++ static/img/demo.png | Bin 0 -> 6220 bytes 6 files changed, 171 insertions(+), 9 deletions(-) create mode 100644 content/uhttpd.md create mode 100644 layouts/uhttpd/single.html create mode 100644 static/img/demo.png diff --git a/content/uhttpd.md b/content/uhttpd.md new file mode 100644 index 0000000..aa1097b --- /dev/null +++ b/content/uhttpd.md @@ -0,0 +1,8 @@ ++++ +date = "2016-11-18T11:10:19+02:00" +draft = false +title = "µhttpd" +type = "uhttpd" +layout = "single" + ++++ diff --git a/layouts/partials/css.tmpl b/layouts/partials/css.tmpl index 45efad7..ef7a9ca 100644 --- a/layouts/partials/css.tmpl +++ b/layouts/partials/css.tmpl @@ -1,9 +1,13 @@ {{$tmp := getenv "HUGO_TEST"}} {{if eq $tmp "1"}} - - - - + + + + + + {{ if not ($.Scratch.Get "NoCustomCSS") }} + + {{end}} {{else}} + + {{ partial "favicon.tmpl" .}} + + + + + + +
+
+
+
+

µhttpd is a self-contained instant micro web server.
+ Use it to share files from your local computer with others.

+ Download uhttpd +
+
+ + +
+
+
+
+ +
+
+
+ + + +
+
+
+ +
+
+

Installation

+

The installation of µhttpd is very straightforward. Download the precompiled binary and run it.

+

To compile from source you need a working Go environment (with cgo) and flex installed. Clone the repo and run make

+
+ View source code +
+
+ +
+
+

Usage

+

You can modify µhttpd with some simple command line flags. Run 'µhttpd -h' for more help.

+

-dir: The directory to serve. Defaults to the working directory.
+ -ip: The ip µhttpd binds to. If not given, it binds to all interfaces µhttpd finds.
+ -port: The port µhttpd will listen on.
+ -quiet: When given µhttpd will not log the access. Only error messages will be issued.
+ -disallow-upload: When given µhttpd does not allow to upload files.
+ -upload-dir: Specify the directory to save uploaded files. Defaults to the working directory.

+

To upload open /upload with your browser.

+
+
+ +
+
+

Created By

+

Written by Maximilian Möhring.

+ Read Here More +
+
+ {{partial "footer.tmpl"}} diff --git a/static/img/demo.png b/static/img/demo.png new file mode 100644 index 0000000..662de0d Binary files /dev/null and b/static/img/demo.png differ -- cgit v1.2.3