Skip to content

Instantly share code, notes, and snippets.

View StartZeroGnu's full-sized avatar

StartZeroGnu StartZeroGnu

View GitHub Profile
~ $ mkdir new-alembic-test
~ $ cd new-alembic-test

Download demo folder

copy/paste all files from demo folder

$ jekyll new writers-zone

$ cd writers-zone

edit:

  • config.yml theme: writers-zone
  • gemfile gem "writers-zone", "~> 0.2"

$ bundle install (to install gem theme & dependencies)

@StartZeroGnu
StartZeroGnu / test-dev.md
Last active October 3, 2016 18:00
learning "gemspec" dependencies

Test development mode

Empty gems

Install bundle

Fetching: bundler-1.13.2.gem (100%)
Successfully installed bundler-1.13.2
Fetching: bundle-0.0.1.gem (100%)
@StartZeroGnu
StartZeroGnu / sitemap.xml
Created September 30, 2016 15:10
Jekyll (sitemap.xml) Template to exclude paginate folders (local build)
<!-- Forked from: https://github.com/StartZeroGnu/jekyll-sitemap/blob/master/lib/sitemap.xml -->
<!-- Add condition to exclude paginate folders -->
<?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 post in site.posts %}{% unless post.sitemap == false %}
<url>
<loc>{{ post.url | prepend: site_url | normalize_url }}</loc>
@StartZeroGnu
StartZeroGnu / demo.md
Created September 30, 2016 10:03
Demo Gist (jekyll-gist)

Jekyll Gist

This "Gist" is to show an example using "jekyll-gist" and contains 3 files

@StartZeroGnu
StartZeroGnu / how-to-package-jekyll-theme.md
Last active September 30, 2016 14:59
How to package a new theme for jekyll as a Rubygem, based on the official theme "minima"

How to: package a new (Rubygem) theme for jekyll v.3.2.1

How to package a new theme for Jekyll v.3.2.1 as RubyGem based on the official theme "minima 1.2" by Parker Moore.

I'm not a programmer, i'm not an experienced user of Jekyll, i'm just a hobbiest web development since March 2016