mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-06 18:09:28 +00:00
contrib/html: add a head with eworm, QR code and caption
This commit is contained in:
parent
237e04c25d
commit
c9da2423aa
4 changed files with 25 additions and 0 deletions
|
|
@ -7,6 +7,8 @@ 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)|" \
|
-e "s|__LOGO__|$(realpath --relative-to="${RELTO}" logo.png)|" \
|
||||||
|
-e "s|__EWORM__|$(realpath --relative-to="${RELTO}" general/eworm-meadow.avif)|" \
|
||||||
|
-e "s|__QR_CODE__|$(realpath --relative-to="${RELTO}" general/qr-code.png)|" \
|
||||||
< "${0}.d/head.html"
|
< "${0}.d/head.html"
|
||||||
markdown -f toc,idanchor "${1}" | sed \
|
markdown -f toc,idanchor "${1}" | sed \
|
||||||
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
|
-e 's/href="\([-_\./[:alnum:]]*\)\.md\(#[-[:alnum:]]*\)\?"/href="\1.html\2"/g' \
|
||||||
|
|
|
||||||
|
|
@ -4,3 +4,14 @@
|
||||||
<link rel="stylesheet" type="text/css" href="__STYLE__">
|
<link rel="stylesheet" type="text/css" href="__STYLE__">
|
||||||
<link rel="icon" type="image/png" href="__LOGO__">
|
<link rel="icon" type="image/png" href="__LOGO__">
|
||||||
</head><body>
|
</head><body>
|
||||||
|
<table>
|
||||||
|
<tr>
|
||||||
|
<td rowspan=2><img src="__EWORM__" alt="eworm on meadow" /></td>
|
||||||
|
<td rowspan=2><img src="__QR_CODE__" alt="QR code: rsc.eworm.de" /></td>
|
||||||
|
<td class="head-top">RouterOS Scripts</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="head-bottom">a collection of scripts for MikroTik RouterOS</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
<hr />
|
||||||
|
|
|
||||||
BIN
general/eworm-meadow.avif
Normal file
BIN
general/eworm-meadow.avif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.8 KiB |
|
|
@ -68,6 +68,18 @@ pre code {
|
||||||
span.link {
|
span.link {
|
||||||
color: #863600;
|
color: #863600;
|
||||||
}
|
}
|
||||||
|
td.head-top {
|
||||||
|
height: 48px;
|
||||||
|
vertical-align: bottom;
|
||||||
|
font-size: 250%;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
td.head-bottom {
|
||||||
|
height: 48px;
|
||||||
|
vertical-align: top;
|
||||||
|
font-size: 125%;
|
||||||
|
color: #555;
|
||||||
|
}
|
||||||
@media only screen and (orientation: landscape) {
|
@media only screen and (orientation: landscape) {
|
||||||
body {
|
body {
|
||||||
margin-left: 10vw;
|
margin-left: 10vw;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue