2021-01-13 18:58:23 -05:00
# Welcome to Jekyll 4.0!
#
# This config file is meant for settings that affect your whole blog, values
# which you are expected to set up once and rarely edit after that. If you find
# yourself editing this file very often, consider using Jekyll's data files
# feature for the data you need to update frequently.
#
# For technical reasons, this file is *NOT* reloaded automatically when you use
# 'bundle exec jekyll serve'. If you change this file, please restart the server process.
#
# If you need help with YAML syntax, here are some quick references for you:
# https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml
# https://learnxinyminutes.com/docs/yaml/
#
# Site settings
# These are used to personalize your new site. If you look in the HTML files,
# you will see them accessed via {{ site.title }}, {{ site.email }}, and so on.
# You can create any custom variable you would like, and they will be accessible
# in the templates via {{ site.myvariable }}.
baseurl : "/" # the subpath of your site, e.g. /blog /galacticsociety.github.io
2022-05-12 02:47:48 -04:00
url : "https://www.sharpetronics.com" # the base hostname & protocol for your site, GitHub example: https://sharpetronics.github.io
2022-07-26 21:59:19 -04:00
source : "."
2022-12-13 21:02:01 -05:00
exclude : [ scripts]
2021-01-13 18:58:23 -05:00
2022-07-26 21:59:19 -04:00
# Plugins
plugins :
- jekyll-menus
- jekyll-archives
- jekyll-paginate-v2
- jekyll/tagging
# Latent Semantic Indexing for similarity bewtween documents.
2021-01-13 18:58:23 -05:00
lsi : true
2021-03-18 15:29:27 -04:00
2022-10-15 18:28:57 -04:00
# ===================================================================================
2022-11-02 21:41:00 -04:00
# the API dashboard configuration
2022-07-26 21:59:19 -04:00
api :
2022-11-24 17:01:58 -05:00
# Ecommerce integration
shop :
# The Ecommerce Jekyll configuration
2022-11-25 15:38:36 -05:00
enabled : true # enable or disable ecommerce integration; defaults to false
2022-10-15 18:28:57 -04:00
2022-12-01 20:04:06 -05:00
# uri format: [endpoint]+[endpoint_ext]+[endpoint_param]
2022-07-26 21:59:19 -04:00
endpoint : https://dash.sharpetronics.com # url to api; no trailing slash
2022-12-01 20:04:06 -05:00
endpoint_api_auth_ext : auth/local # the ext for Strapi user authentication; no / allowed
2022-07-26 21:59:19 -04:00
endpoint_ext : /api/ # (optional) the extension of endpoint e.g. https://www.example.com/api/
2022-11-02 21:41:00 -04:00
endpoint_param : ? populate=deep # (optional) e.g. populate all json data; does not affect endpoint_uploads.
2022-11-24 17:01:58 -05:00
endpoint_uploads : uploads # the location of all media files on api; this is required for downloading images
2022-10-15 18:28:57 -04:00
2022-11-02 21:41:00 -04:00
local_media_dir : uploads/ # where to cache the images # TODO add more organization for image folder data e.g. uploads/products & post image folder
2022-10-15 18:28:57 -04:00
cache_images: true # when true (global), new or modified images are downloaded from endpoint_uploads; note : Docker is also caching downloaded images.
2021-03-18 15:29:27 -04:00
collections :
2022-10-15 18:28:57 -04:00
# the "posts" collection
posts : # required
# Collection name used to construct the url requested. Example: type `foo` would generate the following url `http://localhost:1337/foo`.
type : posts # required; used for directory creation and organizing files
filepath : '_data/posts/index.json' # the filepath for posts json hash
# the "products" collection
2022-11-02 21:41:00 -04:00
products : # optional
2022-10-15 18:28:57 -04:00
# Collection name (optional). Used to construct the url requested. Example: type `foo` would generate the following url `http://localhost:1337/foo`.
type : products # required; used for directory creation and organizing files
filepath : '_data/products/index.json' # the filepath for products json hash
2022-11-02 21:41:00 -04:00
authors : # required
# Collection name (optional). Used to construct the url requested. Example: type `foo` would generate the following url `http://localhost:1337/foo`.
type : authors # required; used for directory creation and organizing files
filepath : '_data/authors/index.json' # the filepath for products json hash
2022-10-15 18:28:57 -04:00
# ===================================================================================
2021-03-18 15:29:27 -04:00
2022-07-26 21:59:19 -04:00
# Collection configuration
# These collections will sort types of products and loop through that
2021-01-13 18:58:23 -05:00
# type to be displayed on a page. As an example, I have 10 "3D" items, all 10 items
# will be displayed when a category is selected on the product main index page.
collections_dir : collections
collections :
products :
2022-11-26 14:29:48 -05:00
output : true # Needed to generate `./_site/cupcakes/**/*.html` paths.
2022-12-07 18:18:55 -05:00
permalink : /products/:categories/:year/:month/:day/:title/
posts :
output : true
permalink : /blog/:categories/:year/:month/:day/:title/
2021-01-13 18:58:23 -05:00
2022-12-07 18:18:55 -05:00
#permalink: "/blog/:categories/:year/:month/:day/:title/" # Built in options include: date, pretty, ordinal, weekdate, none; learn more here: https://jekyllrb.com/docs/permalinks/
2021-01-13 18:58:23 -05:00
#paginate: 7
#paginate_path: "/journal/"
2022-07-26 21:59:19 -04:00
# Responsive image conversion; requires imageMagik
2021-01-13 18:58:23 -05:00
# Test with convert --version SEE: docker-compose.yml for docker container setup.
2022-07-26 21:59:19 -04:00
# Used for converting api media into webp formatting
2021-01-13 18:58:23 -05:00
picture :
source : "assets/images"
output : "assets/images/generated"
2022-07-26 21:59:19 -04:00
suppress_warnings : false
2021-01-13 18:58:23 -05:00
sass :
2022-07-26 21:59:19 -04:00
style: compressed # other style values : nested expanded compact compressed
2021-01-13 18:58:23 -05:00
sass_dir : _scss
2022-12-07 18:18:55 -05:00
# Explicitly turn off the old code
#paginate: nil
#paginate_path: nil
2022-07-26 21:59:19 -04:00
# Site configuration for the Jekyll v2 Pagination gem
2021-01-13 18:58:23 -05:00
pagination :
# Site-wide kill switch, disabled here it doesn't run at all
enabled : true
# Set to 'true' to enable pagination debugging. This can be enabled in the site config or only for individual pagination pages
debug : true
# The default document collection to paginate if nothing is specified ('posts' is default)
collection : 'posts'
# How many objects per paginated page, used to be `paginate` (default: 0, means all)
2022-06-23 20:48:09 -04:00
per_page : 9
2021-01-13 18:58:23 -05:00
# The permalink structure for the paginated pages (this can be any level deep)
2022-12-07 18:18:55 -05:00
permalink : '/page/:num.html' # Pages are index.html inside this folder (default)
2021-01-13 18:58:23 -05:00
#permalink: '/page/:num.html' # Pages are simple html files
#permalink: '/page/:num' # Pages are html files, linked jekyll extensionless permalink style.
# Optional the title format for the paginated pages (supports :title for original page title, :num for pagination page number, :max for total number of pages)
title : ':title - page :num'
# Limit how many pagenated pages to create (default: 0, means all)
limit : 0
# Optional, defines the field that the posts should be sorted on (omit to default to 'date')
sort_field : 'date'
# Optional, sorts the posts in reverse order (omit to default decending or sort_reverse: true)
sort_reverse : true
# Optional, the default category to use, omit or just leave this as 'posts' to get a backwards-compatible behavior (all posts)
category : 'posts'
# Optional, the default tag to use, omit to disable
tag : ''
# Optional, the default locale to use, omit to disable (depends on a field 'locale' to be specified in the posts,
# in reality this can be any value, suggested are the Microsoft locale-codes (e.g. en_US, en_GB) or simply the ISO-639 language code )
locale : ''
# Optional,omit or set both before and after to zero to disable.
# Controls how the pagination trail for the paginated pages look like.
trail :
before : 3
after : 1
# Optional, the default file extension for generated pages (e.g html, json, xml).
# Internally this is set to html by default
extension : html
# Optional, the default name of the index file for generated pages (e.g. 'index.html')
# Without file extension
indexpage : 'index'