-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JEKYLL #5
Comments
Test tags and Filters{% assign posts_by_lang = site.posts | group_by: "lang" %} FiltersInspect Jsonify Operations
Modulo Returns the remainder of a division operation.
Return |
SnippetsSwitch/case {% case d %}
{% when '1' or '21' or '31' %}vai
{% else %}zio
{% endcase %} Titlecase string {% assign words = include.string | split: ' ' %}
{% capture titlecase %}{% for word in words %}{{ word | capitalize }} {% endfor %}{% endcapture %}
{{ titlecase }} Page scripts {% capture pagescript_url %}/assets/javascript/pagescripts/{{ page.title }}.js{% endcapture %}
{% for static_file in site.static_files %}
{% if static_file.path == pagescript_url %}
<script src="{{ pagescript_url | absolute_url }}" defer></script>
{% endif %}
{% endfor %} Table of contents
Default value Loop real pages A subset of {% for p in site.html_pages %}
{{ p.path }}
{% endfor %} Main navigation with <nav>
{% assign navigation_pages = site.html_pages | sort: 'navigation_weight' %}
{% for p in navigation_pages %}
{% if p.navigation_weight %}
<a href="{{ p.url | absolute_url }}" {% if p.url == page.url %}class="active"{% endif %}>{{ p.title | upcase }}</a>
{% endif %}
{% endfor %}
<a href="" class="float-right">Login</a>
</nav> Escape entity Breadcrumb Easy {% if page.excerpt %}
{{ page.excerpt | strip_html | strip_newlines | truncate: 160 }}
{% else %}
{{ site.description }}
{% endif %} Not shown on root page. {% unless site.show_breadcrumb == false %}
{% unless page.url == '/' %}
<nav><a href="{{ site.baseurl }}/">Home</a> ▸
{% if page.path contains '_posts' %}
<a href="{{ site.baseurl }}/blog/">Blog</a> ▸
{% endif %}
{% if page.parent %}
{% for p in site.pages %}
{% if p.title == page.parent %}
<a href="{{ site.baseurl }}{{ p.url }}">{{ p.title }}</a> ▸
{% endif %}
{% endfor %}
{% endif %}
{{ page.title }}</nav>
{% endunless %}
{% endunless %} Collection folder hierarchy menu {% assign url_parts = page.url | split: '/' %}
{% assign url_parts_size = url_parts | size %}
{% assign rm = url_parts | last %}
{% assign base_url = page.url | replace: rm %}
<ul>
{% for node in site.pages %}
{% if node.url contains base_url %}
{% assign node_url_parts = node.url | split: '/' %}
{% assign node_url_parts_size = node_url_parts | size %}
{% assign filename = node_url_parts | last %}
{% if url_parts_size == node_url_parts_size and filename != 'index.html' %}
<li><a href='{{node.url}}'>{{node.title}}</a></li>
{% endif %}
{% endif %}
{% endfor %}
</ul>
{
"layout": "default",
"title": "Loop for i in (1..10) with forloop.",
"content": "...",
"dir": "/jekyll/loops/",
"name": "loops.md",
"path": "jekyll/loops.md",
"url": "/jekyll/loops/"
} |
ArraysOperators https://gattiecani.github.io/renderizer/jekyll/array/
Check if array {% if item.first %}
Array
{% else %}
String or empty Array
{% endif %}
{% var1.first %} // return `nil`
{% var2.first %} // return a Array size {{ array.size }} Define and populate an Array talk.jekyllrb, stackoverflow {% assign myarray = "" | split: "" | push: "toto" %} |
Configuration
# for repository
url: //username.github.io/repository
# or url:
# empty
baseurl: /repository
# for orgs and personal both empty
# gems
# Feed: <head>{% feed_meta %}</head>
# Github: Expose {{ site.github }} array: {% assign cosa = site.github.public_repositories[8] %}
repository: username/repository
gems:
- jekyll-feed
- jekyll-sitemap
- jekyll-coffeescript
- jekyll-github-metadata
- jekyll-titles-from-headings # A Jekyll plugin to pull the page title from the first Markdown heading when none is specified.
- jekyll-default-layout # Silently sets default layouts for Jekyll pages and posts
- jekyll-readme-index # A Jekyll plugin to render a project's README as the site's index
- jekyll-optional-front-matter #Any Markdown file in your site's source will be treated as a Page and rendered as HTML, even if it doesn't have YAML front matter.
- jekyll-mentions # @mentionable support for your Jekyll site
# Timezone
# Expose {{ site.time }} at compile
timezone: Europe/Rome
permalink: pretty # or permalink: /:categories/:title/
markdown: kramdown
kramdown:
auto_ids: true
sass:
sass_dir: _sass
# style: compressed Default values with scope defaults:
-
scope:
path: "pages" # an empty string here means all files in the project
values:
layout: "default"
navigation_weight: 0 # for navigation
comments: false # for parliamone |
Jekyll GitHub metadatagem:
- jekyll-github-metadata Available repository metadata "NWO" stands for "name with owner." It is GitHub lingo for the username of the owner of the repository plus a forward slash plus the name of the repository, e.g. 'parkr/blog', where 'parkr' is the owner and 'blog' is the repository name. {
"versions": {
"jekyll": <version>,
"kramdown": <version>,
"liquid": <version>,
"maruku": <version>,
"rdiscount": <version>,
"redcarpet": <version>,
"RedCloth": <version>,
"jemoji": <version>,
"jekyll-mentions": <version>,
"jekyll-redirect-from": <version>,
"jekyll-sitemap": <version>,
"github-pages": <version>,
"ruby": <version>"
},
"hostname": "github.com",
"pages_hostname": "github.io",
"api_url": "https://api.github.com",
"environment": "dotcom",
"public_repositories": [ Repository Objects ],
"organization_members": [ User Objects ],
"build_revision": "cbd866ebf142088896cbe71422b949de7f864bce",
"project_title": "metadata-example",
"project_tagline": "A GitHub Pages site to showcase repository metadata",
"owner_name": "github",
"owner_url": "https://github.com/github",
"owner_gravatar_url": "https://github.com/github.png",
"repository_url": "https://github.com/github/metadata-example",
"repository_nwo": "github/metadata-example",
"repository_name": "metadata-example",
"zip_url": "https://github.com/github/metadata-example/zipball/gh-pages",
"tar_url": "https://github.com/github/metadata-example/tarball/gh-pages",
"clone_url": "https://github.com/github/metadata-example.git",
"releases_url": "https://github.com/github/metadata-example/releases",
"issues_url": "https://github.com/github/metadata-example/issues",
"wiki_url": "https://github.com/github/metadata-example/wiki",
"language": null,
"is_user_page": false,
"is_project_page": true,
"show_downloads": true,
"url": "http://username.github.io/metadata-example", // (or the CNAME)
"contributors": [ User Object ],
"releases": [ Release Objects ]
} User Object {
"login": "petrosh",
"id": 4997583,
"avatar_url": "https://avatars.githubusercontent.com/u/4997583?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/petrosh",
"html_url": "https://github.com/petrosh",
"followers_url": "https://api.github.com/users/petrosh/followers",
"following_url": "https://api.github.com/users/petrosh/following{/other_user}",
"gists_url": "https://api.github.com/users/petrosh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/petrosh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/petrosh/subscriptions",
"organizations_url": "https://api.github.com/users/petrosh/orgs",
"repos_url": "https://api.github.com/users/petrosh/repos",
"events_url": "https://api.github.com/users/petrosh/events{/privacy}",
"received_events_url": "https://api.github.com/users/petrosh/received_events",
"type": "User",
"site_admin": false,
"contributions": 1
} Repository Object {
"id": 77236282,
"name": "basic",
"full_name": "fork-n-play/basic",
"owner": {
"login": "fork-n-play",
"id": 13919820,
"avatar_url": "https://avatars.githubusercontent.com/u/13919820?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/fork-n-play",
"html_url": "https://github.com/fork-n-play",
"followers_url": "https://api.github.com/users/fork-n-play/followers",
"following_url": "https://api.github.com/users/fork-n-play/following{/other_user}",
"gists_url": "https://api.github.com/users/fork-n-play/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fork-n-play/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fork-n-play/subscriptions",
"organizations_url": "https://api.github.com/users/fork-n-play/orgs",
"repos_url": "https://api.github.com/users/fork-n-play/repos",
"events_url": "https://api.github.com/users/fork-n-play/events{/privacy}",
"received_events_url": "https://api.github.com/users/fork-n-play/received_events",
"type": "Organization",
"site_admin": false
},
"private": false,
"html_url": "https://github.com/fork-n-play/basic",
"description": "Basic framework for development.",
"fork": false,
"url": "https://api.github.com/repos/fork-n-play/basic",
"forks_url": "https://api.github.com/repos/fork-n-play/basic/forks",
"keys_url": "https://api.github.com/repos/fork-n-play/basic/keys{/key_id}",
"collaborators_url": "https://api.github.com/repos/fork-n-play/basic/collaborators{/collaborator}",
"teams_url": "https://api.github.com/repos/fork-n-play/basic/teams",
"hooks_url": "https://api.github.com/repos/fork-n-play/basic/hooks",
"issue_events_url": "https://api.github.com/repos/fork-n-play/basic/issues/events{/number}",
"events_url": "https://api.github.com/repos/fork-n-play/basic/events",
"assignees_url": "https://api.github.com/repos/fork-n-play/basic/assignees{/user}",
"branches_url": "https://api.github.com/repos/fork-n-play/basic/branches{/branch}",
"tags_url": "https://api.github.com/repos/fork-n-play/basic/tags",
"blobs_url": "https://api.github.com/repos/fork-n-play/basic/git/blobs{/sha}",
"git_tags_url": "https://api.github.com/repos/fork-n-play/basic/git/tags{/sha}",
"git_refs_url": "https://api.github.com/repos/fork-n-play/basic/git/refs{/sha}",
"trees_url": "https://api.github.com/repos/fork-n-play/basic/git/trees{/sha}",
"statuses_url": "https://api.github.com/repos/fork-n-play/basic/statuses/{sha}",
"languages_url": "https://api.github.com/repos/fork-n-play/basic/languages",
"stargazers_url": "https://api.github.com/repos/fork-n-play/basic/stargazers",
"contributors_url": "https://api.github.com/repos/fork-n-play/basic/contributors",
"subscribers_url": "https://api.github.com/repos/fork-n-play/basic/subscribers",
"subscription_url": "https://api.github.com/repos/fork-n-play/basic/subscription",
"commits_url": "https://api.github.com/repos/fork-n-play/basic/commits{/sha}",
"git_commits_url": "https://api.github.com/repos/fork-n-play/basic/git/commits{/sha}",
"comments_url": "https://api.github.com/repos/fork-n-play/basic/comments{/number}",
"issue_comment_url": "https://api.github.com/repos/fork-n-play/basic/issues/comments{/number}",
"contents_url": "https://api.github.com/repos/fork-n-play/basic/contents/{+path}",
"compare_url": "https://api.github.com/repos/fork-n-play/basic/compare/{base}…{head}",
"merges_url": "https://api.github.com/repos/fork-n-play/basic/merges",
"archive_url": "https://api.github.com/repos/fork-n-play/basic/{archive_format}{/ref}",
"downloads_url": "https://api.github.com/repos/fork-n-play/basic/downloads",
"issues_url": "https://api.github.com/repos/fork-n-play/basic/issues{/number}",
"pulls_url": "https://api.github.com/repos/fork-n-play/basic/pulls{/number}",
"milestones_url": "https://api.github.com/repos/fork-n-play/basic/milestones{/number}",
"notifications_url": "https://api.github.com/repos/fork-n-play/basic/notifications{?since,all,participating}",
"labels_url": "https://api.github.com/repos/fork-n-play/basic/labels{/name}",
"releases_url": "https://api.github.com/repos/fork-n-play/basic/releases{/id}",
"deployments_url": "https://api.github.com/repos/fork-n-play/basic/deployments",
"created_at": "2016-12-23 16:06:38 UTC",
"updated_at": "2016-12-23 16:06:38 UTC",
"pushed_at": "2016-12-23 16:06:39 UTC",
"git_url": "git://github.com/fork-n-play/basic.git",
"ssh_url": "[email protected]:fork-n-play/basic.git",
"clone_url": "https://github.com/fork-n-play/basic.git",
"svn_url": "https://github.com/fork-n-play/basic",
"homepage": null,
"size": 0,
"stargazers_count": 0,
"watchers_count": 0,
"language": null,
"has_issues": true,
"has_downloads": true,
"has_wiki": true,
"has_pages": true,
"forks_count": 0,
"mirror_url": null,
"open_issues_count": 0,
"forks": 0,
"open_issues": 0,
"watchers": 0,
"default_branch": "master"
} Release object {
"url": "https://api.github.com/repos/fork-n-play/basic/releases/5043998",
"assets_url": "https://api.github.com/repos/fork-n-play/basic/releases/5043998/assets",
"upload_url": "https://uploads.github.com/repos/fork-n-play/basic/releases/5043998/assets{?name,label}",
"html_url": "https://github.com/fork-n-play/basic/releases/tag/v0.1",
"id": 5043998,
"tag_name": "v0.1",
"target_commitish": "master",
"name": "Login and Fork updates working",
"draft": false,
"author": {
"login": "petrosh",
"id": 4997583,
"avatar_url": "https://avatars.githubusercontent.com/u/4997583?v=3",
"gravatar_id": "",
"url": "https://api.github.com/users/petrosh",
"html_url": "https://github.com/petrosh",
"followers_url": "https://api.github.com/users/petrosh/followers",
"following_url": "https://api.github.com/users/petrosh/following{/other_user}",
"gists_url": "https://api.github.com/users/petrosh/gists{/gist_id}",
"starred_url": "https://api.github.com/users/petrosh/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/petrosh/subscriptions",
"organizations_url": "https://api.github.com/users/petrosh/orgs",
"repos_url": "https://api.github.com/users/petrosh/repos",
"events_url": "https://api.github.com/users/petrosh/events{/privacy}",
"received_events_url": "https://api.github.com/users/petrosh/received_events",
"type": "User",
"site_admin": false
},
"prerelease": true,
"created_at": "2016-12-31 17:00:42 UTC",
"published_at": "2016-12-31 17:08:27 UTC",
"assets": [],
"tarball_url": "https://api.github.com/repos/fork-n-play/basic/tarball/v0.1",
"zipball_url": "https://api.github.com/repos/fork-n-play/basic/zipball/v0.1",
"body": ""
} |
ImagesExtract the first image from a post Max Glenister {% assign images = post.content | split:"<img " %}
{% for image in images %}
{% if image contains 'src=' %}
{% assign imageMarkup = image | split:">" | first %}
<img {{ imageMarkup }}>
{% break %}
{% endif %}
{% endfor %} Images talk.jekyllrb {% include image.html file="filename" type="jpg" url="image-url" alt="alt-text" caption="the-caption" border="true" %} Parameters:
<figure>
{% if {{include.url}} %}<a target="_blank" href="{{include.url}}">{% endif %}
<img class="docimage {% if {{include.border}} == "true" %}border{% endif %}" src="{{site.image_path}}{{include.file}}.{{include.type}}" alt="{{include.alt}}" />
{% if {{include.url}} %}</a>{% endif %}
<figcaption>{{include.caption}}</figcaption>
</figure> Then add two classes to your stylesheet: Also, in your configuration file, For translated images, store your images in a different folder and change the basepath to that translated image folder appropriately in the translated project's config file. |
Tags and categoriesScan all pges for tags and cats {% assign every_page = '' | split: '' %}
{% for p in site.html_pages %}{% assign every_page = every_page | push: p %}{% endfor %}
{% for d in site.documents %}{% assign every_page = every_page | push: d %}{% endfor %}
`group_by: 'tags'`
{% assign tags = every_page | group_by: 'tags' %}
{% for t in tags %}- {{t.name|remove:'['|remove:']'|remove:'"'|remove:' '|split:','|inspect}} {% for d in t.items %}
- title: {{d.title}}, url: {{d.url}}, collection: {{d.collection}}, cat: {{d.categories}}{% endfor %}
{% endfor %}
`group_by: 'categories'`
{% assign categories = every_page | group_by: 'categories' %}
{% for c in categories %}- {{c.name|remove:'['|remove:']'|remove:'"'|remove:' '|split:','|inspect}}{% for d in c.items %}
- title: {{d.title}}, url: {{d.url}}, collection: {{d.collection}}, tags: {{d.tags}}
{% endfor %}
{% endfor %} Articles by tags <h1>Articles by tag: {{ page.tag }}</h1>
<div>
{% if site.tags[page.tag] %}
{% for post in site.tags[page.tag] %}
<a href="{{ post.url }}/">{{ post.title }}</a>
{% endfor %}
{% else %}
<p>There are no posts for this tag.</p>
{% endif %}
</div> Search categories {% for category in site.categories %}
{% assign nposts = category | last | size %}
<div class="collection" data-name="{{ category | first | escape }}" hidden>
<h1>{{ category | first }}</h1>
<h2>{{ nposts }} post{% if nposts != 1 %}s{% endif %}</h2>
<ul>
{% for posts in category %}
{% for post in posts %}
{% if post.title %}
<li><a href="{{ post.url }}">{{ post.title }}</a></li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</div>
{% endfor %}
|
SubmodulesExamples
git submodule add https://github.com/petrosh/submodules-posts _posts
git submodule update --remote --merge
git commit -am "ok" && git push |
For loopsReverse loop {% assign array = include.file_name | split: '/' | reverse %} Indexes {% for i in (1..10) %}
- `i` – {{ i }}
- `length` – {{ forloop.length }}
- `index` – {{ forloop.index }}
- `index0` – {{ forloop.index0 }}
- `rindex` – {{ forloop.rindex }}
- `rindex0` – {{ forloop.rindex0 }}
- `first` – {{ forloop.first }}
- `last` – {{ forloop.last }}
{% endfor %} Display unless last item {% unless forloop.last %}something{% endunless %} Optionals arguments
Index for nested loops {% assign marker_index = 0 %}
{% for m in markers %}
{% for l in m.locations %}
{% capture marker_index %}{{ marker_index | plus: 1 }}{% endcapture %}
{% endfor %}
{% endfor %} No items {% for item in items %}
{{ item.title }}
{% else %}
There are no items!
{% endfor %} |
DatesUpdated page date and time Updated {{ site.time | date_to_rfc822 }} timezone: Europe/Rome
Updated repository {% assign updated = site.github.public_repositories | where: "html_url", site.github.repository_url | first | map: "updated_at" | first | date_to_xmlschema %}
{{ updated }}
Assign a date {% assign default_date = 'now' | date: '%FT%X' %}
The current time (when you run the
jekyll-liquid-date-formatting-examples <!-- Whitespace added for readability -->
{% assign d = page.date | date: "%-d" %}
{{ page.date | date: "%B" }}
{% case d %}
{% when '1' or '21' or '31' %}{{ d }}st
{% when '2' or '22' %}{{ d }}nd
{% when '3' or '23' %}{{ d }}rd
{% else %}{{ d }}th
{% endcase %},
{{ page.date | date: "%Y" }} Article minutes read {{ content | number_of_words | divided_by: 225 | round }} minute read Date format
|
CSS<style media="screen" type="text/css">
{%- capture inline_css -%}{% include page/inline.sass %}{%- endcapture -%}
{{ inline_css | sassify }}
</style> Set CSS styles in configuration
colors:
- link_color: "#4078c0"
---
---
$links_color: {% for c in site.colors %}{{c.link_color}}{% endfor %} Include and sassify <!--
Include SASS from _inculdes and sassify to CSS
-->
<style type="text/css">
{% capture include_to_sassify %}{% include maps/2d.sass %}{% endcapture %}
{{ include_to_sassify | sassify }}
</style> |
ThemesRemote themeRemote themes in the form of OWNER/REPOSITORY must represent a GitHub-hosted, Gem-based Jekyll theme.
Options If you don't specify a Git ref, the
Examples
Issues
remote_theme: owner/name Create newYou will pack these files:
Css
@import "{{ site.theme }}"; Screenshot
Push
To release a new version of your theme, update the version number in the gemspec file Links
Examples
|
JSONIFY---
layout: nil
---
[
{% for post in site.posts %}
{
"title" : "{{ post.title }}",
"url" : "{{ post.url }}",
"date" : "{{ post.date | date: "%B %d, %Y" }}",
"content" : "{{ post.content | escape }}"
}{% unless forloop.last %},{% endunless %}
{% endfor %}
] APIList <h1 class="page-heading">Products</h1>
<ul class="post-list">
{% for p in site.data.products %}
<li>{{ p.name }} at {{p.price}}</li>
{% endfor %}
</ul>
---
layout: null
---
{{ site.data.products | jsonify }} Filter
---
layout: null
---
{{ site.data.products | sort: "qty" | reverse | jsonify }} |
Update
Today
Then the golden moment
Autoprefixer drama
|
CSV and TablesTable from CSV data files. {%- if include.file == nil or include.file == '' -%}
Missing `file="..."`
{%- else -%}
{%- if site.data[include.file].first == nil -%}
`{{ include.file }}` is not CSV
{%- else -%}
{% for item in site.data[include.file] %}{% if forloop.first %}|{% for head in item %}{{ head[0] }}|{% endfor %}
|{% for head in item %}:---|{% endfor %}
{% endif %}|{% for value in item %}{{ value[1] }}|{% endfor %}
{% endfor %}
{%- endif -%}
{%- endif -%} Table from Page Front Matter ---
title: Home
table:
-
date: 2020-01-02
header: value
num: 3
"%": 3
-
date: 2023-01-02
header: ciro
num: 54
"%": 54
--- |
Posts propertiessite.posts:
"date": "2023-01-13 00:00:00 +0100",
"id / url": "/2023/01/13/colors",
"title": "Colors",
"slug": "colors",
"ext": ".md",
"collection": "posts",
"layout": "default",
"categories": [],
"tags": [],
"draft": false,
"excerpt": "{html}",
"content": "{html}"
"relative_path / path": "_posts/2023-01-13-colors.md" |
Build Time Articles
Liquid
Kill jekyll process
Links
Files
URL
data-*
inhead
tagCanonical URL
What's new in GitHub Pages with Jekyll 3.3
{{ "/about/" | absolute_url }}
User and Organizazion pages
http://user-org.github.io
={{ site.github.url }}
user-org.github.io
={{ site.github.project_title }}
Project pages
/project
http://user-org.github.io/project
={{ site.github.url }}
project
={{ site.github.project_title }}
Selectors
Check current environment
There are a couple of ways to do this. If you’re hosting your site on GitHub then the best way is to wrap your code or HTML inside:
GitHub creates this environment variable on its servers.
Code highlight syntax
The text was updated successfully, but these errors were encountered: