This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// task:nunjucks | |
gulp.task('nunjucks', function(){ | |
return gulp.src(paths.src.html + '**/*.njk') | |
.pipe(data(function(){ | |
return require(paths.src.json); | |
})) | |
.pipe(nunjucks({ | |
path: paths.src.template | |
})) | |
.pipe(gulp.dest(paths.dest.root)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data" : { | |
"sitename" : "sample site", | |
"meta" : { | |
"description" : "", | |
"keywords" : "" | |
}, | |
"og" : { | |
"type" : "article", | |
"image" : "/assets/img/ogp/og-def-01.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// task:nunjucks | |
gulp.task('nunjucks', function(){ | |
return gulp.src(paths.src.html + '**/*.njk') | |
.pipe(nunjucks({ | |
path: paths.src.template | |
})) | |
.pipe(gulp.dest(paths.dest.root)) | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const gulp = require('gulp'); | |
const nunjucks = require('gulp-nunjucks-render'); | |
const data = require('gulp-data'); | |
const beautify = require('gulp-html-beautify'); | |
const brsync = require('browser-sync'); | |
const paths = { | |
'src' : { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* BacklogからCPIへのデプロイスクリプト(https://gist.github.com/hissy/6a114d0d9a85f3338aed) | |
* 上記に対し、Gitのサブディレクトリ(/html)のみをデプロイするよう改変しました。 | |
*/ | |
// CPIユーザーID(契約情報で確認してください) | |
$user_id = 'abc123defg'; | |
// Gitレポジトリの位置の指定(固定で[.git]) | |
$git_dir = '/usr/home/' . $user_id . '/.git'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Apache2.4系 VirtualDocumentRootを使う場合の設定 | |
UseCanonicalName Off | |
<virtualhost *:80> | |
VirtualDocumentRoot "c:/var/www/%0/html" | |
</virtualhost> | |
<directory "c:/var/www/*/html"> | |
Require all granted | |
</directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Apache2.4系 通常のバーチャルホスト設定 | |
<VirtualHost *:80> | |
DocumentRoot "c:/var/www/dev.sample1.local/html" | |
ServerName dev.sample1.local | |
ErrorLog "logs/sample1-error.log" | |
CustomLog "logs/sample1-access.log" common | |
<Directory "c:/var/www/dev.sample1.local/html"> | |
Require all granted | |
</Directory> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="header" class="l-header"> | |
<ul class="navGlobal"> | |
<li><a href="/">HOME</a></li> | |
<li><a href="/works/">実績紹介</a></li> | |
<li><a class="is-active" href="/company/">企業情報</a></li> | |
<li><a href="/recruit/">採用情報</a></li> | |
<li><a href="/news/">ニュース</a></li> | |
<li><a href="/contact/">お問い合わせ</a></li> | |
</ul> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body @@((second!='') ? 'class="t-'+global+'-'+second+'"' : 'class="t-'+global+'"')@@> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<!-- InstanceParam name="global" type="text" value="company" --> | |
<!-- InstanceParam name="second" type="text" value="message" --> | |
<!-- InstanceParam name="col2" type="boolean" value="true" --> | |
</head> |