mirror of https://github.com/freeCodeCamp/devdocs
parent
4177026c11
commit
e5fcde09f9
@ -1,17 +1,11 @@
|
||||
// TODO: This file was created by bulk-decaffeinate.
|
||||
// Sanity-check the conversion and remove this comment.
|
||||
/*
|
||||
* decaffeinate suggestions:
|
||||
* DS102: Remove unnecessary code created because of implicit returns
|
||||
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
|
||||
*/
|
||||
app.templates.typePage = (type) => ` <h1>${type.doc.fullName} / ${
|
||||
type.name
|
||||
}</h1>
|
||||
app.templates.typePage = (type) => {
|
||||
return ` <h1>${type.doc.fullName} / ${type.name}</h1>
|
||||
<ul class="_entry-list">${app.templates.render(
|
||||
"typePageEntry",
|
||||
type.entries(),
|
||||
)}</ul> `;
|
||||
"typePageEntry",
|
||||
type.entries(),
|
||||
)}</ul> `;
|
||||
};
|
||||
|
||||
app.templates.typePageEntry = (entry) =>
|
||||
`<li><a href="${entry.fullPath()}">${$.escape(entry.name)}</a></li>`;
|
||||
app.templates.typePageEntry = (entry) => {
|
||||
return `<li><a href="${entry.fullPath()}">${$.escape(entry.name)}</a></li>`;
|
||||
};
|
||||
|
Loading…
Reference in new issue