User-customizable CSS (when translating to HTML) #9

Closed
opened 2021-06-03 20:16:18 +00:00 by f · 1 comment
Contributor

The assets/styles.css path is hardcoded (https://code.rocketnine.space/tslocum/twins/src/branch/master/serve_https.go#L33), and I see no way to overwrite this with my own styles.css. Is there a way to manipulate the CSS (and even the HTML)? Maybe add a way to overwrite the styles with a file in the root?

The ```assets/styles.css``` path is hardcoded (https://code.rocketnine.space/tslocum/twins/src/branch/master/serve_https.go#L33), and I see no way to overwrite this with my own styles.css. Is there a way to manipulate the CSS (and even the HTML)? Maybe add a way to overwrite the styles with a file in the ```root```?
tslocum changed title from Change style.css to User-customizable CSS (when translating to HTML) 2021-06-04 01:19:21 +00:00
tslocum added the
enhancement
label 2021-06-04 01:19:26 +00:00
Author
Contributor

I've added a configuration option styles (per host/domain because /assets/styles.css has no path component to use) to overwrite the styles response.

I've added a configuration option ```styles``` (per host/domain because ```/assets/styles.css``` has no path component to use) to overwrite the styles response.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/twins#9
No description provided.