commit fd8508f79444f69b5ed12c35de3fd59186c5298f
parent 63554b615421e91354430b0c1d009cb49b6d2884
Author: oscarbenedito <oscar@obenedito.org>
Date:   Sun,  8 Mar 2020 18:26:38 +0100

JavaScript sources now hosted on the website

Diffstat:
Darchetypes/default.md | 6------
Mcontent/jsweblabels.html | 14+++-----------
Alayouts/shortcodes/js-label.html | 7+++++++
3 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/archetypes/default.md b/archetypes/default.md @@ -1,6 +0,0 @@ ---- -title: "{{ replace .Name "-" " " | title }}" -categories: -tags: -draft: true # Remember to state the date in file name before commiting! ---- diff --git a/content/jsweblabels.html b/content/jsweblabels.html @@ -16,18 +16,10 @@ type: page </tr> </thead> <tbody> + {{< js-label asset="js/main.js" license-slug="GNU-AGPL-3.0-or-later" license-url="http://www.gnu.org/licenses/agpl-3.0.html" >}} + {{< js-label asset="js/composer.js" license-slug="GNU-AGPL-3.0-or-later" license-url="http://www.gnu.org/licenses/agpl-3.0.html" >}} <tr> - <td><a href="/js/main.min.js">main.min.js</a></td> - <td><a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU-AGPL-3.0-or-later</a></td> - <td><a href="https://gitlab.com/oscarbenedito/oscarbenedito.com/raw/master/assets/js/main.js">main.js</a></td> - </tr> - <tr> - <td><a href="/js/composer.min.js">composer.min.js</a></td> - <td><a href="http://www.gnu.org/licenses/agpl-3.0.html">GNU-AGPL-3.0-or-later</a></td> - <td><a href="https://gitlab.com/oscarbenedito/oscarbenedito.com/raw/master/assets/js/composer.js">composer.js</a></td> - </tr> - <tr> - <td><a href="/mathjax/tex-chtml.js">tex-chtml.js</a></td> + <td><a href="/js/mathjax/tex-chtml.js">/js/mathjax/tex-chtml.js</a></td> <td><a href="http://www.apache.org/licenses/LICENSE-2.0">Apache-2.0-only</a></td> <td><a href="https://github.com/mathjax/MathJax-src/">MathJax source code</a></td> </tr> diff --git a/layouts/shortcodes/js-label.html b/layouts/shortcodes/js-label.html @@ -0,0 +1,7 @@ +<tr> + {{ $js := resources.Get (.Get "asset") | resources.Minify -}} + <td><a href="{{ $js.RelPermalink }}">{{ $js.RelPermalink }}</a></td> + <td><a href="{{ .Get "license-url" }}">{{ .Get "license-slug" }}</a></td> + {{ $js := resources.Get (.Get "asset") -}} + <td><a href="{{ $js.RelPermalink }}">{{ $js.RelPermalink }}</a></td> +</tr>