mirror of
https://github.com/yuzu-emu/yuzu-emu.github.io.git
synced 2024-11-30 12:14:19 +01:00
Added twitter to gulp script.
This commit is contained in:
parent
ee438545e0
commit
aa2c1b8ef1
11
gulpfile.js
11
gulpfile.js
@ -22,7 +22,8 @@ gulp.task('default', ['start:setup'], callback => {
|
||||
});
|
||||
|
||||
gulp.task('all', ['start:setup'], callback => {
|
||||
runSequence(['assets:js', 'assets:scss'],
|
||||
runSequence(['scripts:twitter'],
|
||||
['assets:js', 'assets:scss'],
|
||||
'hugo',
|
||||
'assets:images',
|
||||
finalCommand,
|
||||
@ -49,6 +50,14 @@ gulp.task('start:setup', () => {
|
||||
util.log(`process.env.HUGO_BASEURL = '${process.env.HUGO_BASEURL}'`);
|
||||
});
|
||||
|
||||
gulp.task('scripts:twitter', callback => {
|
||||
exec(`cd ./scripts/shared-hugo-scripts/twitter/ && npm install && node app.js`, (err, stdout, stderr) => {
|
||||
console.log(stdout);
|
||||
console.log(stderr);
|
||||
callback(err);
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task('assets:images', () => {
|
||||
const baseImages = gulp.src(`build/images/*`, {base: './'})
|
||||
.pipe(gulp.dest('./'));
|
||||
|
@ -3,7 +3,7 @@
|
||||
<div class="container">
|
||||
<section class="section">
|
||||
<div class="columns is-multiline">
|
||||
{{ range .Site.Data.twitter }}
|
||||
{{ range sort .Site.Data.twitter "order" }}
|
||||
<div class="column is-one-third">
|
||||
{{ partial "widget/tweet.html" . }}
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user