Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

Commit

Permalink
🔥 Remove handlebars from serving admin (#593)
Browse files Browse the repository at this point in the history
refs TryGhost/Ghost#8140
refs TryGhost/Ghost#8184

- now that the admin index page is just html, we don't need handlebars anymore
- this changes the template be called .html to reflect this
  • Loading branch information
ErisDS authored and kevinansfield committed Mar 20, 2017
1 parent 8d19c13 commit 569fe05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/asset-delivery/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ module.exports = {
fs.ensureDirSync(assetsOut);

if (fs.existsSync(results.directory + '/index.min.html')) {
fs.copySync(results.directory + '/index.min.html', `${templateOutDir}/default-prod.hbs`, {overwrite: true});
fs.copySync(results.directory + '/index.min.html', `${templateOutDir}/default-prod.html`, {overwrite: true});
} else {
fs.copySync(results.directory + '/index.html', `${templateOutDir}/default.hbs`, {overwrite: true});
fs.copySync(results.directory + '/index.html', `${templateOutDir}/default.html`, {overwrite: true});
}

assets.forEach(function (relativePath) {
Expand Down

0 comments on commit 569fe05

Please sign in to comment.