From 45c2378ec42c2f5cb8903aa0834708b6e8c20391 Mon Sep 17 00:00:00 2001 From: "Jan \"Yenya\" Kasprzak" Date: Sun, 21 Nov 2021 00:15:31 +0100 Subject: [PATCH] New favicon, external highlight js --- config.yml.sample | 7 +++- paste.pl | 4 +- public/img/shebang-favicon.svg | 67 ++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+), 3 deletions(-) create mode 100644 public/img/shebang-favicon.svg diff --git a/config.yml.sample b/config.yml.sample index 94aea6b..6cc937f 100644 --- a/config.yml.sample +++ b/config.yml.sample @@ -1,5 +1,10 @@ --- # Password for uploads. If not set, uploads should be done by other means, # such as direct writing to data directory -password: change_this +# password: change_this +# +# Public URL under which is this app available # base: https://external.name/prefix +# +# This paste bin name, used in and <h1> of the app pages: +# appname: My Very Precious Files diff --git a/paste.pl b/paste.pl index 6c25fde..fbbb0cc 100755 --- a/paste.pl +++ b/paste.pl @@ -90,8 +90,8 @@ __DATA__ %= content_for header => begin <base href="<%= config->{base} %>/"> - <link rel="stylesheet" href="highlight/qtcreator-dark.min.css"> - <script src="highlight/highlight.min.js"></script> + <link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/qtcreator-dark.min.css"> + <script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js"></script> <script>hljs.highlightAll();</script> % end diff --git a/public/img/shebang-favicon.svg b/public/img/shebang-favicon.svg new file mode 100644 index 0000000..edaa582 --- /dev/null +++ b/public/img/shebang-favicon.svg @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> + +<svg + width="19.977722mm" + height="19.977722mm" + viewBox="0 0 19.977721 19.977721" + version="1.1" + id="svg5" + inkscape:version="1.1 (c68e22c387, 2021-05-23)" + sodipodi:docname="shebang-favicon.svg" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns="http://www.w3.org/2000/svg" + xmlns:svg="http://www.w3.org/2000/svg"> + <sodipodi:namedview + id="namedview7" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + inkscape:pagecheckerboard="0" + inkscape:document-units="mm" + showgrid="false" + fit-margin-top="0" + fit-margin-left="0" + fit-margin-right="0" + fit-margin-bottom="0" + inkscape:zoom="2.6832492" + inkscape:cx="31.118988" + inkscape:cy="30.932647" + inkscape:window-width="1835" + inkscape:window-height="1050" + inkscape:window-x="65" + inkscape:window-y="0" + inkscape:window-maximized="1" + inkscape:current-layer="layer1" + inkscape:snap-page="true" /> + <defs + id="defs2" /> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1" + transform="translate(-54.566994,-97.950165)"> + <rect + style="fill:#000000;fill-opacity:1;stroke:none;stroke-width:2.02904;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1" + id="rect12949" + width="19.977722" + height="19.977722" + x="54.566994" + y="97.950165" + ry="0.53685528" /> + <text + xml:space="preserve" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.1792px;line-height:125%;font-family:'DejaVu Sans Mono';-inkscape-font-specification:'DejaVu Sans Mono Bold';text-align:start;letter-spacing:0px;word-spacing:0px;text-anchor:start;fill:#00ffff;fill-opacity:1;stroke:none;stroke-width:0.536849px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" + x="55.853409" + y="114.1199" + id="text781"><tspan + sodipodi:role="line" + id="tspan779" + style="font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;font-size:17.1792px;font-family:'DejaVu Sans Mono';-inkscape-font-specification:'DejaVu Sans Mono Bold';fill:#00ffff;stroke-width:0.536849px" + x="55.853409" + y="114.1199">#!</tspan></text> + </g> +</svg> -- 2.43.0