use post layout by default for blog posts; use same layouts as my website
This commit is contained in:
parent
a0ec106d3d
commit
0f997ee179
@ -85,6 +85,7 @@ defaults:
|
||||
path: ""
|
||||
type: "posts"
|
||||
values:
|
||||
layout: "post"
|
||||
comments: true # add comments to all blog posts
|
||||
-
|
||||
scope:
|
||||
|
32
_layouts/base.html
Normal file
32
_layouts/base.html
Normal file
@ -0,0 +1,32 @@
|
||||
---
|
||||
common-css:
|
||||
- "/css/bootstrap.min.css"
|
||||
- "/css/main.css"
|
||||
common-ext-css:
|
||||
- "//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"
|
||||
common-googlefonts:
|
||||
- "Lora:400,700,400italic,700italic"
|
||||
- "Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"
|
||||
common-js:
|
||||
- "/js/jquery-1.11.2.min.js"
|
||||
- "/js/bootstrap.min.js"
|
||||
- "/js/main.js"
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
|
||||
{% include nav.html %}
|
||||
|
||||
{{ content }}
|
||||
|
||||
{% include footer.html %}
|
||||
|
||||
{% include footer-scripts.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
@ -1,32 +1,9 @@
|
||||
---
|
||||
common-css:
|
||||
- "/css/bootstrap.min.css"
|
||||
- "/css/main.css"
|
||||
common-ext-css:
|
||||
- "//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"
|
||||
common-googlefonts:
|
||||
- "Lora:400,700,400italic,700italic"
|
||||
- "Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800"
|
||||
common-js:
|
||||
- "/js/jquery-1.11.2.min.js"
|
||||
- "/js/bootstrap.min.js"
|
||||
- "/js/main.js"
|
||||
layout: base
|
||||
---
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
{% include head.html %}
|
||||
|
||||
<body>
|
||||
|
||||
{% include nav.html %}
|
||||
<div class="intro-header"></div>
|
||||
|
||||
<div role="main" class="container">
|
||||
{{ content }}
|
||||
|
||||
{% include footer.html %}
|
||||
|
||||
{% include footer-scripts.html %}
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</div>
|
@ -14,7 +14,7 @@ common-js:
|
||||
|
||||
<body>
|
||||
|
||||
<div role="main" class="container main-content">
|
||||
<div role="main" class="container">
|
||||
{{ content }}
|
||||
</div>
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
layout: default
|
||||
layout: base
|
||||
---
|
||||
|
||||
{% include header.html type="page" %}
|
||||
|
@ -1,5 +1,5 @@
|
||||
---
|
||||
layout: default
|
||||
layout: base
|
||||
---
|
||||
|
||||
{% include header.html type="post" %}
|
||||
|
Loading…
Reference in New Issue
Block a user