mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-07 10:29:29 +00:00
contrib/html: link the logo with relative path
This commit is contained in:
parent
843f6b41f6
commit
dc879b6798
2 changed files with 2 additions and 1 deletions
|
|
@ -7,6 +7,7 @@ RELTO="$(dirname "${1}")"
|
||||||
sed \
|
sed \
|
||||||
-e "s|__TITLE__|$(head -n1 "${1}")|" \
|
-e "s|__TITLE__|$(head -n1 "${1}")|" \
|
||||||
-e "s|__STYLE__|$(realpath --relative-to="${RELTO}" general/style.css)|" \
|
-e "s|__STYLE__|$(realpath --relative-to="${RELTO}" general/style.css)|" \
|
||||||
|
-e "s|__LOGO__|$(realpath --relative-to="${RELTO}" logo.png)|" \
|
||||||
< "${0}.d/head.html"
|
< "${0}.d/head.html"
|
||||||
|
|
||||||
markdown -f toc,idanchor "${1}" | sed \
|
markdown -f toc,idanchor "${1}" | sed \
|
||||||
|
|
|
||||||
|
|
@ -2,5 +2,5 @@
|
||||||
<head><title>RouterOS Scripts :: __TITLE__</title>
|
<head><title>RouterOS Scripts :: __TITLE__</title>
|
||||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||||
<link rel="stylesheet" type="text/css" href="__STYLE__">
|
<link rel="stylesheet" type="text/css" href="__STYLE__">
|
||||||
<link rel="icon" href="/logo.png" type="image/png">
|
<link rel="icon" type="image/png" href="__LOGO__">
|
||||||
</head><body>
|
</head><body>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue