diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..9a4d142 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,24 @@ +name: CI + +on: + pull_request: + branches: [ master ] + +jobs: + buildandhtmlproof: + runs-on: self-hosted + + steps: + - uses: actions/checkout@v2 + + - name: install prerequisites + run: gem install minima jekyll html-proofer + + - name: jekyll build + run: bundle exec jekyll build + + - name: html proofer + run: bundle exec htmlproofer --url-ignore "http://localhost:8153/go" ./_site + + + diff --git a/.gitignore b/.gitignore index 666de10..57b79d3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ _site .sass-cache .jekyll-metadata +.jekyll-cache/ Gemfile.lock diff --git a/.post-template b/.post-template new file mode 100644 index 0000000..7086d42 --- /dev/null +++ b/.post-template @@ -0,0 +1,7 @@ +--- +layout: post +title: title +author: Paul Ryan +summary: summary +date: 2020-05-20 +--- diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index d7eaf05..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -language: ruby -rvm: -- 2.3.0 -install: gem install minima jekyll html-proofer -script: ./script/cibuild -env: - global: - - NOKOGIRI_USE_SYSTEM_LIBRARIES=true -sudo: false diff --git a/CNAME b/CNAME index ce2983a..69d64d7 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -WWW.SHARPRED.COM +SHARPRED.COM diff --git a/Gemfile b/Gemfile index c55f4f5..9d80ca3 100644 --- a/Gemfile +++ b/Gemfile @@ -1,24 +1,8 @@ source "https://rubygems.org" ruby RUBY_VERSION -# 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" +gem 'jekyll-watch' -# This is the default theme for new Jekyll sites. You may change this to anything you like. gem "minima" gem "html-proofer" -# 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-github-metadata", "~> 1.0" -# end diff --git a/README.md b/README.md index 0503213..ae0282e 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,7 @@ # sharpred.github.io blog site + +## running locally + +In a terminal window `bundle exec jekyll build --watch` before running `bundle exec jekyll serve --incremental` in a separate window. This will run the site at http://127.0.0.1:4000 + diff --git a/_config.yml b/_config.yml index e45b2a5..535866c 100644 --- a/_config.yml +++ b/_config.yml @@ -1,33 +1,17 @@ -# Welcome to Jekyll! -# -# 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 these 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 -# 'jekyll serve'. If you change this file, please restart the server process. - -# 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 }}. -title: Your awesome title -email: your-email@domain.com +title: Sharpred +email: paul@sharpred.com description: > # this means to ignore newlines until "baseurl:" - Write an awesome description for your new site here. You can edit this - line in _config.yml. It will appear in your document head meta (for - Google search results) and in your feed.xml site description. + Paul Ryan, Mobile App Developer baseurl: "" # the subpath of your site, e.g. /blog -url: "http://example.com" # the base hostname & protocol for your site -twitter_username: jekyllrb -github_username: jekyll +url: "https://sharpred.com" # the base hostname & protocol for your site +twitter_username: sharpred +github_username: sharpred # Build settings markdown: kramdown theme: minima # from https://jekyllrb.com/docs/continuous-integration/ -exclude: [vendor] -# from http://jmcglone.com/guides/github-pages/ -#permalink: /blog/:year/:month/:day/:title +exclude: [vendor, gcp, google575963d4adf7f984.html] + +# Google services +google_analytics: UA-179410290-1 diff --git a/_includes/analytics.html b/_includes/analytics.html new file mode 100644 index 0000000..7e6d7a4 --- /dev/null +++ b/_includes/analytics.html @@ -0,0 +1,8 @@ +(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); + + ga('create', '{{ site.google_analytics }}', 'auto'); + ga('send', 'pageview'); + \ No newline at end of file diff --git a/_includes/head.html b/_includes/head.html new file mode 100644 index 0000000..52a4c22 --- /dev/null +++ b/_includes/head.html @@ -0,0 +1,10 @@ + + + + + {% if jekyll.environment == 'production' %} + {% include analytics.html %} + {% endif %} + + + \ No newline at end of file diff --git a/_layouts/default.html b/_layouts/default.html index 78e9fc4..e6628f3 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -3,10 +3,8 @@ {{ page.title }} - - - +