Skip to content

Commit

Permalink
chore(build): only put one banner in css file
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Apr 3, 2014
1 parent 75e74cc commit 12b25dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ gulp.task('sass', function(done) {
}
}))
.pipe(concat('ionic.css'))
.pipe(header(banner))
.pipe(gulp.dest(buildConfig.distCss))
.pipe(gulpif(IS_RELEASE_BUILD, minifyCss()))
.pipe(rename({ extname: '.min.css' }))
Expand Down Expand Up @@ -273,12 +272,13 @@ gulp.task('docs-index', function() {
path = '/blog/' + path.substring(19).replace('.html', '/');
}

var parser;
if(pageData.search_sections === true) {
// each section within the content should be its own search result
var section = { body: '', title: '' };
var isTitleOpen = false;

var parser = new htmlparser.Parser({
parser = new htmlparser.Parser({
ontext: function(text){
if(isTitleOpen) {
section.title += text; // get the title of this section
Expand Down Expand Up @@ -310,7 +310,7 @@ gulp.task('docs-index', function() {
} else {
// index the entire page
var body = '';
var parser = new htmlparser.Parser({
parser = new htmlparser.Parser({
ontext: function(text){
body += text.replace(/{%.*%}/, '', 'g'); // Ignore any Jekyll expressions
}
Expand Down

0 comments on commit 12b25dc

Please sign in to comment.