I hereby claim:
- I am budparr on github.
- I am budparr (https://keybase.io/budparr) on keybase.
- I have a public key whose fingerprint is 9DDE D468 81E7 3D62 C315 1F12 FFD4 EFBD AF91 5796
To claim this, I am signing this object:
Add this to your config.yml file: | |
``` | |
include: | |
- _pages | |
``` | |
and then, if you want the filename to be your permalink (without the _pages in the url), do this: in config.yml, add this to your defaults: | |
``` | |
- scope: | |
path: '_pages' | |
values: |
csplit -k -n 3 export.txt '/^@@@/' {'999'}; for i in xx*; do sed -i '' 's/@@@/---/g' $i; done; for i in xx*; do mv $i `egrep -m1 -e 'slug:.*' $i | sed -e s/[^\]\[A-Za-z0-9~.,_{}\(\)\'\-\+]/-/g -e s/slug--//`.md; done |
I hereby claim:
To claim this, I am signing this object:
{% assign events = "" | split: "|" %} | |
{% for item in site.posts %} | |
{% assign current_date = site.time | date: "%Y%m%d" %} | |
{% assign postdate = item.date | date: "%Y%m%d" %} | |
{% if postdate > current_date %} | |
{% assign events = events | push: item %} | |
{% endif %} | |
{% endfor %} |
<!-- code --> |
//control widows, ala www.css-tricks.com/preventing-widows-in-post-titles/ | |
$("ID").each(function() { | |
var wordArray = $(this).text().split(" "); | |
if (wordArray.length > 1) { | |
wordArray[wordArray.length-2] += " " + wordArray[wordArray.length-1]; | |
wordArray.pop(); | |
$(this).html(wordArray.join(" ")); | |
} | |
}); |
{{ range first 3 (where (where .Site.Pages.ByDate.Reverse "Section" "posts") ".Title" "!=" .Title) }} | |
<!-- latest posts --> | |
{{ end }} |
{{ define "main" }} | |
{{ $.Scratch.Add "boxClasses" "dt flex center pt0 pb3 pv3-m pv3-ns" }} | |
{{ $.Scratch.Add "boxCopyClasses" "db dtc-ns v-mid w-100 w-75-ns" }} | |
{{ $.Scratch.Add "boxImageClasses" "db dtc-ns v-mid-ns w-25" }} | |
{{ $.Scratch.Add "ImageClasses" "w-100" }} | |
<main class="cf pa3 pa4-m pa5-l mw9 w-60-l center"> | |
<h2> | |
{{ .Title }} | |
</h2> |
.Site.Pages = All the Pages (note the capital P) in the site. | |
.Data.Pages: All the Pages for the given Node (sections, taxonomies). This will be a subset of the above for all other nodes than the home page: On that Node I believe these slices are the same. |