proofed changes
This commit is contained in:
parent
f2696c1c4c
commit
ae0b13b531
|
@ -117,9 +117,9 @@ The organizations can then be accessed via `site.data.orgs`, followed by the fil
|
||||||
|
|
||||||
## Example: Accessing a specific author
|
## Example: Accessing a specific author
|
||||||
|
|
||||||
Pages and posts can also access a specific item. The example below shows how to access a specific item:
|
Pages and posts can also access a specific data item. The example below shows how to access a specific item:
|
||||||
|
|
||||||
'_data/peoplejekyll.yml':
|
'_data/peoplejekyll.yml`:
|
||||||
{% highlight yaml %}
|
{% highlight yaml %}
|
||||||
dave:
|
dave:
|
||||||
name: David Smith
|
name: David Smith
|
||||||
|
@ -136,7 +136,11 @@ author: dave
|
||||||
---
|
---
|
||||||
|
|
||||||
{% assign author = site.data.people.[page.author] %}
|
{% assign author = site.data.people.[page.author] %}
|
||||||
<a rel="author" href="{{ author.twitter }}" title="{{ author.name }}">author.name</a>
|
<a rel="author"
|
||||||
|
href="{{ author.twitter }}"
|
||||||
|
title="{{ author.name }}">
|
||||||
|
{{author.name}}
|
||||||
|
</a>
|
||||||
|
|
||||||
{% endraw %}
|
{% endraw %}
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
Loading…
Reference in New Issue