Remove tags / duplicate url from exported info script

The tags are not used currently.
Adding the query string to the urls doesn't make sense as far as I understand
it.
This commit is contained in:
Maximilian Krög
2020-07-19 17:12:58 +02:00
parent 07a7031d48
commit 9844483364
3 changed files with 1 additions and 5 deletions

View File

@@ -113,7 +113,7 @@
<a jugl:attributes="href example.link" class="example bg-light border rounded"> <a jugl:attributes="href example.link" class="example bg-light border rounded">
<span class="mainlink"> <span class="mainlink">
<strong><span jugl:replace="example.title">title</span></strong><br> <strong><span jugl:replace="example.title">title</span></strong><br>
<small jugl:content="'(' + example.example + ')'"></small> <small jugl:content="'(' + example.link + ')'"></small>
</span> </span>
<p class="description" jugl:content="example.shortdesc"></p> <p class="description" jugl:content="example.shortdesc"></p>
</a> </a>

View File

@@ -98,9 +98,6 @@
} }
window.addEventListener('load', function () { window.addEventListener('load', function () {
for (let i = 0; i < info.examples.length; ++i) {
info.examples[i].link += window.location.search;
}
template = new jugl.Template('template'); template = new jugl.Template('template');
target = document.getElementById('examples'); target = document.getElementById('examples');
const params = parseParams(); const params = parseParams();

View File

@@ -193,7 +193,6 @@ class ExampleBuilder {
const examples = exampleData.map((data) => { const examples = exampleData.map((data) => {
return { return {
link: data.filename, link: data.filename,
example: data.filename,
title: data.title, title: data.title,
shortdesc: data.shortdesc, shortdesc: data.shortdesc,
tags: data.tags, tags: data.tags,