From 37410a9ddf2eb90361974fd676bd0558dcad3ffa Mon Sep 17 00:00:00 2001 From: Jason Lenny Date: Tue, 29 Jan 2019 08:25:52 +0000 Subject: Add Pages templates Adds templates for the 5 most popular Pages templates to the new project menu. This does not add unique icons for the templates because that turned out more complicated than expected, and this feature is valuable without them. --- app/assets/javascripts/projects/project_new.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'app/assets/javascripts/projects') diff --git a/app/assets/javascripts/projects/project_new.js b/app/assets/javascripts/projects/project_new.js index 998554d1be5..9ca1a26b3ac 100644 --- a/app/assets/javascripts/projects/project_new.js +++ b/app/assets/javascripts/projects/project_new.js @@ -125,6 +125,26 @@ const bindEvents = () => { text: 'Spring', icon: '.template-option svg.icon-java-spring', }, + hugo: { + text: 'Pages/Hugo', + icon: '.template-option svg.icon-pages-hugo', + }, + jekyll: { + text: 'Pages/Jekyll', + icon: '.template-option svg.icon-pages-jekyll', + }, + plainhtml: { + text: 'Pages/Plain HTML', + icon: '.template-option svg.icon-pages-plainhtml', + }, + gitbook: { + text: 'Pages/GitBook', + icon: '.template-option svg.icon-pages-gitbook', + }, + hexo: { + text: 'Pages/Hexo', + icon: '.template-option svg.icon-pages-hexo', + }, }; const selectedTemplate = templates[value]; -- cgit v1.2.3