title | related_posts | ||
---|---|---|---|
foo |
|
Blog post here.
wget -O Gemfile https://api.siteleaf.com/v2/sites/SITE_ID/source/Gemfile?download \ | |
--auth-no-challenge --user=API_KEY --password=API_SECRET |
title | related_posts | ||
---|---|---|---|
foo |
|
Blog post here.
--- | |
collections: | |
uploads: | |
title: Uploads | |
output: true | |
permalink: "/images/:path" # replace "images" with the name of your choice |
<ul> | |
{% assign years = site.posts | group_by: 'year' %} | |
{% for year in years %} | |
{% assign months = year.items | group_by: 'month' %} | |
{% for month in months %} | |
<li> | |
<h3>{{month.items.first.date | date:'%B %Y'}}</h3> | |
<ul> | |
{% for post in month.items %} | |
<li><time datetime="{{post.date | date_to_xmlschema}}">{{post.date | date:'%d'}}</time> <a href="{{post.url}}">{{post.title}}</a></li> |
LAST_COMMIT_EMAIL=`git log --pretty=format:"%ce" -1` | |
SITE_LEAF_EMAIL="[email protected]" | |
# Determine whether or not to run the deployment | |
if ["${LAST_COMMIT_EMAIL}" == "${SITE_LEAF_EMAIL}"] | |
then | |
echo "Commit is from Siteleaf, do nothing" | |
else | |
echo "Commit is *NOT* from Siteleaf Deploying..." | |
# execute a deployment script here |
markdown: kramdown |
markdown: redcarpet | |
redcarpet: | |
extensions: | |
- autolink | |
- fenced_code_blocks | |
- lax_spacing | |
- strikethrough | |
- superscript | |
- tables | |
- footnotes |
<html> | |
<body class="{{type}} {{slug}} {% for tag in taxonomy.tags %} {{tag.slug}} {% endfor %}> | |
<nav> | |
<a href="/blog" class="blog">Blog</a> | |
<a href="/blog/tags/apple" class="apple">Apple</a> | |
</nav> | |
</body> | |
</html> |
--- | |
--- | |
<?xml version="1.0" encoding="UTF-8"?> | |
<urlset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd" xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"> | |
{% capture site_url %}{% if site.url %}{{ site.url | append: site.baseurl }}{% else %}{{ site.github.url }}{% endif %}{% endcapture %} | |
{% for page in site.html_pages %}{% unless page.sitemap == false %} | |
<url> | |
<loc>{{ page.url | replace:'/index.html','/' | prepend: site_url }}</loc> | |
{% if page.last_modified_at %} | |
<lastmod>{{ page.last_modified_at | date_to_xmlschema }}</lastmod> |
header_menu: | |
About: "/about" | |
Departments: "/departments" | |
Contact: "/people" |