-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FR] ability to use css #31
Comments
CSS will load with |
@guest271314 I guess i should have specified that i mean for the html that darkhttpd generates for serving whatever files happen to be in a directory, not serving my theoretical custom static html files. I'm using it for an alpine linux mirror, for example. i don't have any html it's serving. My understanding is that darkhttpd is generating it's own basic html to show the directories and package tarballs, and this FR asks that the |
I'm not familiar with that option. I was just reading the source code at https://github.com/emikulic/darkhttpd/blob/master/darkhttpd.c#L1530-L1579 however I don't see a way to serve that by passing options. |
It looks like this is where the directory listing is generated Lines 1966 to 2056 in 11d36de
<style> element, then compile darkhttpd.
|
i would rather the |
You probably want This is starting to get into "darkhttpd is not intended to be a production webserver" territory though. Directory listings are meant to be quick and dirty so you can download one of a small number of files in a hurry. If you want stylized ones, at some point you should make your own and save them as a set of |
sure, my |
It sure would be nice if i could specify a external style sheet with a
--css
option or maybe<link rel="stylesheet" href="darkhttpd.css">
could just be hardcoded in the source along with an empty (or basic)darkhttpd.css
style sheet also included that could be modified by the user, if desired. I would like to specify body background, font size, colors, etc.I saw a couple places in the darkhttpd source it looks like it might could "slide on in", but i don't know C, so i'm refraining from submitting a bad guess PR. :)
thanks
The text was updated successfully, but these errors were encountered: