http://jmcglone.com/guides/github-pages/
a google analytics include: https://github.com/jmcglone/jmcglone.github.io/blob/master/_includes/analytics.html
....
https://github.com/blog/2104-working-with-submodules
they are a bit too predominant. just one dot? a ^ or similar?
create an _include
file to insert analytics -- like this: https://github.com/jmcglone/jmcglone.github.io/blob/master/_includes/analytics.html
https://codinfox.github.io/dev/2015/03/06/use-tags-and-categories-in-your-jekyll-based-github-pages/ http://jekyllthemes.org/
Do i need a sitemap? https://help.github.com/articles/sitemaps-for-github-pages/
https://github.com/TaylanTatli/Moon/
added a gitignore
file as learned : http://jmcglone.com/guides/github-pages/
cropped and compressed to 164KB (from 2MB)
in _config.yml
# gems
gems: [jekyll-paginate]
in index.html
the following does a few things:
- write out links to posts, the date, and the content up to the first
<!--break-->
(found this here: https://gist.github.com/mikeygee/2626538) - then it will make a paginator.
<!-- This loops through the paginated posts -->
{% for post in paginator.posts %}
<h1><a href="{{ post.url | prepend: site.baseurl }}">{{ post.title }}</a></h1>
<p class="author">
<span class="post-meta">{{ post.date | date: "%b %-d, %Y" }}</span>
</p>
<!--<div class="content">-->
{{ post.content | split:'<!--break-->' | first }} <!-- ty: https://gist.github.com/mikeygee/2626538 -->
{% if post.content contains '<!--break-->' %}
<a href="{{ post.url | prepend: site.baseurl }}">read more</a>
{% endif %}
<!--</div>-->
{% endfor %}
<!-- Pagination links -->
<div class="pagination">
{% if paginator.previous_page %}
<a href="{{ paginator.previous_page_path | prepend: site.baseurl}}" class="previous">Previous</a>
{% else %}
<span class="previous">Previous</span>
{% endif %}
<span class="page_number ">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
{% if paginator.next_page %}
<a href="{{ paginator.next_page_path | prepend: site.baseurl}}" class="next">Next</a>
{% else %}
<span class="next ">Next</span>
{% endif %}
</div>
in _layouts/post.html
<!-- ty: http://david.elbe.me/jekyll/2015/06/20/how-to-link-to-next-and-previous-post-with-jekyll.html -->
<div class="PageNavigation">
{% if page.previous.url %}
<a class="prev" href="{{page.previous.url | prepend: site.baseurl}}">« {{page.previous.title}}</a>
{% endif %}
{% if page.next.url %}
<a class="next" href="{{page.next.url | prepend: site.baseurl}}">{{page.next.title}} »</a>
{% endif %}
</div>
done! it needed prepend site.baseurl
in the links