--- title: Welcome to J1 Template tagline: Create Your Blog description: Auto-generated Welcome Article date: 2019-01-23 21:03:57 +0100 tags: [ Example, Post ] categories: featured image: /assets/images/blog/featured/welcome-to-j1-template.jpg regenerate: false --- // TODO: For POSTS, cuurently the include:: macro does NOT work. // Path calculation needes to be fixec (includes the document file name) // ----------------------------------------------------------------------------- // NOTE: General Asciidoc page attributes settings // ----------------------------------------------------------------------------- :page-liquid: // Additional Asciidoc page attributes goes here // ----------------------------------------------------------------------------- :page-imagesdir: {{page.images.dir}} :wikipedia-article: https://en.wikipedia.org/wiki/Geography_of_Minneapolis // Liquid procedures // ----------------------------------------------------------------------------- {% capture set_env_entry_document %}themes/{{site.template.name}}/procedures/global/set_env_entry_document.proc{%endcapture%} // Initialize entry document paths // ----------------------------------------------------------------------------- {% include {{set_env_entry_document}} init_folders=all %} // Place the page OR category image (if configured) // ----------------------------------------------------------------------------- {% unless page.image %} {% if page.images.category-image.size > 0 %} {% assign page.image = page.images.category-image %} {% endif %} {% endunless %} // Load tags and urls // ----------------------------------------------------------------------------- // include::{includedir}/attributes.asciidoc[tag=tags] // include::{includedir}/attributes.asciidoc[tag=urls] // include::{includedir}/attributes.asciidoc[tag=data] // NOTE: Place an excerpt at the most top position // ----------------------------------------------------------------------------- Welcome to Jekyll and J1 Template! You’ll find this example post, automatically generated, in *featured* posts folder under /collections/posts/public/featured/_posts. Go ahead and edit and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. lorem:sentences[5] [role="clearfix mb-3"] excerpt__end // Page content // ----------------------------------------------------------------------------- [[readmore]] == Add new posts // Place the page OR category image (if configured) // {% unless page.image %} {% if page.images.category-image.size > 0 %} {% assign page.image = page.images.category-image %} {% endif %} {% endunless %} [role="mb-3"] image::{{page.image}}[{{page.title}}] To add new posts, simply add a file in the directory `/collections/posts/public/featured/_posts` that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Have a look at the source for this post to get an idea about how it works. Happy Jekylling!