fixed some minor things i think, code highlighting can come later :)
This commit is contained in:
parent
1b9100866b
commit
647b25bedb
1 changed files with 8 additions and 2 deletions
10
noter.sh
10
noter.sh
|
@ -1,5 +1,9 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# noter 1.1.5 - "tired tire tried" - @k@layer8.space - mit
|
# noter 1.1.6 - "i forgor" - @k@layer8.space - mit
|
||||||
|
|
||||||
|
showgenerator="true"
|
||||||
|
backtotop="true"
|
||||||
|
lastupdated="true"
|
||||||
|
|
||||||
nlog() {
|
nlog() {
|
||||||
local ORANGE='\033[0;33m'
|
local ORANGE='\033[0;33m'
|
||||||
|
@ -41,6 +45,7 @@ generate_note_html() {
|
||||||
sed -i "s|<img src=\"$img\"|<img src=\"$img\" loading=\"lazy\"|g" "$1"
|
sed -i "s|<img src=\"$img\"|<img src=\"$img\" loading=\"lazy\"|g" "$1"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "<a name='$(basename "$1" .txt)'></a>"
|
echo "<a name='$(basename "$1" .txt)'></a>"
|
||||||
echo "<div class='note'>"
|
echo "<div class='note'>"
|
||||||
if [ "$2" = true ]; then
|
if [ "$2" = true ]; then
|
||||||
|
@ -114,7 +119,7 @@ echo "<!DOCTYPE html>
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
code {
|
code {
|
||||||
color: orange !important;
|
color: orange;
|
||||||
font-family: 'Courier New', monospace;
|
font-family: 'Courier New', monospace;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
@ -152,6 +157,7 @@ checksetting "<div class='generated-with'>generated with <a href='https://git.sr
|
||||||
checksetting "<div class='back-to-top'><a href='#'>Back to Top</a></div>" "$backtotop"
|
checksetting "<div class='back-to-top'><a href='#'>Back to Top</a></div>" "$backtotop"
|
||||||
checksetting "<div class='last-updated'>last Updated: $(date +"%Y-%m-%d %H:%M:%S")</div>" "$lastupdated"
|
checksetting "<div class='last-updated'>last Updated: $(date +"%Y-%m-%d %H:%M:%S")</div>" "$lastupdated"
|
||||||
|
|
||||||
|
|
||||||
echo "</div>
|
echo "</div>
|
||||||
</body>
|
</body>
|
||||||
</html>" >>"$output_file"
|
</html>" >>"$output_file"
|
||||||
|
|
Reference in a new issue