Inject CSS before </head> and simplify title replacement
This commit is contained in:
1 parent
be78979792
commit
20be88f6e7
1 file changed
+2
-4
+2
-4
@@ -34,7 +34,5 @@ COPY assets/custom.css /app/code/librechat/client/dist/assets/custom.css
|
|||||||
# Insert the CSS link after the title tag
|
# Insert the CSS link after the title tag
|
||||||
RUN sed -i '/<title>Inference Co-op<\/title>/a <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html
|
RUN sed -i '/<title>Inference Co-op<\/title>/a <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html
|
||||||
|
|
||||||
# Browser-tab title (index.html is baked at build; sed no-ops harmlessly if
|
# Insert custom CSS link before closing </head>
|
||||||
# the upstream markup ever changes)
|
RUN sed -i '/<\/head>/i <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html
|
||||||
RUN sed -i 's|<title>LibreChat</title>|<title>Inference Co-op</title>|' /app/code/librechat/client/dist/index.html && \
|
|
||||||
sed -i '/<title>Inference Co-op<\/title>/a <link rel="stylesheet" href="assets/custom.css">' /app/code/librechat/client/dist/index.html
|
|
||||||
Reference in new issue
Block a user