add scripts and clean up code
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
oDinZu 2022-12-13 21:02:01 -05:00
parent 71c5e7462d
commit 8c367e80dd
45 changed files with 2507 additions and 102 deletions

View File

@ -1,8 +1,8 @@
---
# This software configures the virtual machine environment with Gitea and Drone services, builds the Jekyll app, then, securely packages and transports that app to a designated service provider or VPS on the fly.
# Copyright (C) SharpeTronics, LLC, 2013-2023
# Copyright (C) SharpeTronics LLC, 2013-PRESENT
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics LLC,
# Author(s): SharpeTronics LLC
# License: GPLv3
# Version: 1.6
@ -10,7 +10,7 @@
# will be followed up with GPL enforcement via Software Freedom Law Center:
# https://www.softwarefreedom.org/
# If you incorporate or include any code from SharpeTronics, LLC,, your
# If you incorporate or include any code from SharpeTronics LLC, your
# code must be licensed as GPLv3 (not GPLv2 or MIT)
# The GPLv3 software license applies to the code directly included in this source distribution.
@ -18,21 +18,13 @@
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, LLC,
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics LLC,
# software on a *case-by-case* basis, for an agreed upon price. Please email
# info@sharpetronics.com.
# If you would like to contribute to this code, please follow GPLv3 guidelines.
# as an example, after making changes to the software (Called a Fork) and credit the original copyright holder as the creator with your credit added to theirs.
# An example trigger of the repo and master branch push
#trigger:
# branch:
# - master
# repo:
# - sharpetronics/sharpetronics.com
kind: pipeline
type: docker
name: build
@ -140,34 +132,30 @@ steps:
- rsync -aXvPzr --omit-dir-times --chown=www-data:rsync-users --chmod=775 -e ssh ../_site/* $SSH_USER@$SSH_HOST:/var/www/sharpetronics.com/html/
# create tar.gz of _site directory for download elsewhere
- tar -czf ../www-data_sharpetronics.tar.gz ../_site/*
- chmod 775 ../www-data_sharpetronics.tar.gz
- chown www-data:www-data ../www-data_sharpetronics.tar.gz
#- tar -czf ../www-data_sharpetronics.tar.gz ../_site/*
#- chmod 775 ../www-data_sharpetronics.tar.gz
#- chown www-data:www-data ../www-data_sharpetronics.tar.gz
# size of the file in bytes
- tar -tzvf ../www-data_sharpetronics.tar.gz | sed 's/ \+/ /g' | cut -f3 -d' ' | sed '2,$s/^/+ /' | paste -sd' ' | bc
- ls ../ww*
#- tar -tzvf ../www-data_sharpetronics.tar.gz | sed 's/ \+/ /g' | cut -f3 -d' ' | sed '2,$s/^/+ /' | paste -sd' ' | bc
#- ls ../ww*
# add download.tar.gz of files from download.sharpetronics.com
# a = archive v=verbose z=compress r=recursive -e=env
- rsync -avz --chmod=775 -e ssh ../www-data_sharpetronics.tar.gz $SSH_USER@$SSH_HOST:/var/www/downloads.sharpetronics.com/html/sharpetronics.com/
#______________________
#< Who you Gonna Call >
#----------------------
# \ __---__
# _- /--______
# __--( / \ )XXXXXXXXXXX\v.
# .-XXX( O O )XXXXXXXXXXXXXXX-
# /XXX( U ) XXXXXXX\
# /XXXXX( )--_ XXXXXXXXXXX\
# /XXXXX/ ( O ) XXXXXX \XXXXX\
# XXXXX/ / XXXXXX \__ \XXXXX
# XXXXXX__/ XXXXXX \__---->
# ---___ XXX__/ XXXXXX \__ /
# \- --__/ ___/\ XXXXXX / ___--/=
# \-\ ___/ XXXXXX '--- XXXXXX
# \-\/XXX\ XXXXXX /XXXXX
# \XXXXXXXXX \ /XXXXX/
# \XXXXXX > _/XXXXX/
# -XXXXXXXX--------------- XXXXXX-
#
#- rsync -avz --chmod=775 -e ssh ../www-data_sharpetronics.tar.gz $SSH_USER@$SSH_HOST:/var/www/downloads.sharpetronics.com/html/sharpetronics.com/
# _ _ _
# ___| |_ __ _ _ __ | |_ _ __ ___| | __
# / __| __/ _` | '__| | __| '__/ _ \ |/ /
# \__ \ || (_| | | | |_| | | __/ <
# |___/\__\__,_|_| \__|_| \___|_|\_\
# _______----_______
# ___---~~~~~.. ... .... ... ..~~~~~---___
# _ ==============================================
# __________________________ - .. .. _--~~~~~-------____-------~~~~~
#(______________________][__)____ -
# / /______---~~~.. .. ..~~-_~
# <_______________________________-
# ~~~~~~~-----__ __-
# ~~~~~~~~~~~
# U S S E N T E R P R I S E N C C - 1 7 0 1 - D

View File

@ -1,6 +1,6 @@
# Copyright (C) SharpeTronics, LLC, 2013-2023
# Copyright (C) SharpeTronics LLC, 2013-PRESENT
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, LLC,
# Author(s): SharpeTronics LLC
# License: GPLv3
# Version: 1.6
@ -8,7 +8,7 @@
# will be followed up with GPL enforcement via Software Freedom Law Center:
# https://www.softwarefreedom.org/
# If you incorporate or include any code from SharpeTronics, LLC,, your
# If you incorporate or include any code from SharpeTronics LLC, your
# code must be licensed as GPLv3 (not GPLv2 or MIT)
# The GPLv3 software license applies to the code directly included in this source distribution.
@ -16,9 +16,10 @@
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, LLC,
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics LLC,
# software on a *case-by-case* basis, for an agreed upon price. Please email
# info@sharpetronics.com.
# If you would like to contribute to this code, please follow GPLv3 guidelines.
# as an example, after making changes to the software (Called a Fork) and credit the original copyright holder as the creator with your credit added to theirs.

13
LICENSE
View File

@ -1,15 +1,14 @@
# This software is coded in Ruby and gathers all collection types from an API and saves that data into the Jekyll _data/.. folder; a including, secure integration that allows for Ecommerce with Stripe.
# Copyright (C) SharpeTronics, Inc. 2013-2023
# Copyright (C) SharpeTronics LLC, 2013-PRESENT
# Author(s): Charles Sharpe(@odinzu_me)
# Author(s): SharpeTronics LLC
# License: GPLv3
# Version: 1
# Version: 1.6
# This is Free Software released under GPLv3. Any misuse of this software
# will be followed up with GPL enforcement via Software Freedom Law Center:
# https://www.softwarefreedom.org/
# If you incorporate or include any code from SharpeTronics, Inc., your
# If you incorporate or include any code from SharpeTronics LLC, your
# code must be licensed as GPLv3 (not GPLv2 or MIT)
# The GPLv3 software license applies to the code directly included in this source distribution.
@ -17,8 +16,8 @@
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, Inc.
# software on a *case-by-case* basis, for an agreed upon price. Please contact
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics LLC,
# software on a *case-by-case* basis, for an agreed upon price. Please email
# info@sharpetronics.com.
# If you would like to contribute to this code, please follow GPLv3 guidelines.

View File

@ -21,6 +21,7 @@
baseurl: "/" # the subpath of your site, e.g. /blog /galacticsociety.github.io
url: "https://www.sharpetronics.com" # the base hostname & protocol for your site, GitHub example: https://sharpetronics.github.io
source: "."
exclude: [scripts]
# Plugins
plugins:
@ -142,32 +143,3 @@ pagination:
# Optional, the default name of the index file for generated pages (e.g. 'index.html')
# Without file extension
indexpage: 'index'
# Exclude from processing.
# The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to
# the internal "default list".
#
# Excluded items can be processed by explicitly listing the directories or
# their entries' file path in the `include:` list.
exclude:
# - .sass-cache/
# - .jekyll-cache/
# - gemfiles/
# - Gemfile
# - Gemfile.lock
# - node_modules/
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
# Reading extra files
# Every file or directory beginning with the following characters: ., _ , # or ~
# in the source directory will not be included in the destination folder. Such
# paths will have to be explicitly specified via the config file in the include
# directive to make sure theyre copied over:
include:
# - _pages

View File

@ -8,12 +8,25 @@
* \/_____/\/_/\/_/\/__/\/_/\/_/ \ \ \/ \/____/ \/_/\/_/\/___/ \/_/\/_/\/_/\/____/\/___/
* \ \_\
* \/_/
Owner: @odinzu_me (Charles Sharpe)
Designer: @ajlkn, @csharpe_me
Developer: @ajlkn, @csharpe_me
Editor: @odinzu_me
Engineering: @odinzu_me
Quality Assurance: @odinzu_me
_______----_______
___---~~~~~.. ... .... ... ..~~~~~---___
_ ==============================================
__________________________ - .. .. _--~~~~~-------____-------~~~~~
(______________________][__)____ -
/ /______---~~~.. .. ..~~-_~
<_______________________________-
~~~~~~~-----__ __-
~~~~~~~~~~~
U S S E N T E R P R I S E N C C - 1 7 0 1 - D
Owner: SharpeTronics LLC
Designer: SharpeTronics LLC
Developer: SharpeTronics LLC
Editor: SharpeTronics LLC
Engineering: SharpeTronics LLC
Quality Assurance: SharpeTronics LLC
-->
<head>

View File

@ -1,15 +1,15 @@
# This software gathers all collection types from an API or headless CMS, then saves that data into the Jekyll _data/ folder.
# Copyright (C) SharpeTronics, LLC, 2013-2023
# Copyright (C) SharpeTronics LLC, 2013-PRESENT
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, LLC,
# Author(s): SharpeTronics LLC
# License: GPLv3
# Version: 1.7
# Version: 1.6
# This is Free Software released under GPLv3. Any misuse of this software
# will be followed up with GPL enforcement via Software Freedom Law Center:
# https://www.softwarefreedom.org/
# If you incorporate or include any code from SharpeTronics, LLC,, your
# If you incorporate or include any code from SharpeTronics LLC, your
# code must be licensed as GPLv3 (not GPLv2 or MIT)
# The GPLv3 software license applies to the code directly included in this source distribution.
@ -17,7 +17,7 @@
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, LLC,
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics LLC,
# software on a *case-by-case* basis, for an agreed upon price. Please email
# info@sharpetronics.com.

View File

@ -1,15 +1,15 @@
# This software generates mardown formatted posts from json data.
# Copyright (C) SharpeTronics, LLC, 2013-2023
# Copyright (C) SharpeTronics LLC, 2013-PRESENT
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, LLC,
# Author(s): SharpeTronics LLC
# License: GPLv3
# Version: 1.7
# Version: 1.6
# This is Free Software released under GPLv3. Any misuse of this software
# will be followed up with GPL enforcement via Software Freedom Law Center:
# https://www.softwarefreedom.org/
# If you incorporate or include any code from SharpeTronics, LLC,, your
# If you incorporate or include any code from SharpeTronics LLC, your
# code must be licensed as GPLv3 (not GPLv2 or MIT)
# The GPLv3 software license applies to the code directly included in this source distribution.
@ -17,7 +17,7 @@
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, LLC,
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics LLC,
# software on a *case-by-case* basis, for an agreed upon price. Please email
# info@sharpetronics.com.

View File

@ -1,7 +1,7 @@
# This software generates mardown formatted products from json data.
# Copyright (C) SharpeTronics, LLC, 2013-2023
# Copyright (C) SharpeTronics LLC, 2013-PRESENT
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, LLC,
# Author(s): SharpeTronics LLC
# License: GPLv3
# Version: 1.6
@ -9,7 +9,7 @@
# will be followed up with GPL enforcement via Software Freedom Law Center:
# https://www.softwarefreedom.org/
# If you incorporate or include any code from SharpeTronics, LLC,, your
# If you incorporate or include any code from SharpeTronics LLC, your
# code must be licensed as GPLv3 (not GPLv2 or MIT)
# The GPLv3 software license applies to the code directly included in this source distribution.
@ -17,7 +17,7 @@
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, LLC,
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics LLC,
# software on a *case-by-case* basis, for an agreed upon price. Please email
# info@sharpetronics.com.

View File

@ -1,7 +1,7 @@
# This software refactors static json image data and downloads unknown images for building a Jekyll web app.
# Copyright (C) SharpeTronics, LLC, 2013-2023
# Copyright (C) SharpeTronics LLC, 2013-PRESENT
# Author(s): Charles Sharpe(@odinzu_me) aka SharpeTronics, LLC,
# Author(s): SharpeTronics LLC
# License: GPLv3
# Version: 1.6
@ -9,7 +9,7 @@
# will be followed up with GPL enforcement via Software Freedom Law Center:
# https://www.softwarefreedom.org/
# If you incorporate or include any code from SharpeTronics, LLC,, your
# If you incorporate or include any code from SharpeTronics LLC, your
# code must be licensed as GPLv3 (not GPLv2 or MIT)
# The GPLv3 software license applies to the code directly included in this source distribution.
@ -17,7 +17,7 @@
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics, LLC,
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics LLC,
# software on a *case-by-case* basis, for an agreed upon price. Please email
# info@sharpetronics.com.

View File

@ -0,0 +1,85 @@
#!/bin/sh
# run this script in the current directory you would like the site to be created in.
# requirements: bash; script works only in unix type environments.
# this script should be executed in the scripts/ directory.
# changes directory back into root directory
cd ..
# create base Jekyll site directory structure
mkdir -p ./assets/css/images
mkdir -p ./assets/icons
mkdir -p ./assets/images
mkdir -p ./assets/js
mkdir -p ./assets/webfonts
mkdir -p ./collections/_drafts
mkdir -p ./collections/_posts
mkdir -p ./collections/_products
mkdir -p ./_data
# these directories are for Strapi CMS integration
mkdir -p ./_data/authors
mkdir -p ./_data/posts
mkdir -p ./_data/products
mkdir -p ./_plugins
mkdir -p ./_includes
mkdir -p ./_layouts
mkdir -p ./pages/posts
mkdir -p ./pages/products
mkdir -p ./_scss
mkdir -p ./uploads/authors
# create default Jekyll root files with docker and drone ci support.
touch .drone.yml _config.yml robots.txt sitemap.xml COPYING Gemfile humans.txt LICENSE README.md .env .gitignore docker-compose.yml
# create scripts.sh for organization of each file with default data
#cd ./scripts/generate-new-site
#touch cat_drone.sh cat_config.sh cat_robots.sh cat_sitemap.sh cat_copying.sh cat_gemfile.sh cat_humans.sh cat_license.sh cat_readme.sh cat_env.sh cat_gitignore.sh cat_docker-compose.sh
# create default Jekyll _layouts
touch ./_layouts/default.html
touch ./_layouts/post.html
touch ./_layouts/posts.html
touch ./_layouts/product.html
touch ./_layouts/products.html
touch ./_layouts/page.html
touch ./_layouts/landing.html
# create default Jekyll _includes
touch ./_includes/head.html
touch ./_includes/header.html
touch ./_includes/footer.html
touch ./_includes/navigation.html
touch ./_includes/pagination.html
touch ./_includes/back-to-top.html
touch ./_includes/product_hero.html
touch ./_includes/product_rest.html
touch ./_includes/product_related.html
touch ./_includes/product_featured.html
touch ./_includes/author_card.html
touch ./_includes/sections.html
touch ./_includes/banner.html
touch ./_includes/product_category.html
# create default _data files with Strapi CMS integration
touch ./_data/menus.yml
touch ./_data/socials.yml
touch ./_data/global.yml
pwd
# add default contents to each file with another bash script
cp -vf ./scripts/templates/* ./
# add default _data files
cp -vf ./scripts/templates/data/* ./_data/
# add default _layouts templates
cp -vf ./scripts/templates/layouts/* ./_layouts/
# add default _includes templates
cp -vf ./scripts/templates/includes/* ./_includes/

View File

@ -0,0 +1,161 @@
---
# This software configures the virtual machine environment with Gitea and Drone services, builds the Jekyll app, then, securely packages and transports that app to a designated service provider or VPS on the fly.
# Copyright (C) SharpeTronics LLC, 2013-PRESENT
# Author(s): SharpeTronics LLC
# License: GPLv3
# Version: 1.6
# This is Free Software released under GPLv3. Any misuse of this software
# will be followed up with GPL enforcement via Software Freedom Law Center:
# https://www.softwarefreedom.org/
# If you incorporate or include any code from SharpeTronics LLC, your
# code must be licensed as GPLv3 (not GPLv2 or MIT)
# The GPLv3 software license applies to the code directly included in this source distribution.
# See the LICENSE & COPYING file for full information.
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics LLC,
# software on a *case-by-case* basis, for an agreed upon price. Please email
# info@sharpetronics.com.
# If you would like to contribute to this code, please follow GPLv3 guidelines.
# as an example, after making changes to the software (Called a Fork) and credit the original copyright holder as the creator with your credit added to theirs.
kind: pipeline
type: docker
name: build
workspace:
path: /drone/src
platform:
os: linux
arch: amd64
trigger:
branch:
- master
steps:
- name: build-website
image: ruby:latest
environment:
GITEA_USER:
from_secret: gitea_user
GITEA_PASS:
from_secret: gitea_pass
SSH_USER:
from_secret: ssh_user
SSH_HOST:
from_secret: ssh_host
NO_HOSTKEY:
from_secret: no_hostkey
SERVER_PASS:
from_secret: server_pass
STRAPI_BOT_USER_EMAIL:
from_secret: strapi_bot_user_email
STRAPI_BOT_USER_PASS:
from_secret: strapi_bot_user_pass
privileged: false
volumes:
- name: jekyll
path: /srv/jekyll
commands:
# general vm information for debugging
- whoami
- pwd
- gem environment
# add dependencies to tmp docker vm
- apt-get update && apt-get -y install rsync sshpass openssh-server openssh-client bc
- rsync --version
- bc --version
# write the ssh key to disk for rsync handshake to remote server
- mkdir -p ~/.ssh/
- chmod 700 ~/.ssh
# create key id_rsync_ed25519 & id_rsync_ed25519.pub (Only share *.pub with .ssh/authorized_keys on target server B)
- ssh-keygen -t ed25519 -f ~/.ssh/id_rsync_ed25519 -N ''
- chmod 600 ~/.ssh/id_rsync_ed25519
- eval `ssh-agent -s`
- service ssh start
- service ssh status
# load updated ssh_config from drone secret of repo: StrictHostKeyChecking no
- echo "$NO_HOSTKEY" > /etc/ssh/ssh_config
- cat /etc/ssh/ssh_config
# add private key to ssh-agent for ssh-copy-id
- ssh-add ~/.ssh/id_rsync_ed25519
- service ssh reload
- SSHPASS="$SERVER_PASS" sshpass -ev ssh-copy-id $SSH_USER@$SSH_HOST
# setup Jekyll permissions and build jekyll site
- adduser --no-create-home --disabled-password --gecos "" jekyll
- chown -R jekyll:jekyll /drone/src
- gem install bundler
- bundle install
- bundle update --bundler
- bundle exec jekyll build --verbose --trace
# prepare _site dir for www-data branch & compression
- ls -a _site/
- rm _site/docker-compose.yml
# update www-data branch with fresh drone ci Jekyll _site build
- git clone https://git.sharpetronics.com/sharpetronics/sharpetronics.com.git
- cd sharpetronics.com/
- git checkout www-data
# remove all build files and keep only _site directory
- ls -a
- rm -rfv *
# copy all the files from the finished previous build ../site
- cp -R ../_site/* .
# display files being pushed to www-data
- ls -a
# add changes from all tracked and untracked files
- git add -A
- git commit -m "SharpeTronics bots bee-ring bots!"
# push fresh _site only www-data to remote git.sharpetronics.com
- git push https://$GITEA_USER:$GITEA_PASS@git.sharpetronics.com/sharpetronics/sharpetronics.com.git
# sync files to remote server [local _site ] to [remote www edge] while preserving permissions.
- chmod -R 775 ../_site
- groupadd rsync-users
- chown -R www-data:rsync-users ../_site
# a = archive v=verbose z=compress r=recursive -e=env
- rsync -aXvPzr --omit-dir-times --chown=www-data:rsync-users --chmod=775 -e ssh ../_site/* $SSH_USER@$SSH_HOST:/var/www/sharpetronics.com/html/
# create tar.gz of _site directory for download elsewhere
#- tar -czf ../www-data_sharpetronics.tar.gz ../_site/*
#- chmod 775 ../www-data_sharpetronics.tar.gz
#- chown www-data:www-data ../www-data_sharpetronics.tar.gz
# size of the file in bytes
#- tar -tzvf ../www-data_sharpetronics.tar.gz | sed 's/ \+/ /g' | cut -f3 -d' ' | sed '2,$s/^/+ /' | paste -sd' ' | bc
#- ls ../ww*
# add download.tar.gz of files from download.sharpetronics.com
# a = archive v=verbose z=compress r=recursive -e=env
#- rsync -avz --chmod=775 -e ssh ../www-data_sharpetronics.tar.gz $SSH_USER@$SSH_HOST:/var/www/downloads.sharpetronics.com/html/sharpetronics.com/
# _ _ _
# ___| |_ __ _ _ __ | |_ _ __ ___| | __
# / __| __/ _` | '__| | __| '__/ _ \ |/ /
# \__ \ || (_| | | | |_| | | __/ <
# |___/\__\__,_|_| \__|_| \___|_|\_\
# _______----_______
# ___---~~~~~.. ... .... ... ..~~~~~---___
# _ ==============================================
# __________________________ - .. .. _--~~~~~-------____-------~~~~~
#(______________________][__)____ -
# / /______---~~~.. .. ..~~-_~
# <_______________________________-
# ~~~~~~~-----__ __-
# ~~~~~~~~~~~
# U S S E N T E R P R I S E N C C - 1 7 0 1 - D

17
scripts/templates/.gitignore vendored Normal file
View File

@ -0,0 +1,17 @@
_site/
docs/
.env
.sass-cache/
.jekyll-cache/
.jekyll-metadata
.gitattributes
project.geany
# collections are generated with Drone CI/CD build
collections/_products/
collections/_posts/
collections/_drafts/
# json data is generated with Drone CI/CD build
**.json
# image data is generated with Drone CI/CD build
uploads/
Gemfile.lock

25
scripts/templates/COPYING Normal file
View File

@ -0,0 +1,25 @@
# Copyright (C) SharpeTronics LLC, 2013-PRESENT
# Author(s): SharpeTronics LLC
# License: GPLv3
# Version: 1.6
# This is Free Software released under GPLv3. Any misuse of this software
# will be followed up with GPL enforcement via Software Freedom Law Center:
# https://www.softwarefreedom.org/
# If you incorporate or include any code from SharpeTronics LLC, your
# code must be licensed as GPLv3 (not GPLv2 or MIT)
# The GPLv3 software license applies to the code directly included in this source distribution.
# See the LICENSE & COPYING file for full information.
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics LLC,
# software on a *case-by-case* basis, for an agreed upon price. Please email
# info@sharpetronics.com.
# If you would like to contribute to this code, please follow GPLv3 guidelines.
# as an example, after making changes to the software (Called a Fork) and credit the original copyright holder as the creator with your credit added to theirs.

44
scripts/templates/Gemfile Normal file
View File

@ -0,0 +1,44 @@
source "https://rubygems.org"
# Hello! This is where you manage which Jekyll version is used to run.
# When you want to use a different version, change it below, save the
# file and run `bundle install`. Run Jekyll with `bundle exec`, like so:
#
# bundle exec jekyll serve
#
# This will help ensure the proper Jekyll version is running.
# Happy Jekylling!
gem "jekyll", "~> 4.2.2"
# This is the default theme for new Jekyll sites. You may change this to anything you like.
# gem "minima", "~> 2.5"
# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
# gem "github-pages", group: :jekyll_plugins
# If you have any plugins, put them here!
group :jekyll_plugins do
gem 'jekyll-feed', '~> 0.12'
gem 'jekyll-menus'
gem 'jekyll-tagging'
gem 'jekyll-archives'
gem 'jekyll-paginate-v2'
end
group :dev_plugins do
gem 'webrick', '~> 1.7' # dep for Jekyll 4.2.2; Ruby 3 doesn't have webrick by default anymore.
gem 'json', '~> 2.1' # dep for transforming json data
gem 'faraday' # a simple, but flexible HTTP client library, with support for multiple backends.
gem 'faraday-multipart' # send with UDP; No encoding of the data; currently being used with download-images.rb
gem 'httpx' # swiss army knife of Ruby for HTTP
gem 'rails' # must use Rails for .blank support
end
# Windows and JRuby does not include zoneinfo files, so bundle the tzinfo-data gem
# and associated library.
install_if -> { RUBY_PLATFORM =~ %r!mingw|mswin|java! } do
gem "tzinfo", "~> 1.2"
gem "tzinfo-data"
end
# Performance-booster for watching directories on Windows
gem "wdm", "~> 0.1.1", :install_if => Gem.win_platform?

645
scripts/templates/LICENSE Normal file
View File

@ -0,0 +1,645 @@
# Copyright (C) SharpeTronics LLC, 2013-PRESENT
# Author(s): SharpeTronics LLC
# License: GPLv3
# Version: 1.6
# This is Free Software released under GPLv3. Any misuse of this software
# will be followed up with GPL enforcement via Software Freedom Law Center:
# https://www.softwarefreedom.org/
# If you incorporate or include any code from SharpeTronics LLC, your
# code must be licensed as GPLv3 (not GPLv2 or MIT)
# The GPLv3 software license applies to the code directly included in this source distribution.
# See the LICENSE & COPYING file for full information.
# Dependencies downloaded as part of the build process may be covered by other open-source licenses.
# We are open to granting a more permissive (such as MIT or Apache 2.0) license to SharpeTronics LLC,
# software on a *case-by-case* basis, for an agreed upon price. Please email
# info@sharpetronics.com.
# If you would like to contribute to this code, please follow GPLv3 guidelines.
# as an example, after making changes to the software (Called a Fork) and credit the original copyright holder as the creator with your credit added to theirs.
GENERAL GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GENERAL General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GENERAL General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GENERAL General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GENERAL GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GENERAL General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GENERAL Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GENERAL Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GENERAL Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GENERAL General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GENERAL General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GENERAL General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GENERAL General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

View File

@ -0,0 +1,80 @@
# Summary
This web application is the core website for SharpeTronics.com. It is a live JAMstack (Jekyll, API's, Markup) of a website with *micro services* that includes all the bells and whistles for comments, newsletter subscriptions, content management systems (CMS), site generators, blog posts, continuous deployment (CD) and integration (CI), git version management, Stripe ecommerce shopping, progressive web applications (PWA), and much more.
Our stack architecture reflects minimal need for Javascript, Php and Sql and preserves the speedy *reactivity* of the modern web architecture.
Our architecture trumps in security, file size and modularity, while expediting sonic load times and reducing the learning curve for web developers and editors alike!
We focus on quality *design* and *content*; while creating increased portability, automated testing, speedy load times and secure lightweight web apps.
No proprietary operating system dependencies required, only Docker Engine super machines and some tender love and care (TLC).
## Architecture Features
* JAMstack (Jekyll, API's, Markup)
* Lightweight, Responsive & Static!
* SCSS ready!
* Developer Friendly!
* Editor Friendly!
* Docker super machines!
* Web3 Ready!
* Blog ready with *collections* and *pagination*.
* SharpeTronics Pages ready (free GitHub hosting or premium hosting).
* Continuous Integration (CI), Continuous Delivery (CD) & Automated platform.
* Backups galore for restoring to previous states.
* Headless CMS with Strapi superpowers!
* Ease of use for editors and writers.
* Distributed CDN with automatic HTTPS (Cloudflare).
* Secure Ecommerce shopping with Snipcart.
* International Multi-language
* Commenting System with moderation (*pending*)
* Secure SharpeTronics (ST) hosting that is flexible, lightning fast and inexpensive.
## Jekyll Plugins
* Menus
* Tagging
* Archives
* Pagination v2
## Strapi Plugins
* Slugify
* Media Library
* Import Export Entries *upload/download or migrate products and posts*
## Socials
* Discord: https://discord.gg/jB4mXBsZjd
* Facebook: [https://facebook.com/sharpeetronics](https://facebook.com/sharpeetronics)
* Twitter: [https://twitter.com/sharpetronics](https://twitter.com/sharpetronics)
* Email: info@sharpetronics.com
* Telegram: [https://t.me/+oFUwKSn3frgzZDFh](https://t.me/+oFUwKSn3frgzZDFh)
# Development
## API's
* SharpeTronics Strapi Content Management System (CMS)
* Stripe Ecommerce Integration
## System Requirements (Development)
* Install & Configure Docker Engine (Community)
* Install & Configure Docker-Compose
* Install & Configure Git
*All Ruby dependencies are created and stored in a Docker container.*
*Currently, the integration is maintained with Ubuntu 20.04 LTS Linux operating system, although, it is possible to use with Macintosh or Windows. The setup with docker and docker-compose will be similar as the Linux workflow; please see **Further Reading** for more details or get involved at: https://discord.gg/jB4mXBsZjd.*
### Clone, Build & Launch
1. ```git clone https://git.sharpetronics.com/sharpetronics/sharpetronics.com.git```
2. ```cd sharpetronics.com```
3. ```rename /_plugins to /BAK_plugins``` *to make use of these plugins, you need to be authorized*
3. ```docker compose up```
4. ```open a web browser and navigate to: localhost:4000```
**Happy Hacking!!!** :star:
## Further Reading
* Docker Engine https://docs.docker.com/install/
* Docker Compose https://docs.docker.com/compose/install/
* Jekyll https://jekyllrb.com/
* Git https://git-scm.com/book/en/v2/Getting-Started-Installing-Git
* Strapi https://docs.strapi.io/developer-docs/latest/getting-started/introduction.html
* Snipcart https://snipcart.com/
* SharpeTronics Custom Ruby Plugin (LICENSE: GPLv3)

View File

@ -0,0 +1,173 @@
# 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
url: "https://www.example.com" # the base hostname & protocol for your site, GitHub example: https://sharpetronics.github.io
source: "."
# Plugins
plugins:
- jekyll-menus
- jekyll-archives
- jekyll-paginate-v2
- jekyll/tagging
# Latent Semantic Indexing for similarity bewtween documents.
lsi: true
# ===================================================================================
# the API dashboard configuration
api:
# Ecommerce integration
shop:
# The Ecommerce Jekyll configuration
enabled: false # enable or disable ecommerce integration; defaults to false
# uri format: [endpoint]+[endpoint_ext]+[endpoint_param]
endpoint: https://dash.example.com # url to api; no trailing slash
endpoint_api_auth_ext: auth/local # the ext for Strapi user authentication; no / allowed
endpoint_ext: /api/ # (optional) the extension of endpoint e.g. https://www.example.com/api/
endpoint_param: ?populate=deep # (optional) e.g. populate all json data; does not affect endpoint_uploads.
endpoint_uploads: uploads # the location of all media files on api; this is required for downloading images
local_media_dir: uploads/ # where to cache the images # TODO add more organization for image folder data e.g. uploads/products & post image folder
cache_images: true # when true (global), new or modified images are downloaded from endpoint_uploads; note: Docker is also caching downloaded images.
collections:
# 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
products: # optional
# 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
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
# ===================================================================================
# Collection configuration
# These collections will sort types of products and loop through that
# 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:
output: true # Needed to generate `./_site/cupcakes/**/*.html` paths.
permalink: /products/:categories/:year/:month/:day/:title/
posts:
output: true
permalink: /blog/:categories/:year/:month/:day/:title/
#permalink: "/blog/:categories/:year/:month/:day/:title/" # Built in options include: date, pretty, ordinal, weekdate, none; learn more here: https://jekyllrb.com/docs/permalinks/
#paginate: 7
#paginate_path: "/journal/"
# Responsive image conversion; requires imageMagik
# Test with convert --version SEE: docker-compose.yml for docker container setup.
# Used for converting api media into webp formatting
picture:
source: "assets/images"
output: "assets/images/generated"
suppress_warnings: false
sass:
style: compressed # other style values: nested expanded compact compressed
sass_dir: _scss
# Explicitly turn off the old code
#paginate: nil
#paginate_path: nil
# Site configuration for the Jekyll v2 Pagination gem
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)
per_page: 9
# The permalink structure for the paginated pages (this can be any level deep)
permalink: '/page/:num.html' # Pages are index.html inside this folder (default)
#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'
# Exclude from processing.
# The following items will not be processed, by default.
# Any item listed under the `exclude:` key here will be automatically added to
# the internal "default list".
#
# Excluded items can be processed by explicitly listing the directories or
# their entries' file path in the `include:` list.
exclude:
# - .sass-cache/
# - .jekyll-cache/
# - gemfiles/
# - Gemfile
# - Gemfile.lock
# - node_modules/
# - vendor/bundle/
# - vendor/cache/
# - vendor/gems/
# - vendor/ruby/
# Reading extra files
# Every file or directory beginning with the following characters: ., _ , # or ~
# in the source directory will not be included in the destination folder. Such
# paths will have to be explicitly specified via the config file in the include
# directive to make sure theyre copied over:
include:
# - _pages

View File

@ -0,0 +1,47 @@
#This data file contains all the global site information.
---
title: SharpeTronics
legal_title: SharpeTronics, LLC
support_email: info@sharpetronics.com
sales_email: sales@sharpetronics.com
info_email: info@sharpetronics.com
author: "Charles Sharpe"
author_link: https://www.csharpe.me
logo: "/assets/images/st_logo125.svg"
motto: "We Do Technology."
keywords: >- # this means to ignore newlines
JAMstack, Web Design, Information Technology, Newsletter, 3D Printing,
Computer Technician, Hardware, Open Source, Stack Development,
Web Apps, Development
description: >- # this means to ignore newlines
Easing the content creators experience sharing information
through online information portals is our focus.
location_town: "Charles Town"
location_state: "US_WV"
location_coords: "39.63;-79,96"
terms_link: /blog/legal/2022/05/24/our-terms-and-conditions/
privacy_link: /blog/legal/2022/05/24/our-privacy-policy/
sitemap_link: /sitemap.xml
license_shorthand: This is <a href="https://softwarefreedom.org/" target="_blank">Free Software</a> released under <a href="https://www.gnu.org/licenses/gpl-3.0.en.html" target="_blank">GPLv3</a>.
license_longhand: >- # this means to ignore newlines
This is Free Software released under GPLv3. Any misuse of this software
will be followed up with GPL enforcement via Software Freedom Law Center:
https://www.softwarefreedom.org/
If you incorporate any code from SharpeTronics., (this software), your
code must be licensed as GPLv3 (not GPLv2 or MIT)
The GPLv3 software license applies to the code directly included in this source distribution.
See the LICENSE file for full information.
Dependencies downloaded as part of the build process may be covered by other
open-source licenses. For further details see 'contrib/debian/copyright'.
GENERAL GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
---

View File

@ -0,0 +1,16 @@
#Documentation located here: https://github.com/forestryio/jekyll-menus
---
header:
- url: /
title: Home
identifier: header
pre: <i class="fas fa-home fa-1x"></i>
- url: /blog
title: Journal
identifier: header
pre: <i class="fas fa-newspaper fa-1x"></i>
- url: /products
title: Shop
identifier: header
pre: <i class="fas fa-store fa-1x"></i>
---

View File

@ -0,0 +1,16 @@
#This data file contains all the social media information.
---
twitter_user: sharpetronics
twitter_link: https://twitter.com/SharpeTronics
twitter_desc: "This is a description"
github_user: sharpetronics
github_link: https://github.com/SharpeTronics
facebook_user: sharpetronics
facebook_link: https://facebook.com/SharpeeTronics
discord_invite: https://discord.gg/HQcvr2JBQv
rss_link: https://www.sharpetronics.com/feed.xml
---

View File

@ -0,0 +1,78 @@
###BEGINNING/COLLABORATING WITH NEW DOCKER/JEKYLL PROJECT###
#====================================#
## 0. Set Shell JEKYLL_VERSION
# export JEKYLL_VERSION=4.0
## 1. Creating a New Project with Docker
# docker run --rm --volume="$PWD:/srv/jekyll" -it jekyll/jekyll:$JEKYLL_VERSION jekyll new mynewproject
## 2. Serving the Blog
# docker run --name mynewproject --volume="$PWD:/srv/jekyll" -p 4000:4000 -it jekyll/jekyll:$JEKYLL_VERSION jekyll serve --watch --drafts
## 3. [optional] Building an Existing Site for PRODUCTION _site directory
# docker run --rm --volume="$PWD:/srv/jekyll" -it jekyll/jekyll:$JEKYLL_VERSION jekyll build --trace
## 4. Setup docker-compose commands for easy & quicker docker container management [docker-compose --help]
## Create and start containers in relative directory
# docker-compose up
## Stop and remove containers, networks, images, and volumes
# docker-compose down
## Start docker services
# docker-compose start
## Stop docker services
# docker-compose stop
#====================================#
## Executing commands in the docker container
# docker exec -ti myblog gem install "jekyll-theme-hydeout"
## Removing docker container
# docker rm -f myblog
## Serve docker-compose container in . OR Serve manually
## docker-compose up
# docker run --name myblog --volume="$PWD:/srv/jekyll" -p 4000:4000 -it jekyll/jekyll:$JEKYLL_VERSION jekyll serve --watch --drafts
## Discover container ID
# docker container ls
## Executing a shell in the container
# docker exec -ti 2d5913b926fc /bin/sh
## Copy template from docker jekyll site container shell
# cp -R /usr/local/bundle/gems/minima-2.5.1/ /srv/jekyll
# Change ownership from root to user:group after exit shell
## sudo chown -R username:group foldername/
#Command Options
## command: 'jekyll serve --watch --drafts --verbose --trace'
#====================================#
## Steps to install packages within docker container; as an example, we need imageMagick with jekyll_picture_tag plugin to convert images in required format.
# 0. After docker & docker-compose have been setup and running with JEKYLL
# 1. (discover container ID's & copy ID for step 3) docker container ls --all
# 2. (in relative jekyll website directory) docker-compose up
# 3. (While docker container is running, sh into docker image) Open new terminal > docker exec -ti e1906de4a037 /bin/sh (Note: replace container ID with yours)
# 4. (Once logged into the Docker container RUN) apk --update add imagemagick
# 5. (Verify package has been installed) convert --version
# 6. Test jekyll_picture_tag plugin via {% picture test.jpg %}
#====================================#
version: '3'
services:
jekyll-serve:
image: jekyll/jekyll:4.2.2
volumes:
- '.:/srv/jekyll'
ports:
- 4000:4000
environment:
- STRAPI_BOT_USER_EMAIL=$STRAPI_BOT_USER_EMAIL
- STRAPI_BOT_USER_PASS=$STRAPI_BOT_USER_PASS
command: jekyll serve --lsi --watch --verbose --trace

View File

@ -0,0 +1,188 @@
____ __ ______
/\ _`\ /\ \ /\__ _\ __
\ \,\L\_\ \ \___ __ _ __ _____ _\/_/\ \/ _ __ ___ ___ /\_\ ___ ____
\/_\__ \\ \ _ `\ /'__`\ /\`'__/\ '__`\ /'__`\\ \ \/\`'__/ __`\/' _ `\/\ \ /'___\ /',__\
/\ \L\ \ \ \ \ \/\ \L\.\\ \ \/\ \ \L\ /\ __/ \ \ \ \ \/\ \L\ /\ \/\ \ \ \/\ \__//\__, `\
\/_____/\/_/\/_/\/__/\/_/\/_/ \ \ \/ \/____/ \/_/\/_/\/___/ \/_/\/_/\/_/\/____/\/___/
\ \_\
\/_/
Owner: SharpeTronics LLC
Designer: SharpeTronics LLC
Developer: SharpeTronics LLC
Editor: SharpeTronics LLC
Engineering: SharpeTronics LLC
Quality Assurance: SharpeTronics LLC
The team, technology & tools and memories that empower this site.
AN AMERICAN WEST VIRGINIAN BASED COMPANY
Montani Semper Liberi
THE SHARPETRONICS TEAM
--------
Made with Cosmic L O V E in West Virginia (WV)
SharpeTronics LLC
SPECIAL THANKS
--------------
@YOU
@Dane Arr
danearr.com/
@Gene Rodenberry
roddenberryfoundation.org/
@Bungie
bungie.net/
@ajlkn
aj.lkn.io/
@dukeleto
duke.leto.net/
@Strapijs
strapi.io/
@Jekyllrb
jekyllrb.com/
@Gitea
Gitea.io/
@Snipcart
Snipcart.com/
@Artosis
twitter.com/artosis/
@United States Air Force (USAF)
airforce.com/
@oDinZu
odinzu.is/
TECHNOLOGY
----------
Ruby - A dynamic, open source programming language with a focus on simplicity and productivity. It has an elegant syntax that is natural to read and easy to write.
ruby-lang.org/
Ruby Gems - Find, install, and publish RubyGems.
rubygems.org/
HTML5 - Hypertext Markup Language
w3schools.com/html
Sass - CSS pre-processor
sass-lang.com/
Liquid - Templating
shopify.github.io/liquid
YAML - Data serialization for all programming languages
yaml.org/
JavaScript libraries include:
jQuery, breakpoints.js
Font Awesome - Premium Web icons
fontawesome.com/
Cloudflare - DNS & CDN
cloudflare.com/
Jekyll - Static site generator
jekyllrb.com/
Strapi - Headless Javascript CMS
strapi.io/
Jekyll Plugins - Plugins created by Jekyll community
jekyll-menus, jekyll-paginate-v2
Nginx - high-performance HTTP server and reverse proxy, as well as an IMAP/POP3 proxy server.
nginx.com/
Docker - Container virtualization
docker.com/
Snipcart - Snipcart lets you sell physical products all over the world. Shipping, inventory and discount features help you manage orders.
snipcart.com/
Stripe - Stripe is a suite of APIs powering online payment processing and commerce solutions for internet businesses of all sizes.
stripe.com/
Drone CI - Automated software build and test.
drone.io/
Gitea - A painless, self-hosted Git service.
gitea.com/
Git & GitHub (Mirror) - Code collaboration, continuous delivery, version management and DevOps
github.com/
Ubuntu - Operating system
pop.system76.com, ubuntu.com, archlinux.org
Tmux - A Terminal Multiplexer
github.com/tmux/tmux/
Certbot - Enable secure websites with Let's Encrypt.
certbot.eff.org/
Geany - The Flyweight IDE
geany.org/
DockerHub - Build and ship any application anywhere
hub.docker.com/
Inkscape, Imagemagick & Gimp - Graphics editor
inkscape.org/, imagemagick.org/, gimp.org/
Blender - is the free and open source 3D creation suite
blender.org/
Pursa3D - Josef Prusa found his passion for 3D printers as a student of University of Economics in Prague.
prusa3d.com/
Licensing - GPLv3
gnu.org/licenses/gpl-3.0.en.html/
Web Browser Debugging - Testing UI/UX of the website
google.com/chrome/, mozilla.org/en-US/firefox
Startpage - Search engine privacy
startpage.com/
Twitter - An American social media company.
twitter.com/
Facebook - An online social media and social networking service owned by American company Meta Platforms.
facebook.com/
Google - An American technology company with a mission to organize the world's information and make it universally accessible and useful.
google.com/
Android - is a mobile operating system based on a modified version of the Linux kernel and other open-source software, designed primarily for touchscreen mobile devices such as smartphones and tablets.
android.com/
AMD - Advanced Micro Devices, Inc. (AMD) is an American multinational semiconductor company based in Santa Clara, California, that develops computer processors and related technologies for business and consumer markets.
amd.com/
...many, many more
FONTS
-----
Ubuntu
Designed by Dalton Maag
License: Ubuntu Font License
www.daltonmaag.com/

View File

@ -0,0 +1,18 @@
{% comment %}
The author metadata for both posts and post single pages.
{% endcomment %}
{% if post == blank %}
{% comment %}
Fix display bug when author data is empty.
{% endcomment %}
<div class="meta">
<time class="published">{{ page.date | date_to_string }}</time>
<h5 class="author"><img src="{{ page.author_image }}" alt="{{ page.author }}" /><span class="name">{{ page.author }}</span></h5>
</div>
{% else %}
<div class="meta">
<time class="published">{{ post.date | date_to_string }} </time>
<h5 class="author"><img src="{{ post.author_image }}" alt="{{ post.author }}" /><span class="name">{{ post.author }}</span></h5>
</div>
{% endif %}

View File

@ -0,0 +1 @@
<button onclick="topFunction()" id="myBtn" title="Go to top">Top</button>

View File

@ -0,0 +1,12 @@
<!-- Banner -->
<section id="banner">
<header class="major">
<!--<span class="icon solid fa-code style3"></span>-->
<a href="/" class="logo"><img src="{{ site.data.global.logo }}" alt="{{ site.data.global.title }}" aria-hidden="true" /></a>
<h1>{{ site.data.global.title }}</h1>
<p>{{ site.data.global.motto }}</p>
</header>
<ul class="actions special">
<li><a href="#one" class="button scrolly">Proceed</a></li>
</ul>
</section>

View File

@ -0,0 +1,22 @@
<!-- Footer -->
<footer id="footer">
<ul class="alt-icons">
<li><a href="{{ site.data.social.twitter_link }}" class="icon brands fa-twitter" target="_blank"><span class="label">Twitter</span></a></li>
<li><a href="{{ site.data.social.facebook_link }}" class="icon brands fa-facebook-f" target="_blank"><span class="label">Facebook</span></a></li>
<li><a href="{{ site.data.social.github_link }}" class="icon brands fa-github" target="_blank"><span class="label">GitHub</span></a></li>
<li><link rel="alternate" type="application/rss+xml" href="{{ site.data.social.rss_link }}" class="icon solid fa-rss" target="_blank"></li>
<li><a href="mailto:{{ site.data.global.info_email }}" class="icon solid fa-envelope" target="_blank"><span class="label">Email</span></a></li>
</ul>
<p class="copyright">
&copy; 2013-<script>document.write(new Date().getFullYear())</script> {{ site.data.global.legal_title }} <a href="{{ site.data.global.creator_link }}" target="_blank"></a><br />
<a href="/humans.txt" target="_blank">Imagined by humans</a>, <a href="https://jekyllrb.com/" target="_blank">built with Jekyll</a>,
<a href="https://git.sharpetronics.com/SharpeTronics/sharpetronics.com" target="_blank">hosted by {{ site.data.global.legal_title }}</a><br />
<!-- Creative Commons Attribution-NoDerivs 3.0 United States License -->
{{ site.data.global.license_shorthand }}
</p>
<ul class="menu">
<li><a href="{{ site.data.global.terms_link }}">Terms of Use</a></li>
<li><a href="{{ site.data.global.privacy_link }}">Privacy Policy</a></li>
<li><a href="{{ site.data.global.sitemap_link }}">Sitemap</a></li>
</ul>
</footer>

View File

@ -0,0 +1,84 @@
<!--
* ____ __ ______
* /\ _`\ /\ \ /\__ _\ __
* \ \,\L\_\ \ \___ __ _ __ _____ _\/_/\ \/ _ __ ___ ___ /\_\ ___ ____
* \/_\__ \\ \ _ `\ /'__`\ /\`'__/\ '__`\ /'__`\\ \ \/\`'__/ __`\/' _ `\/\ \ /'___\ /',__\
* /\ \L\ \ \ \ \ \/\ \L\.\\ \ \/\ \ \L\ /\ __/ \ \ \ \ \/\ \L\ /\ \/\ \ \ \/\ \__//\__, `\
* \ `\____\ \_\ \_\ \__/.\_\ \_\ \ \ ,__\ \____\ \ \_\ \_\ \____\ \_\ \_\ \_\ \____\/\____/
* \/_____/\/_/\/_/\/__/\/_/\/_/ \ \ \/ \/____/ \/_/\/_/\/___/ \/_/\/_/\/_/\/____/\/___/
* \ \_\
* \/_/
_______----_______
___---~~~~~.. ... .... ... ..~~~~~---___
_ ==============================================
__________________________ - .. .. _--~~~~~-------____-------~~~~~
(______________________][__)____ -
/ /______---~~~.. .. ..~~-_~
<_______________________________-
~~~~~~~-----__ __-
~~~~~~~~~~~
U S S E N T E R P R I S E N C C - 1 7 0 1 - D
Owner: SharpeTronics LLC
Designer: SharpeTronics LLC
Developer: SharpeTronics LLC
Editor: SharpeTronics LLC
Engineering: SharpeTronics LLC
Quality Assurance: SharpeTronics LLC
-->
<head>
<META charset="utf-8">
<META http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<META name="robots" content="index, follow">
<META name="author" content="{{ site.data.global.author }}">
<META name="description" content="{{ site.data.global.description }}">
<META name="keywords" content="{{ site.data.global.keywords }}">
<!-- Geolocation Search Engine Optimization BING -->
<META name="geo.position" content="{{ site.data.global.location_coords }}" />
<META name="geo.placename" content="{{ site.data.global.location_town }}" />
<META name="geo.region" content="{{ site.data.global.location_state }}" />
<META name="ICBM" content="{{ site.data.global.location_coords }}" />
<!-- Twitter -->
<META name="twitter:card" content="summary_large_image">
<META name="twitter:image" content="{{ page.banner_image }}">
<META name="twitter:image:alt" content="{{ page.banner_image_description }}">
<META name="twitter:site" content="@{{ site.data.social.twitter_user }}">
<META name="twitter:url" content="{{ page.url }}">
<META name="twitter:title" content="{{ page.title }}">
<META name="twitter:description" content="{{ page.content | strip_html | truncatewords: 50 }}">
<META name="twitter:creator" content="{{ page.author }}">
<!-- Standard SEO Open Graph data -->
<META property="og:type" content="article" />
<META property="og:locale" content="en_US">
<META property="og:title" content="{{ page.title }}" />
<META property="og:url" content="{{ page.url }}" />
<META property="og:image" content="{{ page.banner_image }}" />
<META property="og:image:alt" content="{{ page.banner_image_description }}" />
<META property="og:description" content="{{ page.content | strip_html | truncatewords: 50 }}" />
<META property="og:site_name" content="{{ site.data.global.title }}" />
<!-- Favicons for various browsers including mobile -->
<link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico" sizes="64x49">
<!-- Jekyll RSS Feed -->
<link rel="alternate" type="application/rss+xml" href="{{ site.url }}/feed.xml">
<!-- Site title goes here -->
<title> {{ site.data.global.title }} | {{ page.title }} </title>
<!-- Linking local cascading stylesheet CSS -->
<link rel="stylesheet" href="/assets/css/main.css" />
<!-- Loading local fonts ; preload for fast generation-->
<link rel="preload" href="/assets/webfonts/fa-regular-400.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="/assets/webfonts/fa-brands-400.woff2" as="font" type="font/woff2" crossorigin="anonymous">
<link rel="preload" href="/assets/webfonts/fa-solid-900.woff2" as="font" type="font/woff2" crossorigin="anonymous">
</head>

View File

@ -0,0 +1,5 @@
<!-- Header Menus -->
<header id="header">
<a href="#menu">Menu</a>
<a href="{{site.url}}/products" class="button"><i class="fas fa-store fa-1x"></i> Shop</a>
</header>

View File

@ -0,0 +1,12 @@
<!-- Nav -->
<nav id="menu">
<ul class="links">
{% for item in site.menus.header %}
<li class="menu-item-{{ loop.index }}">
<a href="{{ item.url }}" title="Go to {{ item.title }}">{{ item.pre }} {{ item.title }}</a>
{% endfor %}
</ul>
<!-- <ul class="actions stacked">
<li><a href="#" class="button primary fit">Log In</a></li>
</ul> -->
</nav>

View File

@ -0,0 +1,30 @@
<!-- Pagination Next & Previous Button Logic -->
<ul class="actions pagination">
{% if paginator.previous_page %}
<li><a href="{{ paginator.previous_page_path }}" class="button primary previous"><< Prev</a></li>
{% else %}
<li><a href="#" class="disabled button primary previous"><< Prev</a></li>
{% endif %}
<div class="ptrail">
<!-- Pagination Trail -->
{% if paginator.page_trail %}
{% for trail in paginator.page_trail %}
<li {% if page.url == trail.path %} class="selected" {% endif %}>
<a href="{{ trail.path | prepend: site.url }}" title="{{trail.title}}">{{ trail.num }}</a>
</li>
{% endfor %}
{% endif %}
</div>
{% if paginator.next_page %}
<li><a href="{{ paginator.next_page_path }}" class="button primary next">Next >></a></li>
{% else %}
<li><a href="#" class="disabled button primary next">Next >></a></li>
{% endif %}
</ul>
<!-- Pagination Page Number -->
<span class="page_number ">
Page: {{ paginator.page }} of {{ paginator.total_pages }}
</span>

View File

@ -0,0 +1,12 @@
<!-- Product Categories -->
<section class="row product-cat">
<div class="col-12">
<ul class="">
<a href="#"><li>Shop</li></a>
<a href="#"><li>Laptops</li></a>
<a href="#"><li>Models</li></a>
<a href="#"><li>Parts</li></a>
<a href="#"><li>Categories</li></a>
</ul>
</div>
</section>

View File

@ -0,0 +1,11 @@
<!-- Featured products collection -->
<div class="col-6 col-12-small vert-expand">
<article class="post product no-padding">
<a href="{{ post.url | absolute_url }}"><img alt="{{ post.title }}" src="{{ post.banner_image }}" class="image fit" /></a>
<a href="{{ post.url | absolute_url }}"><h4> {{ post.title }} </h4></a>
<p>{{ post.content | strip_html | truncatewords: 25 }}</p>
<ul class="actions">
<li><a href="{{ post.url | absolute_url }}" class="button">Continue ></a></li>
</ul>
</article>
</div>

View File

@ -0,0 +1,22 @@
<!-- Initial headline product collection post -->
<article class="post featured product no-padding">
<section class="row">
<div class="col-6 col-12-small headline-col-limit">
<picture>
<a href="{{ paginator.posts[0].url | absolute_url }}">
<img alt="{{ paginator.posts[0].title }}" src="{{ paginator.posts[0].banner_image }}" class="product-headline-flex" />
</a>
</picture>
</div>
<div class="col-6 col-12-small product-hero-text vert-expand">
<a href="{{ paginator.posts[0].url | absolute_url }}"><h3> {{ paginator.posts[0].title }} </h3></a>
<p>{{ paginator.posts[0].content | strip_html | truncatewords: 50 }}</p>
<ul class="actions">
<li><a href="{{ paginator.posts[0].url | absolute_url }}" class="button">Continue ></a></li>
</ul>
</div>
</section>
</article>

View File

@ -0,0 +1,12 @@
{%- for product in related_products -%}
<div class="col-4 col-12-small vert-expand">
<article class="post product no-padding">
<a href="{{ product.url | absolute_url }}"><img alt="{{ product.title }}" src="{{ product.banner_image }}" class="image fit" /></a>
<a href="{{ product.url | absolute_url }}"><h4> {{ product.title | strip_html | truncatewords: 7 }} </h4></a>
<p>{{ product.content | markdownify | strip_html | truncatewords: 19 }}</p>
<ul class="actions">
<li><a href="{{ product.url | absolute_url }}" class="button">Continue ></a></li>
</ul>
</article>
</div>
{% endfor %}

View File

@ -0,0 +1,11 @@
<!-- Rest of products collection -->
<div class="col-4 col-12-small vert-expand">
<article class="post product no-padding">
<a href="{{ post.url | absolute_url }}"><img alt="{{ post.title }}" src="{{ post.banner_image }}" class="image fit" /></a>
<a href="{{ post.url | absolute_url }}"><h4> {{ post.title }} </h4></a>
<p>{{ post.content | strip_html | truncatewords: 10 }}</p>
<ul class="actions">
<li><a href="{{ post.url | absolute_url }}" class="button">Continue ></a></li>
</ul>
</article>
</div>

View File

@ -0,0 +1,198 @@
<!-- One -->
<div class="wave-container">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#7cafa3" fill-opacity="1" d="M0,288L80,288C160,288,320,288,480,266.7C640,245,800,203,960,208C1120,213,1280,267,1360,293.3L1440,320L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>
<section id="one" class="wrapper style2 special">
<div class="inner">
<header class="major">
<h2>JAMstack Architecture</h2>
<p>Welcome to the Future of Web Development</p>
</header>
<section class="spotlights">
<section>
<span class="image"><img src="assets/images/design.webp" alt="Web Architecture and Design" /></span>
<h4>Design</h4>
<p>Your website will be unique & visually stunning it will be fully responsive, mobile friendly, search engine optimized & accessible. </p>
</section>
<section>
<span class="image"><img src="assets/images/programming.webp" alt="Web Programming and Coding" /></span>
<h4>Develop</h4>
<p>Your webstack architecture will be powerful, fast & built with the future in mind. We provide a seamless developer experience & content driven focus. </p>
</section>
</section>
</div>
</section>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#7cafa3" fill-opacity="1" d="M0,128L120,106.7C240,85,480,43,720,69.3C960,96,1200,192,1320,240L1440,288L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z"></path></svg>
</div>
<!-- Three -->
<section id="three" class="wrapper style1 special">
<div class="inner">
<header class="major">
<h2>Why JAMstack?</h2>
<p>Faster, Straightforward and a more Secure Architecture</p>
</header>
<section class="features">
<section>
<span class="fas fa-bolt fa-3x" aria-hidden="true"></span>
<h4>Performance</h4>
<p>Super fast loading times for Search Engine Optimization (SEO) and the viewers pleasure.
Higher rankings on Search Engine Results Page (SERP). Less talk, more bang for your buck. </p>
</section>
<section>
<span class="fas fa-expand fa-3x" aria-hidden="true"></span>
<h4>Scalable</h4>
<p>Less complexity means easier scalability and more money saved. Ease of use for administrators, developers and editors. The future is highly distributed.</p>
</section>
<section>
<span class="fas fa-shield-alt fa-3x" aria-hidden="true"></span>
<h4>Rock Solid Security</h4>
<p>Our information stack is static with higher standards of security. Client-server topology systems like SQL/PHP based Joomla or
Wordpress enables a larger area of attack through SQL injections and other known vulnerabilities. </p>
</section>
<section>
<span class="fas fa-cloud fa-3x" aria-hidden="true"></span>
<h4>Auto Backups</h4>
<p>We make use of continuous delivery (CD) systems, including auto deployment too production for version management.
If your website breaks, we run a one liner command to deploy the most recent working version.</p>
</section>
<section>
<span class="fas fa-hammer fa-3x" aria-hidden="true"></span>
<h4>Easy Maintenance</h4>
<p>Hassle-free maintenance with focus on content creation;
saving time for your community and business.</p>
</section>
<section>
<span class="fas fa-shipping-fast fa-3x" aria-hidden="true"></span>
<h4>Portability</h4>
<p>No more infrastructure lock-in. You may host your pre-generated website with a wide array of hosting services. Easy pack up and unwrap for any hosting solution.</p>
</section>
</section>
</div>
</section>
<!-- Two -->
<div class="wave-container">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#6c85ab" fill-opacity="1" d="M0,224L120,218.7C240,213,480,203,720,213.3C960,224,1200,256,1320,272L1440,288L1440,320L1320,320C1200,320,960,320,720,320C480,320,240,320,120,320L0,320Z"></path></svg>
<section id="two" class="wrapper style3 special">
<div class="inner">
<header class="major">
<h2>Technical Support</h2>
<p>Solutions to your Technological Needs</p>
</header>
<section class="spotlights">
<section>
<span class="image"><img src="assets/images/hardware.webp" alt="Computer Hardware" /></span>
<h4>Hardware</h4>
<p>We build custom computers & do hardware repairs. Installing or upgrading components like a network card, motherboard, cabling, computer processing
unit (CPU), printers and graphical processing unit (GPU). </p>
</section>
<section>
<span class="image"><img src="assets/images/software.webp" alt="Computer Software Linux" /></span>
<h4>Software</h4>
<p>We work with Linux and Windows operating systems. A variety of common software issues we work on are: PC tune-ups, virus or trojans, system errors or blue screen, diagnostics and troubleshooting.
We are available both remotely and locally. If we are unable to fix it, you will not be charged. </p>
</section>
</section>
</div>
</section>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#6c85ab" fill-opacity="1" d="M0,288L120,256C240,224,480,160,720,122.7C960,85,1200,75,1320,69.3L1440,64L1440,0L1320,0C1200,0,960,0,720,0C480,0,240,0,120,0L0,0Z"></path></svg>
</div>
<!-- Three -->
<section id="three" class="wrapper style1 special">
<div class="inner">
<header class="major">
<h2>Why Choose Us?</h2>
<p>Service To Others</p>
</header>
<section class="features">
<section>
<span class="fas fa-cubes fa-3x" aria-hidden="true"></span>
<h4>Innovative</h4>
<p>Information Technology (IT) is always evolving and so do we. We pride ourselves in being modern, creative and malleable.</p>
</section>
<section>
<span class="fas fa-user-tie fa-3x" aria-hidden="true"></span>
<h4>Professional</h4>
<p>Reliability and organization are an integral quality. We are proud to be of service.</p>
</section>
<section>
<span class="fas fa-medal fa-3x" aria-hidden="true"></span>
<h4>Excellence</h4>
<p>We strive for excellence in all we do. Satisfaction of your needs comes first and the quality of our work exceeds expectations.</p>
</section>
<section>
<span class="fas fa-heart fa-3x" aria-hidden="true"></span>
<h4>Friendly</h4>
<p>We are homegrown mountaineers that have a passion for technology. We are patient, professional and reliable.</p>
</section>
</section>
</div>
</section>
<!-- Four -->
<div class="wave-container">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="#b67e96" fill-opacity="1" d="M0,64L80,101.3C160,139,320,213,480,250.7C640,288,800,288,960,277.3C1120,267,1280,245,1360,234.7L1440,224L1440,320L1360,320C1280,320,1120,320,960,320C800,320,640,320,480,320C320,320,160,320,80,320L0,320Z"></path></svg>
<section id="four" class="wrapper style4 special-alt">
<div class="inner split">
<section>
<header class="major">
<h2>Join The Movement</h2>
</header>
<p>Join our occasional newsletter for product launches, availability, job openings, and news.
We provide value to communities and businesses in a friendly super awesome way.</p>
</section>
<div id="thank-you-message">Thank You! You have been added to our mailing list.</div>
<form method="post" action="https://dash.sharpetronics.com/api/newsletters" id="newsletter-form" autocomplete="on">
<label for="name" placeholder="Enter your Name">Name</label>
<input type="text" id="name" name="name" />
<label for="email" placeholder="Enter your Email">Email</label>
<input type="email" id="email" name="email" />
<ul class="actions">
<button type="submit" value="create new email">Send</button>
</ul>
</form>
<script>
const formEl = document.querySelector('#newsletter-form');
const thankYouMessage = document.querySelector('#thank-you-message');
const newsletterForm = document.querySelector('#newsletter-form');
formEl.addEventListener('submit', event => {
event.preventDefault();
// get data from newsletter-form
const formData = new FormData(formEl);
const data = Object.fromEntries(formData);
// Clear all form fields
event.target.reset();
fetch('https://dash.sharpetronics.com/api/newsletters', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({data:data})
}).then(res => res.json())
.then(data => console.log(data))
.catch (error => console.log(error));
//window.alert("Thank You! You have been added to our mailing list.")
// TODO: needs more error checking
thankYouMessage.classList.add('show');
newsletterForm.classList.add('hide');
});
</script>
</div>
</section>
</div>
<!-- Five -->
<section id="five" class="wrapper style1 special alt">
<div class="inner">
<h4>A West Virginian Based Company</h4>
<p>Montani Semper Liberi</p>
</div>
</section>

View File

@ -0,0 +1,58 @@
---
---
{% comment %}
The default layout for the site, which is extended by all other layouts.
{% endcomment %}
<!DOCTYPE html>
<html lang="{{ page.lang | default: site.lang | default: "en" }}">
{% include head.html %}
{% if page.title == "Home" %}
<body class="landing is-preload">
{% else %}
<body class="landing is-preload single">
{% if page.title == "Shop" or page.layout == "product"%}
{% comment %}
Ecommerce integration with Snipcart; this is a public API key.
{% endcomment %}
<script>
window.SnipcartSettings = {
publicApiKey: 'publicexampleapikeyfromstriple',
loadStrategy: 'on-user-interaction',
};
(()=>{var c,d;(d=(c=window.SnipcartSettings).version)!=null||(c.version="3.0");var s,S;(S=(s=window.SnipcartSettings).timeoutDuration)!=null||(s.timeoutDuration=2750);var l,p;(p=(l=window.SnipcartSettings).domain)!=null||(l.domain="cdn.snipcart.com");var w,u;(u=(w=window.SnipcartSettings).protocol)!=null||(w.protocol="https");var f=window.SnipcartSettings.version.includes("v3.0.0-ci")||window.SnipcartSettings.version!="3.0"&&window.SnipcartSettings.version.localeCompare("3.4.0",void 0,{numeric:!0,sensitivity:"base"})===-1,m=["focus","mouseover","touchmove","scroll","keydown"];window.LoadSnipcart=o;document.readyState==="loading"?document.addEventListener("DOMContentLoaded",r):r();function r(){window.SnipcartSettings.loadStrategy?window.SnipcartSettings.loadStrategy==="on-user-interaction"&&(m.forEach(t=>document.addEventListener(t,o)),setTimeout(o,window.SnipcartSettings.timeoutDuration)):o()}var a=!1;function o(){if(a)return;a=!0;let t=document.getElementsByTagName("head")[0],e=document.querySelector("#snipcart"),i=document.querySelector(`src[src^="${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}"][src$="snipcart.js"]`),n=document.querySelector(`link[href^="${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}"][href$="snipcart.css"]`);e||(e=document.createElement("div"),e.id="snipcart",e.setAttribute("hidden","true"),document.body.appendChild(e)),v(e),i||(i=document.createElement("script"),i.src=`${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}/themes/v${window.SnipcartSettings.version}/default/snipcart.js`,i.async=!0,t.appendChild(i)),n||(n=document.createElement("link"),n.rel="stylesheet",n.type="text/css",n.href=`${window.SnipcartSettings.protocol}://${window.SnipcartSettings.domain}/themes/v${window.SnipcartSettings.version}/default/snipcart.css`,t.prepend(n)),m.forEach(g=>document.removeEventListener(g,o))}function v(t){!f||(t.dataset.apiKey=window.SnipcartSettings.publicApiKey,window.SnipcartSettings.addProductBehavior&&(t.dataset.configAddProductBehavior=window.SnipcartSettings.addProductBehavior),window.SnipcartSettings.modalStyle&&(t.dataset.configModalStyle=window.SnipcartSettings.modalStyle),window.SnipcartSettings.currency&&(t.dataset.currency=window.SnipcartSettings.currency),window.SnipcartSettings.templatesUrl&&(t.dataset.templatesUrl=window.SnipcartSettings.templatesUrl))}})();
</script>
{% endif %}
{% endif %}
<div class="page-wrapper">
{% include header.html %}
{% include navigation.html %}
<main class="page-content" aria-label="Content">
{% comment %}
Any layout that extends this layout will have its contents
added as the content variable
{% endcomment %}
{{ content }}
</main>
<!-- JS scripts get loaded last-->
<script src="{{ "/assets/js/jquery.min.js" | relative_url }}" defer></script>
<script src="{{ "/assets/js/jquery.scrolly.min.js" | relative_url }}" defer></script>
<script src="{{ "/assets/js/jquery.scrollex.min.js" | relative_url }}" defer></script>
<script src="{{ "/assets/js/browser.min.js" | relative_url }}" defer></script>
<script src="{{ "/assets/js/breakpoints.min.js" | relative_url }}" defer></script>
<script src="{{ "/assets/js/util.js" | relative_url }}" defer></script>
<script src="{{ "/assets/js/main.js" | relative_url }}" defer></script>
</div>
{% include footer.html %}
</body>
</html>

View File

@ -0,0 +1,13 @@
---
layout: default
---
{% comment %}
This layout is the homepage layout.
{% endcomment %}
{%- include banner.html -%}
{%- include sections.html -%}
{%- include back-to-top.html -%}

View File

@ -0,0 +1,20 @@
---
layout: default
---
{% comment %}
This layout is a page without pagination.
{% endcomment %}
<!-- Main -->
<section id="main" class="wrapper style1">
<div class="inner">
<!-- Content -->
<div class="content">
{{ content }}
</div>
</div>
</section>

View File

@ -0,0 +1,46 @@
---
layout: default
pagination:
enabled: false
---
{% comment %}
This layout is the single page of a blog post.
{% endcomment %}
<section id="main" class="wrapper style1">
<div class="inner">
{% unless page.layout == "posts" or page.layout == "products" %}
<!-- The back button on a single post -->
<section class="row product-cart journal">
<div class="col-12">
<a href="{{site.url}}/blog"><h5 class="button back">< Go Back</h5></a>
</div>
</section>
{% endunless %}
<!-- Title -->
<header class="major special journal">
<div class="hero"> <img class="image fit" src="{{ page.banner_image }}" alt="{{ page.banner_image_alt }}"> </div>
<h1>{{ page.title }}</h1>
<p>{{ page.subheading }}</p>
</header>
<!-- Content -->
<div class="content">
{{ content }}
{% assign author = page.author %}
{%- include author_card.html -%}
{%- include back-to-top.html -%}
<!-- Related posts collection -->
<section class="row related-items">
<div class="col-12">
<h3>More Posts</h3>
</div>
{%- assign related_posts = site.posts | where_exp:"post", "post.url != page.url" | sample:3 -%}
{%- include post_related.html -%}
</section>
<!-- A Placeholder for Community Discussion aka Comments -->
</div>
</div>
</section>

View File

@ -0,0 +1,41 @@
---
layout: post
---
{% comment %}
This layout is the posts index (a collection of all blog posts).
{% endcomment %}
<!-- Main Body Content -->
<div class="content">
<!-- This loops through the paginated posts collection posts-->
{% for post in paginator.posts %}
<!-- Post layout structure -->
<article class="post">
<header>
<a href="{{ post.url | absolute_url }}" class="hero image fit"><img src="{{ post.banner_image }}" alt="{{ post.title }}" loading="lazy"/></a>
<div class="title">
<h2><a href="{{ post.url | absolute_url }}">{{ post.title }}</a></h2>
<p>{{ post.subheading }}</p>
</div>
{% assign author = site.data.authors[post.author] %}
{%- include author_card.html -%}
</header>
<p>{{ post.content | strip_html | truncatewords: 50 }}</p>
<footer>
<ul class="actions">
<li><a href="{{ post.url | absolute_url }}" class="button"><b>Continue Reading</b></a></li>
</ul>
<ul class="stats">
<li><b>{{ post.category }}</b></li>
<li><b>Tags: </b>{{ post.tags }}</li>
<!-- <li class="icon solid fa-heart">144</li> -->
<li><a href="{{ post.url | absolute_url }}" class="icon solid fa-comment">43</a></li>
</ul>
</footer>
</article>
{% endfor %}
<!-- Pagination to navigate to another collection of posts -->
{% include pagination.html %}
</div>

View File

@ -0,0 +1,109 @@
---
layout: default
pagination:
enabled: false
---
{% comment %}
This layout is the single page of a product post.
{% endcomment %}
<section id="main" class="wrapper style1">
<div class="inner">
<!-- Shopping Cart -->
<section class="row product-cart">
<div class="col-6">
<a href="{{site.url}}/products"><h5 class="button back">< Go Back</h5></a>
</div>
<div class="col-6">
<ul>
<li>
<a href="#" class="fas fa-shopping-basket fa-2x snipcart-checkout"><span class="snipcart-total-price product-font-price">$0.00</span></a>
</li>
</ul>
</div>
</section>
<!-- Page Heading -->
<header class="major special">
<h1>{{ page.title }}</h1>
<p>{{ page.subheading }}</p>
</header>
<!-- Main Body Content -->
<div class="content">
<section class="row">
<!-- Product Image Banner -->
<div class="col-6 col-12-small product-image">
<section class="">
<img alt="{{ page.title }}" src="{{ page.banner_image }}" class="product-flex" />
<!-- Product Gallery Grid -->
{%- include product-grid-gallery.html -%}
</section>
<!-- Product Description -->
<section class="row product-desc">
<div class="col-12">
<h3>Product Description</h3>
</div>
<div class="col-12">
{{ page.content }}
{% assign author = page.author %}
{%- include author_card.html -%}
<!-- Product Add To Cart Button with Ecommerce Snipcart superpowers! -->
{%- include product-definition.html -%}
{%- include back-to-top.html -%}
</div>
</section>
</div>
<!-- Product Details List -->
<div class="col-6 col-12-small product-details">
<section class="">
<ul>
<h4>Product Details</h4>
<li><b>Name:</b> {{ page.heading }}</li>
<li><b>Price:</b> ${{ page.unit_price | precision: 2 }}</li>
<li><b>Quantity:</b> {{ page.quantity | precision: 1 }}</li>
<li><b>Size(s):</b> {{ page.sizes }}</li>
<li><b>Condition:</b> {{ page.condition }}</li>
<li><b>Color(s):</b> {{ page.colors }}</li>
<li><b>Material Type(s):</b> {{ page.material_types }}</li>
<br />
<h4>Product Specifics</h4>
<li><b>Product ID:</b> {{ page.product_id }}</li>
<li><b>Part Number:</b> {{ page.part_number }}</li>
<li><b>Model Number:</b> {{ page.model_number }}</li>
<li><b>Country Origin:</b> {{ page.country_origin }}</li>
<li><b>Currency Type(s):</b> {{ page.currency_types }}</li>
<li><b>Tags:</b> {{ page.tags }}</li>
<li><b>Tax Code:</b> {{ page.tax_code }}</li>
<li><b>Taxable:</b> {{ page.is_taxable }}</li>
<li><b>Digital Software:</b> {{ page.is_software }}</li>
<li><b>Shippable:</b> {{ page.is_shippable }}</li>
</ul>
{%- if page.is_shippable == true -%}
<ul>
<br />
<h4>Shipping Details</h4>
<li><b>Costs:</b> ${{ page.shipping_price | precision: 2 }}</li>
<li><b>Rates:</b> {{ page.shipping_rates }}</li>
<li><b>Companies:</b> {{ page.shipping_companies }}</li>
<li><b>Weight:</b> {{ page.weight }} lbs</li>
<li><b>Dimensions:</b> {{ page.package_dimensions }}</li>
</ul>
{%- endif -%}
</section>
</div>
</section>
<!-- Related product collection -->
<section class="row related-items">
<div class="col-12">
<h3>More Products</h3>
</div>
{%- assign related_products = site.products | where_exp:"product", "product.url != page.url and product.layout == 'product'" | sample:3 -%}
{%- include product_related.html -%}
</section>
</div>
</div> <!-- Closing Inner -->
</section> <!-- Closing Main Body -->

View File

@ -0,0 +1,43 @@
---
layout: post
---
{%- comment -%}
This layout is the shop index of products with pagination & collections.
{%- endcomment -%}
<!-- Shopping Cart -->
<section class="row product-cart">
<div class="col-12">
<ul>
<li>
<a href="#" class="fas fa-shopping-basket fa-2x snipcart-checkout"><span class="snipcart-total-price product-font-price">$0.00</span></a>
</li>
</ul>
</div>
</section>
<!-- <!-- Shop navigation for categories -->
<!-- {%- include product_cat.html -%} -->
<div class="content">
<!-- Hero Product Post -->
{%- include product_hero.html -%}
<!-- Featured Product Posts -->
<section class="row">
{%- assign featured_posts = paginator.posts | slice: 1, 4 -%}
{%- for post in featured_posts -%}
{%- include product_featured.html -%}
{%- endfor -%}
</section>
<!-- More Products -->
<section class="row">
{%- assign rest = paginator.posts | slice: 5, 11 -%}
{%- for post in rest -%}
{%- include product_rest.html -%}
{%- endfor -%}
</section>
<!-- Pagination to navigate to another collection of posts -->
{% include pagination.html %}
</div>

View File

@ -0,0 +1,11 @@
# allows all bots and users to crawl the site.
User-agent: * Disallow:
Sitemap: https://www.example.com/sitemap.xml
#____ __ ______
#/\ _`\ /\ \ /\__ _\ __
#\ \,\L\_\ \ \___ __ _ __ _____ _\/_/\ \/ _ __ ___ ___ /\_\ ___ ____
#\/_\__ \\ \ _ `\ /'__`\ /\`'__/\ '__`\ /'__`\\ \ \/\`'__/ __`\/' _ `\/\ \ /'___\ /',__\
# /\ \L\ \ \ \ \ \/\ \L\.\\ \ \/\ \ \L\ /\ __/ \ \ \ \ \/\ \L\ /\ \/\ \ \ \/\ \__//\__, `\
# \/_____/\/_/\/_/\/__/\/_/\/_/ \ \ \/ \/____/ \/_/\/_/\/___/ \/_/\/_/\/_/\/____/\/___/
# \ \_\
# \/_/

View File

@ -0,0 +1,66 @@
---
layout: null
sitemap:
exclude: 'yes'
---
<?xml version="1.0" encoding="UTF-8"?>
<urlset
xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
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">
{% for page in site.pages %}
{% unless page.sitemap.exclude == "yes" or page.name == "feed.xml" %}
<url>
<loc>
{{ site.liveUrl }}{{ page.url | remove: "index.html" }}
</loc>
{% if page.sitemap.lastmod %}
<lastmod>{{ page.sitemap.lastmod | date: "%Y-%m-%d" }}</lastmod>
{% elsif page.date %}
<lastmod>{{ page.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
{% if page.sitemap.changefreq %}
<changefreq>{{ page.sitemap.changefreq }}</changefreq>
{% else %}
<changefreq>monthly</changefreq>
{% endif %}
{% if page.sitemap.priority %}
<priority>{{ page.sitemap.priority }}</priority>
{% else %}
<priority>0.3</priority>
{% endif %}
</url>
{% endunless %}
{% endfor %}
{% for collection in site.collections %}
{% for post in collection.docs %}
{% unless post.published == false or post.sitemap.exclude == "yes" or page.name == "feed.xml" %}
<url>
<loc>{{ site.liveUrl }}{{ post.url }}</loc>
{% if post.sitemap.lastmod %}
<lastmod>{{ post.sitemap.lastmod | date: "%Y-%m-%d" }}</lastmod>
{% elsif post.date %}
<lastmod>{{ post.date | date_to_xmlschema }}</lastmod>
{% else %}
<lastmod>{{ site.time | date_to_xmlschema }}</lastmod>
{% endif %}
{% if post.sitemap.changefreq %}
<changefreq>{{ post.sitemap.changefreq }}</changefreq>
{% else %}
<changefreq>monthly</changefreq>
{% endif %}
{% if post.sitemap.priority %}
<priority>{{ post.sitemap.priority }}</priority>
{% else %}
<priority>0.5</priority>
{% endif %}
</url>
{% endunless %}
{% endfor %}
{% endfor %}
</urlset>