荷花什么季节开| 什么时候泡脚效果最好| 子宫肌瘤手术后吃什么好| 爱是什么排比句| 小囊性灶是什么意思| 100mg是什么意思| 端午节喝什么酒| 特别出演什么意思| 靓女是什么意思| 左氧氟沙星的功效是什么| 幼儿园学什么| 乳腺瘤不能吃什么| 晚上睡觉多梦是什么原因| 手指头麻木吃什么药| 绝望的绝是什么意思| 感冒流鼻涕吃什么药| 1977属什么生肖| 花容月貌是什么意思| 浑身没劲吃什么药| 穿梭是什么意思| 恒心是什么意思| 西洋参有什么作用| 世界上有什么| 石膏的主要成分是什么| 咳嗽吃什么| 艾滋病通过什么途径传播| 什么叫阴虱| 阳虚湿热吃什么中成药| 人心是什么意思| 眉毛长痘是什么原因| 喝水多尿多是什么原因| 右边脸颊长痘是什么原因| 10月30是什么星座| 蚊虫叮咬红肿用什么药| o型血rh阳性是什么意思| 什么食物含钾最高| 头疼头胀是什么原因| 少年什么意思| 1985年属牛的是什么命| 黄体破裂吃什么药| 开半挂车需要什么证| cpap是什么意思| 肥皂剧是什么| 动不动就出汗是什么原因| 心悸是什么原因造成的呢| 腱鞘炎去医院挂什么科| 一路卷风迎大年是什么生肖| 冷面是用什么面做的| 搓是什么意思| 阴间是什么意思| 清影是什么意思| 五险一金指什么| 腱鞘炎吃什么药| 智齿有什么作用| 左胳膊发麻是什么原因| 铁树开花是什么生肖| 连襟什么意思| 1959年属猪的是什么命| 补充b族维生素有什么好处| 一个金字旁一个川读什么| 尿道炎什么症状| 川字五行属什么| 直肠窝积液是什么意思| 乳糖不耐受喝什么奶粉比较好| 什么的山顶| 白带是什么样子| 导师是什么意思| 8月23号是什么星座| 维生素b12片治什么病| 虫草吃了有什么好处| 妇科炎症吃什么消炎药效果好| 狗肉和什么食物相克| twins什么意思| 为什么会黄体破裂| 空调的几匹是什么意思| 舌苔白厚吃什么药见效快| 地素女装属于什么档次| 开封有什么大学| 神经病吃什么药效果好| 办香港通行证要准备什么材料| 太阳光是什么颜色| 结婚30年是什么婚姻| 肝郁脾虚吃什么中成药| 神机妙算是什么生肖| 什么叫流年| 株连九族是什么意思| 怀孕了胃不舒服是什么原因| 寿眉茶属于什么茶| 托班是什么意思| 怀孕的最佳时间是什么时候| 感冒可以吃什么| 什么不足| 2030年属什么生肖| 女朱读什么| 6月26日是什么日子| 黄猫来家里有什么预兆| 胃胀消化不好吃什么药| 垂询是什么意思| 中午吃什么饭 家常菜| 眼白有点黄是什么原因| 腹泻吃什么水果| 表达是什么意思| 师长相当于地方什么级别| 吃什么容易胖起来| 子宫内膜双层什么意思| 溜溜是什么意思| 上火喝什么茶| 小青柑属于什么茶| 站久了腰疼是什么原因| 为什么越睡越困越疲惫| 蛟龙是什么| 小的五行属什么| 杵状指常见于什么病| 爱出者爱返福往者福来是什么意思| 艾附暖宫丸什么时候吃| 性格是什么| 肠粉是用什么材料做的| 耳朵听不清楚是什么原因| 梯子是什么| 上呼吸道感染用什么药| 姓袁女孩叫什么名字好听| 孕妇吃猕猴桃对胎儿有什么好处| 肩周炎挂什么科| 嗜酸性粒细胞偏高是什么原因| 男人本色是什么意思| 月亮为什么会有圆缺变化| 梦到捡金子首饰是什么意思| cathy什么意思| 猪脚煲汤放什么材料好| 三什么道中| 沙和尚是什么妖怪| 普贤菩萨的坐骑是什么| 文曲星是什么神仙| Mary英文名什么意思| 卑劣是什么意思| 空气炸锅可以做什么| 嘴巴长疱疹是什么原因| 锑对人体有什么危害| 肾囊肿有什么症状表现| 乌鸡蛋是什么颜色| sls是什么化学成分| 什么长而去| 一丘之貉是什么意思| 感冒去医院挂什么科| 右手大拇指抖动是什么原因| 201是什么意思| 2014年什么年| 6月1是什么星座| 愤青什么意思| 1956属什么生肖| 什么什么的太阳| vvip是什么意思| 剥苔舌是什么原因| 三鹿奶粉现在叫什么| 女兔配什么属相最好| 2010属什么| 布谷鸟什么时候叫| 筛窦炎吃什么药| 扩张是什么意思| 脚趾头抽筋是什么原因引起的| 业力是什么| bobby什么意思| 睡觉咬舌头是什么原因| 一个家庭最重要的是什么| 白果有什么功效| mr和mri有什么区别| 维生素b族适合什么人吃| 尿道口下裂是什么样子| 牙刷属于什么垃圾| 小腹胀痛吃什么药| 黄风怪是什么动物| 天女散花是什么意思| 碘伏遇到什么会变白| 拉夏贝尔属于什么档次| 洋溢着什么样的笑容| 什么人不用电| 枣子什么季节成熟| 脚底冰凉是什么原因| 攫住是什么意思| c反应蛋白高吃什么药| c3是什么意思| 喝苹果醋有什么好处和坏处| 下丘脑分泌什么激素| 什么病会吐血| 什么是穿堂风| 重中之重是什么意思| 挥霍是什么意思| 草果在炖肉起什么作用| 固执是什么意思| 苹果煮水喝有什么功效| 阴唇发黑是什么原因| 常喝黑苦荞茶有什么好处| 三羊开泰是什么生肖| 凌晨5点是什么时辰| 甘油三酯高吃什么食物好| 指甲很薄很软是为什么| 短装是什么意思| 点心是什么意思| 弼马温是什么意思| 古龙香水什么味道| 为什么筋膜炎一躺下才会疼| 头发需要什么营养| 湿罗音是什么意思| 处暑是什么意思| 罗贯中是什么朝代的| 胃大肚子大是什么原因| spect是什么检查| 麦冬有什么作用与功效| 漪字五行属什么| 沉香是什么| 黑色阔腿裤搭配什么上衣好看| 地贫是什么病| 黛力新主治什么病| 日晡潮热是什么意思| 为什么微信附近的人看不到我| 来月经不能吃什么| 红色加蓝色等于什么颜色| 孩子说话晚是什么原因是什么情况| 化妆品属于什么行业| 扁头适合什么发型| 手指甲有黑色条纹是什么原因| 贫血都有什么症状| 灵芝煮水喝有什么功效| 喝最烈的酒下一句是什么| 黄皮肤适合什么颜色的衣服| 检察院是做什么的| 冰雪什么| 血糖低会出现什么症状| 血便是什么原因引起的| 石斛有什么功效和作用| 卫戍部队是什么意思| 肺结节挂什么科室| 肚脐下方疼是什么原因| 钓鱼执法什么意思| 午安是什么意思| 上四休二是什么意思| 撒西不理是什么意思| 刀纸是什么| 蛤读什么| 为什么同房会出血| 来大姨妈喝酒有什么影响| 红皮鸡蛋和白皮鸡蛋有什么区别| 吃什么不长白头发| 梦见小男孩拉屎是什么意思| 人为什么需要诗歌| 上尉军衔是什么级别| 8.23是什么星座| 嘴巴干苦是什么原因| 腰椎间盘突出不能吃什么食物| 经常打飞机有什么危害| 今年二十岁属什么生肖| 舌苔发白是什么原因| hrd是什么职位| 正桃花是什么意思| 荨麻疹要用什么药| sby是什么意思| 2.4什么星座| honor是什么牌子手机| 血脂稠是什么原因造成的| 矿物质是什么| 什么时候闰五月| 1989年什么生肖| 马蜂长什么样| 4.7号是什么星座| 百度
Skip to content

Simple pug (jade) starter [framework] enabling faster delivery of HTML & CSS projects to a private server and/or automatic deployment of GitHub pages.

License

Notifications You must be signed in to change notification settings

marianzburlea/pug-starter

Repository files navigation

Greenkeeper badge

Pug starter

If you're looking to start a career as a Web Developer, become hireable and access top highest paying jobs on the market, visit WoW Job

Table of contents

Project file structure

.
├── README.md
├── package.json
├── src
│   ├── _asset
│   │   ├── image
│   │   │   └── become-a-web-developer-today.jpg
│   │   │   └── logo.png
│   │   └── js
│   │       └── all.js
│   │       └── game.js
│   ├── _component
│   │   ├── header
│   │   │   ├── header.pug
│   │   │   └── header.scss
│   │   ├── footer
│   │   │   ├── footer.pug
│   │   │   └── footer.scss
│   │   ├── smart-button
│   │   │   ├── smart-button.pug
│   │   │   └── smart-button.scss
│   │   ├── project-list
│   │   │   ├── project-list.pug
│   │   │   └── project-list.scss
│   │   └── layout
│   │       ├── base.pug
│   │       └── general.scss
│   ├── _data
│   │   ├── site.yml
│   │   └── user.json
│   │   ├── menu.yaml
│   │   └── article.json
│   ├── embed.scss
│   ├── favicon.ico
│   ├── index.pug <---------------- MAIN index
│   ├── style.scss <---------------- MAIN style
│   └── contact
│       └── index.pug
│   └── portfolio
│       └── index.pug
│   └── about-me
│       └── index.pug
│   └── my-first-project
│       └── index.pug
│   └── how-i-got-to-work-with-big-companies
│       └── index.pug
└── yarn.lock

baseUrl

Note: inline attribute has been updated to embed

Old way:

if config.entry.css.embed
  link(rel="stylesheet" href=`${embedPath}` inline)

New way:

if config.entry.css.embed
  link(rel="stylesheet" href=`${embedPath}` embed)

add modularCss support. When enabled in the config of package.json it will convert all SCSS/SASS files to its correspondent CSS path.

add baseurl support which can be configured for GitHub.io and custom domain. Check package.json config section for

In the end you can use baseUrl to prefix your paths like:

link(rel="stylesheet", href=`${baseUrl}/style.css`)

or

a(
  title="Is it possible?"
  target="_blank"
  href=`${baseUrl}/article/nice-weather`
)

or

img(alt="Awesome dog" width="100" href=`${baseUrl}/image/cool-dog.jpg`)

YouTube video tutorials

I want to change those tutorials to new ones using the new techniques.

To help you out even more I've put together some YouTube tutorials:

  • Install nodejs, git and github

Install nodejs, git and github

  • How to make a website for free in 3 easy steps 2017

How to make a website for free in 3 easy steps 2017 - CodeTap

  • The nightmare is finally over! HTML5 tutorial on how to build a webpage layout 2017

The nightmare is finally over! HTML5 tutorial on how to build a webpage layout 2017 - CodeTap

  • Build HTML5 website pain free tutorial for beginners 2017

Build HTML5 website pain free tutorial for beginners 2017

Starter package for pug (former jade) template based projects.

Note: an boolean option config.render.sourceFileChange has been added to the package.json. The behaviour differs based on the value:

  1. true - it renders if the source file (pug file) has been changed; This has a much much greater speed when rendering compared to the other option however it's only relevant if you make change to the current file watched by PUG. If you make a change to a file that's extended and resides in a path that contains "_", like a layout one, the change won't be reflected.
  2. false - it renders if any pug file has been changed and compares the output with the destination file (the HTML generated now with the previous generated HTML). This can be slower when the number of files increases.

Live projects built with pug-starter

If you want your project to be listed here leave a message on CodeTap on FaceBook. You're project needs to be at least version one final (no beta / alpha or work in progress) will be accepted.

Prerequisites

The project requires NodeJS v.4+

To install NodeJS visit nodejs download page download the appropiate package for your operatin system, click on the downloaded file, open it and follow the installation procees. If you don't know much about it, just click ALL the NEXT and or INSTALL buttons and choose "I agree" when prompted and you should be fine.

Installation

BEFORE YOU INSTALL: please read the prerequisites

$ npm i

or

$ npm install

Note: if you run into an pngquant-bin error on Windows try running:

npm install imagemin-pngquant@5.0.1 -D
npm install pngquant-bin@3.1.1 -D

before you run npm start

Usage

To run the project in development mode and open a local server that synchronizes across multiple devices use:

npm start

or

npm run dev

To build the project for production use:

npm run prod

To automatically deploy your project to GitHub pages and make it available at http://[your-username].github.io/[your-project-name] use:

npm run deploy

Style

The project supports both embed and external style sheets. You can have none, one or the other, or both of them.

Single page application style

When you're building a single page app or website, there is no point in having the style sheets loaded from an external file and I'll explain why: the point of loading external style sheets is to allow the browser to cache those files and once you visit another web page of the same website, instead of making another request(s) for the style sheet file(s) to the server and having to download them, if there is no change, the browser will load them from the local drive. In a single page, there is no other page to go to therefore the external file technique doesn't apply.

Multi page application style

In this scenario you can have either both embed and external or just external. The most common scenario is to have only one external style sheet file to be loaded and most of the time that's just fine.

If you want to improve your SEO and user experience even further, I strongly recommend to use a combination of both embed and external. The embed style sheet should only contain the minimum amount of styles for the initial visible part of the page to render. The rest of the styles can be put in the external CSS file.

Auto reset git

If you run npm i, the git history will get reset.

To avoid resetting the git history run npm i --ignore-scripts

痰多是什么问题 做梦笑醒了有什么征兆 一月份生日是什么星座 2016年是什么生肖 肚脐左上方是什么部位
什么样的女人旺夫 h什么意思 坚果补充什么营养成分 5月2号是什么星座 水淀粉是什么东西
什么时间吃水果比较好 胃窦糜烂是什么意思严重吗 白带是什么味道 吃什么能补血 什么是员额制
乌托邦什么意思 槿字五行属什么 骨质增生是什么症状 1995年的猪五行属什么 猫离家出走预示着什么
霉菌阴道炎用什么药mmeoe.com 五行缺金是什么意思hcv7jop9ns4r.cn 出生医学证明有什么用jasonfriends.com 高铁动车有什么区别bjhyzcsm.com 柔和是什么意思hcv8jop7ns2r.cn
弟弟的儿子叫什么fenrenren.com 疝囊是什么hcv8jop4ns2r.cn 越什么越什么的词语hcv9jop3ns2r.cn 什么不可当hcv8jop6ns8r.cn 数学专业学什么hcv8jop7ns8r.cn
乳腺结节3类什么意思hcv8jop0ns4r.cn 吃什么减肥最快hcv9jop5ns0r.cn 哺乳期什么时候来月经正常xinjiangjialails.com 六三年属什么生肖hcv8jop5ns3r.cn 孕妇生气对胎儿有什么影响hcv9jop0ns7r.cn
乙肝245阳性是什么意思hcv9jop5ns0r.cn 牙髓炎是什么hcv9jop4ns2r.cn 西瓜禁忌和什么一起吃hcv8jop9ns8r.cn 白细胞偏低有什么症状bjhyzcsm.com 孩子咽炎老是清嗓子吃什么药hcv9jop4ns9r.cn
百度