mirror of
https://github.com/caddyserver/website.git
synced 2025-04-21 20:46:15 -04:00
More homepage/features content, screenshots, tweaks
This commit is contained in:
parent
5819cf9e5a
commit
616cc0eff1
46 changed files with 744 additions and 98 deletions
|
@ -8,8 +8,16 @@ const resp = fetch("/resources/testimonials.json").then(async resp => {
|
|||
const tpl = cloneTemplate('#tpl-testimonial');
|
||||
$('.testimonial-picture', tpl).src = testimonial.picture || "";
|
||||
$('.testimonial-quote', tpl).innerText = `"${testimonial.quote}"`;
|
||||
$('.testimonial-name', tpl).innerText = testimonial.name || "";
|
||||
if (testimonial.username) {
|
||||
$('.testimonial-name', tpl).innerText = ` @${testimonial.username}`;
|
||||
} else {
|
||||
$('.testimonial-name', tpl).innerText = testimonial.name || "";
|
||||
}
|
||||
$('.testimonial-role', tpl).innerText = testimonial.role || "";
|
||||
if (testimonial.org) {
|
||||
$('.testimonial-role', tpl).appendChild(document.createElement("br"));
|
||||
$('.testimonial-role', tpl).appendChild(document.createTextNode(testimonial.org));
|
||||
}
|
||||
$(`.testimonial-col:nth-child(${i%3 + 1})`).append(tpl);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue