Documents existing image path functionality for blog posts.

-- updates wallet hero links
This commit is contained in:
Chuck Williams 2017-02-02 02:01:35 -07:00
parent a9349dd78c
commit ead15adb8a
5 changed files with 38 additions and 6 deletions

View file

@ -106,3 +106,10 @@ image: /assets/images/2016/05/Node40-banner.jpg
title: New website for Node40 title: New website for Node40
description: Check out the new website for Node40 description: Check out the new website for Node40
``` ```
###Blog Post Images
Image paths for blogs are currently relative to /{language}/assets/img/blog by default. If we replaced the image path from the front matter above with:
```
image: MyImage.jpg
```
... will look for `"MyImage.jpg"` in the `/assets/img/blog` folder.

View file

@ -1,7 +1,7 @@
--- ---
author: tungfa author: tungfa
layout: post layout: post
image: image: #CoPayWalletcopy.jpg #not currently working with language posts. Needs resolution.
title: "Copay-Dash Wallet (Testnet só / RC 0.1)" title: "Copay-Dash Wallet (Testnet só / RC 0.1)"
--- ---
Estou feliz em anunciar uma versão “Release Candidate” da Copay-Dash, uma carteira Copay que foi desenvolvida pela Bitpay. Estou feliz em anunciar uma versão “Release Candidate” da Copay-Dash, uma carteira Copay que foi desenvolvida pela Bitpay.

View file

@ -15,9 +15,9 @@
<h1 class="hero__title">{% t pages.wallets.hero-heading %}</h1> <h1 class="hero__title">{% t pages.wallets.hero-heading %}</h1>
<div class="hero__buttons"> <div class="hero__buttons">
<a href="#" class="btn-white-solid">{% t pages.wallets.hero-wallets-btn %}</a> <a href="#wallets" class="btn-white-solid">{% t pages.wallets.hero-wallets-btn %}</a>
<a href="#" class="btn-white-solid">{% t pages.wallets.hero-guide-btn %}</a> <a href="https://dashpay.atlassian.net/wiki/pages/viewpage.action?pageId=1146941" target="_blank" class="btn-white-solid">{% t pages.wallets.hero-guide-btn %}</a>
<a href="#" class="btn-white-solid">{% t pages.wallets.hero-security-btn %}</a> <a href="https://dashpay.atlassian.net/wiki/pages/viewpage.action?pageId=31326247" target="_blank" class="btn-white-solid">{% t pages.wallets.hero-security-btn %}</a>
</div> </div>
</div> </div>

View file

@ -5,4 +5,29 @@ Where YEAR is a four-digit number, MONTH and DAY are both two-digit numbers, and
2011-12-31-new-years-eve-is-awesome.md 2011-12-31-new-years-eve-is-awesome.md
2011-12-31-new-years-eve-is-awesome.html 2011-12-31-new-years-eve-is-awesome.html
2012-09-12-how-to-write-a-blog.textile 2012-09-12-how-to-write-a-blog.textile
## Writing a Blog Post
Blog posts can be written in MarkDown (*.md) or HTML (*.html).
Posts need to be saved in the `_posts` directory and the filename must always start with YYYY-MM-DD-
For example: `2016-05-12-new-website.md`
###Front matter
The top page of every post should contain the following (Example):
```
author: perry
layout: post
image: Node40-banner.jpg
title: New website for Node40
description: Check out the new website for Node40
```
###Blog Post Images
Image paths for blogs are currently relative to {language}/assets/img/blog by default. If we replaced the image path from the front matter above with:
```
image: MyImage.jpg
```
... will look for `"MyImage.jpg"` in the `/{language}/assets/img/blog` folder.

View file

@ -24,7 +24,7 @@ description: pages.wallets.description
<div class="page page--wallets"> <div class="page page--wallets">
<section class="section"> <section class="section">
<div class="section__content"> <div class="section__content">
<h3>{% t pages.wallets.wallets-desktop-header %}</h3> <h3 id="wallets">{% t pages.wallets.wallets-desktop-header %}</h3>
<p>{% t pages.wallets.wallets-desktop-subtitle %}</p> <p>{% t pages.wallets.wallets-desktop-subtitle %}</p>
<ul id="wallet-os-tabs" class="nav2 nav-tabs"> <ul id="wallet-os-tabs" class="nav2 nav-tabs">
{% for os-sequence in desktop-os-order-list %} {% for os-sequence in desktop-os-order-list %}