Added a demo/test from homepage.
This commit is contained in:
parent
adfd8a4f8a
commit
f0249c199a
17 changed files with 377 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
test/output/
|
BIN
test/content/images/jeffmackinnon.jpg
Normal file
BIN
test/content/images/jeffmackinnon.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 65 KiB |
BIN
test/content/images/maps/20221105-pollyscove-map.png
Normal file
BIN
test/content/images/maps/20221105-pollyscove-map.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 288 KiB |
BIN
test/content/images/screenshots/Screenshot2022-07-05155605.png
Normal file
BIN
test/content/images/screenshots/Screenshot2022-07-05155605.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 354 KiB |
39
test/content/microblog/2022/20221024.rst
Normal file
39
test/content/microblog/2022/20221024.rst
Normal file
|
@ -0,0 +1,39 @@
|
|||
Royal Bank Doesn't Respect You
|
||||
######################################
|
||||
:date: 2022-10-24
|
||||
:author: jeffmackinnon
|
||||
:category: microblog
|
||||
:tags: gripe, rbc, royal-bank
|
||||
:slug: rbc-does-not-respect-you
|
||||
:status: published
|
||||
:image: {photo}microblog/20221017-124028-865A6948.jpg
|
||||
|
||||
.. image:: {photo}microblog/20221017-124028-865A6948.jpg
|
||||
:alt: Pretty Blue Morning Glory
|
||||
|
||||
I had to get on the phone today with RBC support to dispute a charge on my card. The vendor decided to not cancel my account like I asked in the winter, they then switched platforms, locked me out of my account, and then told me that its been more than 30 days so they can't refund me.
|
||||
|
||||
This was a service that I was a paying member for 7y, first with two services they discontinued, then this new membership service. However, the founder sold it to a partner and it went downhill fast from there. This partner is more of the, "all you need to do is write a blog post and then cut it up into things to post everywhere. Its that easy, 1 blog post is 1000000 pieces of content" types of guys. The founder ran a much better ship.
|
||||
|
||||
Anyway, I've been waiting on the phone with RBC Royal Bank for 20min so far, them reminding me that they have high call volumes and I should just do it online.
|
||||
|
||||
First, this can't be done online, I checked.
|
||||
|
||||
Second, if you are experiencing high call volumes for almost 3 years, that just tells me that you don't respect my time and I should always be looking for a better deal. I've been a RBC customer for almost 30y and the best they can do for me is....nothing.
|
||||
|
||||
|
||||
I was able to do the following while I hold.
|
||||
---------------------------------------------------
|
||||
|
||||
1. Write this post
|
||||
#. Start darktable.
|
||||
#. Edit the picture.
|
||||
#. Re-write this post.
|
||||
#. Edit the batch scipt that I use to publish this site.
|
||||
#. Publish this site.
|
||||
#. Tweak the theme.
|
||||
#. Publish the site again.
|
||||
|
||||
And still, 30 minutes in, I'm still just hearing really bad hold music and an automated voice telling me not to give information to people if "it seems to good to be true".
|
||||
|
||||
For this rant, may I present to you, a pretty blue morning glory.
|
14
test/content/microblog/2022/20221026.rst
Normal file
14
test/content/microblog/2022/20221026.rst
Normal file
|
@ -0,0 +1,14 @@
|
|||
Pretty Autumn Colours
|
||||
######################################
|
||||
:date: 2022-10-26 10:00
|
||||
:author: jeffmackinnon
|
||||
:category: microblog
|
||||
:tags: autumn, colours
|
||||
:slug: 2022-autumn-colours
|
||||
:status: published
|
||||
:image: {photo}microblog/20221016-151614-865A6435.jpg
|
||||
|
||||
.. image:: {photo}microblog/20221016-151614-865A6435.jpg
|
||||
:alt: Pretty Leaves
|
||||
|
||||
I was swamped early in October so I didn't get out at the height of the colourful leaves. This is my favourite time of the year and I plan to spend a lot more time on the trails in November and December.
|
14
test/content/microblog/2022/20221027.rst
Normal file
14
test/content/microblog/2022/20221027.rst
Normal file
|
@ -0,0 +1,14 @@
|
|||
More Pretty Autumn Colours
|
||||
######################################
|
||||
:date: 2022-10-27
|
||||
:author: jeffmackinnon
|
||||
:category: microblog
|
||||
:tags: autumn, colours
|
||||
:slug: 2022-more-autumn-colours
|
||||
:status: published
|
||||
:image: {photo}microblog/20221027-133427-865A7067.jpg
|
||||
|
||||
.. image:: {photo}microblog/20221027-133427-865A7067.jpg
|
||||
:alt: Pretty Leaves
|
||||
|
||||
It is way too warm out there for the end of October. It was 19C at 1pm today and I was wearing shorts and a t-shirt. Something that I typically put away for the year during the first weekend of October. I really want to start wearing flannel, but then I would be entirely too warm.
|
16
test/content/microblog/2022/20221028.rst
Normal file
16
test/content/microblog/2022/20221028.rst
Normal file
|
@ -0,0 +1,16 @@
|
|||
Lots of pretty flowers
|
||||
######################################
|
||||
:date: 2022-10-28
|
||||
:author: jeffmackinnon
|
||||
:category: microblog
|
||||
:tags: flowers, colours
|
||||
:slug: pretty-pink-flowers
|
||||
:status: published
|
||||
:image: {photo}microblog/20221014-175333-865A6347.jpg
|
||||
|
||||
.. image:: {photo}microblog/20221014-175333-865A6347.jpg
|
||||
:alt: Pretty pink flowers
|
||||
|
||||
I took this only a week ago, and there are still fresh flowers on the dining room table.
|
||||
|
||||
BTW, if you are interested in checking out Mastodon let me know in the comments and I will give you some tips.
|
14
test/content/microblog/2022/20221029.rst
Normal file
14
test/content/microblog/2022/20221029.rst
Normal file
|
@ -0,0 +1,14 @@
|
|||
Sailboats in the Harbour
|
||||
######################################
|
||||
:date: 2022-10-29
|
||||
:author: jeffmackinnon
|
||||
:category: microblog
|
||||
:tags: sailboat
|
||||
:slug: sailboat-in-the-arm
|
||||
:status: published
|
||||
:image: {photo}microblog/20221029-131307-865A7288.jpg
|
||||
|
||||
.. image:: {photo}microblog/20221029-131307-865A7288.jpg
|
||||
:alt: Sailboats in the Harbour
|
||||
|
||||
No caption today, just a pretty boat
|
14
test/content/microblog/2022/20221031.rst
Normal file
14
test/content/microblog/2022/20221031.rst
Normal file
|
@ -0,0 +1,14 @@
|
|||
A big boat in the harbour
|
||||
######################################
|
||||
:date: 2022-10-31
|
||||
:author: jeffmackinnon
|
||||
:category: microblog
|
||||
:tags: boat,
|
||||
:slug: big-boat-in-harbour
|
||||
:status: published
|
||||
:image: {photo}microblog/20221031-090318-865A7387.jpg
|
||||
|
||||
.. image:: {photo}microblog/20221031-090318-865A7387.jpg
|
||||
:alt: A big in the Harbour
|
||||
|
||||
Yeah, I know, its not a boat, its a ship. But when you *say* "big ship" it sometimes sounds like something else.
|
8
test/content/pages/1-about.rst
Normal file
8
test/content/pages/1-about.rst
Normal file
|
@ -0,0 +1,8 @@
|
|||
About
|
||||
#####
|
||||
:date: 2022-11-14
|
||||
:author: jeffmackinnon
|
||||
:slug: about
|
||||
:status: published
|
||||
|
||||
For my real about page `go here <https://jeffmackinnon.com/about>`__
|
12
test/content/pages/2-now.rst
Normal file
12
test/content/pages/2-now.rst
Normal file
|
@ -0,0 +1,12 @@
|
|||
Now
|
||||
###
|
||||
:date: 2022-11-14
|
||||
:modified: 2022-09-06
|
||||
:author: jeffmackinnon
|
||||
:slug: now
|
||||
:status: published
|
||||
|
||||
Halifax, NS
|
||||
|
||||
I think now pages are awesome, find mine `here <https://jeffmackinnon.com/now/>`__
|
||||
*(This is* `a now page <https://nownownow.com/about>`__\ *, and if you have your own site, you should make one, too.)*
|
59
test/content/pages/4-thesetup.rst
Normal file
59
test/content/pages/4-thesetup.rst
Normal file
|
@ -0,0 +1,59 @@
|
|||
My Pelican Site Setup
|
||||
#####################
|
||||
:date: 2021-12-09
|
||||
:author: jeffmackinnon
|
||||
:slug: my-pelican-ssg-setup
|
||||
:status: published
|
||||
|
||||
Welcome to my homepage, this page outlines how I have my `Pelican <https://getpelican.com>`__ site, this site, set up.
|
||||
|
||||
|
||||
Installed Plugins
|
||||
-----------------
|
||||
|
||||
First, lets talk about plugins. While Pelican is pretty great 'out of the box', there are some things that are missing and there are some great plugins that fill in the gaps.
|
||||
|
||||
Photos
|
||||
______
|
||||
|
||||
The `photos plugin <https://pypi.org/project/pelican-photos/>`__ does exactly the "stuff" that I need for this site. I have tried a couple of other options, but the two features that make this a must have are:
|
||||
|
||||
* They only handle the source images if there is a change. So I don't need to handle 1000s of photos everytime I publish.
|
||||
* It creates simple galleries based on folders.
|
||||
|
||||
Series
|
||||
______
|
||||
|
||||
While the `series plugin <https://github.com/pelican-plugins/series>`__ not something that I expect to use a lot, it will come in handy.
|
||||
|
||||
Sitemap
|
||||
_______
|
||||
|
||||
This is something I would really love to see added to the vanilla pelican application, adding a `sitemap <https://github.com/pelican-plugins/sitemap>`__ to your site is table stakes when it comes to SEO and working with the search engines.
|
||||
|
||||
Plugins installed but rarely used
|
||||
---------------------------------
|
||||
|
||||
I have the `image process plugin <https://github.com/pelican-plugins/image-process>`__ installed but it isn't used right now. I was going to use it to do the processing work for the pictures, but there was two features missing:
|
||||
|
||||
#. There was no way to make galleries.
|
||||
#. They were processed every publish/export
|
||||
|
||||
Both of these features are in the Photos plugin mentioned above.
|
||||
|
||||
I still have it installed because there is a lot more flexibility in how it can be used, and if I want to have `open graph <https://ogp.me/>`__ images that are sized specially for twitter, etc I can't do that with photos.
|
||||
|
||||
Theme
|
||||
-----
|
||||
|
||||
The theme is public `here <https://git.jeffmackinnon.com/jeff/theme-jeffmackinnon.com>`__, at some point I will figure out git releases/tags and how to build a wheel, etc.
|
||||
|
||||
Hosting
|
||||
-------
|
||||
|
||||
I use `websavers <https://clients.websavers.ca/whmcs/aff.php?aff=65>`__ for my hosting and domain registration. It is a great local webhost for any homepage or small business site.
|
||||
|
||||
FTP Client
|
||||
----------
|
||||
|
||||
I really want to get `lftp <https://lftp.yar.ru/>`__ working so I can just ``make lftp`` from the command like and get everything updated, but there is still some debugging there. So instead I use `Filezilla <https://filezilla-project.org/>`__ which is a very robust FTP solution.
|
2
test/content/robots.txt
Normal file
2
test/content/robots.txt
Normal file
|
@ -0,0 +1,2 @@
|
|||
User-agent: *
|
||||
Disallow: /
|
27
test/content/wandering/20220701.rst
Normal file
27
test/content/wandering/20220701.rst
Normal file
|
@ -0,0 +1,27 @@
|
|||
Taylor Head Provincial Park
|
||||
##################################
|
||||
:date: 2022-07-01
|
||||
:author: jeffmackinnon
|
||||
:tags: birds, flowers, hiking
|
||||
:slug: 20220701-Taylor-Head-Provincial-Park
|
||||
:status: published
|
||||
:gallery: {photo}wandering/20220701-Taylors-Head{Taylor Head Sort Loop}
|
||||
|
||||
For Canada Day we went on an adventure to `Taylor Head Provincial Park <https://www.novascotia.com/see-do/outdoor-activities/taylor-head-provincial-park/1863>`__. I had a plan to do the full loop, but when we go there moderate from AllTrails was a bit harder/muddier than I expected. And for 4km for my hiking partner, through a lot of muddy patches was great.
|
||||
|
||||
The 4km loop from the map was a bit more than that `according to my Garmin <https://connect.garmin.com/modern/activity/9122342856>`__ but we did have a couple of false starts finding the start of the trail and then finding where we cut across.
|
||||
|
||||
.. figure:: images/screenshots/Screenshot2022-07-05155605.png
|
||||
:alt: A GPS track from garmin
|
||||
|
||||
Our GPS track
|
||||
|
||||
.. figure:: {photo}wandering/20220701-Taylors-Head/20220701-115946-IMG_4220.jpg
|
||||
:alt: The map at the parking lot
|
||||
|
||||
The Map at the Parking Lot
|
||||
|
||||
The weather was amazing on the hike, warm, but not too warm, and lots of different terrain.
|
||||
|
||||
I can't wait to go back, probably later in August, or September. If I take the little guy we will get there a bit earlier with a full lunch if we are going to do the entire loop.
|
||||
|
32
test/content/wandering/20221105-PollysCove.rst
Normal file
32
test/content/wandering/20221105-PollysCove.rst
Normal file
|
@ -0,0 +1,32 @@
|
|||
Polly's Cove - Most of the way
|
||||
##################################
|
||||
:date: 2022-11-13
|
||||
:author: jeffmackinnon
|
||||
:tags: birds, flowers, hiking, rocks
|
||||
:slug: 20221105-Pollys-Cove
|
||||
:status: published
|
||||
:image: {photo}wandering/20221105-PollysCove/20221105-121011-865A7519.jpg
|
||||
:gallery: {photo}wandering/20221105-PollysCove
|
||||
|
||||
.. figure:: {photo}wandering/20221105-PollysCove/20221105-121011-865A7519.jpg
|
||||
:alt: Lots of rocks.
|
||||
|
||||
I haven't been getting out exploring as much, but on the 5th I took the kids to the `Polly's Cove trail <https://osm.org/go/Z12SF0sBh-?m=>`__.
|
||||
|
||||
.. figure:: /images/maps/20221105-pollyscove-map.png
|
||||
:alt: Open Street Maps view of Polly's Cove Trail
|
||||
|
||||
We headed east towards Barbara Basin, but the trail was a little too rough for the youngests legs, so we found a good spot for our snack north of those islands.
|
||||
|
||||
.. figure:: {photo}wandering/20221105-PollysCove/20221105-123725-865A7549.jpg
|
||||
:alt: Lunch spot
|
||||
|
||||
The Lunch Spot
|
||||
|
||||
Overall its a nice spot, I think I would go again with just the older one, or when the smaller one gets bigger. No rush though, its not a spot that I would go far out of the way for. `Taylor Head <{filename}20220701.rst>`__ was a much better spot. To give an exmaple, I put away my camera and just used my phone about 1/2 way through, there just wasn't anything to shoot. The only signs of wildlife that I saw was a couple of gulls, nothing else.
|
||||
|
||||
.. figure:: {photo}wandering/20221105-PollysCove/20221105-121404-865A7524.jpg
|
||||
:alt: Lots of hills for little legs
|
||||
|
||||
Lots of hills for little legs
|
||||
|
125
test/pelicanconf.py
Normal file
125
test/pelicanconf.py
Normal file
|
@ -0,0 +1,125 @@
|
|||
from pickle import TRUE
|
||||
|
||||
|
||||
AUTHOR = 'Jeff MacKinnon'
|
||||
SITENAME = "JeffTheme-Demo"
|
||||
SITEURL = ''
|
||||
|
||||
PATH = 'content'
|
||||
|
||||
TIMEZONE = 'America/Glace_Bay'
|
||||
|
||||
DEFAULT_LANG = 'en'
|
||||
|
||||
# URL Settings
|
||||
ARCHIVES_SAVE_AS = 'archives.html'
|
||||
YEAR_ARCHIVE_SAVE_AS = 'archive/{date:%Y}/index.html'
|
||||
#MONTH_ARCHIVE_SAVE_AS = 'archive/{date:%Y}/{date:%b}/index.html'
|
||||
|
||||
# Feed generation is usually not desired when developing
|
||||
FEED_ALL_ATOM = None
|
||||
CATEGORY_FEED_ATOM = None
|
||||
TRANSLATION_FEED_ATOM = None
|
||||
AUTHOR_FEED_ATOM = None
|
||||
AUTHOR_FEED_RSS = None
|
||||
|
||||
|
||||
# Blogroll
|
||||
LINKS = (
|
||||
('JMK Engineering Inc.', 'https://jmkengineering.com'),
|
||||
("Jeff's Homepage", 'https://jeffmackinnon.com'),
|
||||
('Pelican', 'https://getpelican.com/'),
|
||||
('Python.org', 'https://www.python.org/'),
|
||||
('Jinja2', 'https://palletsprojects.com/p/jinja/'),
|
||||
)
|
||||
|
||||
# Social widget
|
||||
SOCIAL = (
|
||||
('Mastodon', 'https://bluenoser.me/@Jeff'),
|
||||
)
|
||||
|
||||
DEFAULT_PAGINATION = 6
|
||||
|
||||
# Uncomment following line if you want document-relative URLs when developing
|
||||
RELATIVE_URLS = True
|
||||
|
||||
DISPLAY_CATEGORIES_ON_MENU = True
|
||||
DELETE_OUTPUT_DIRECTORY = False
|
||||
STATIC_PATHS = ['images','../content']
|
||||
SUMMARY_MAX_LENGTH = 20
|
||||
|
||||
THEME = '../../theme-jeffmackinnon.com'
|
||||
# ####################################################
|
||||
# JeffTheme variables
|
||||
# ####################################################
|
||||
|
||||
#DIRECT_TEMPLATES = ['posts'] # If you already have a direct templates just add posts.
|
||||
|
||||
#THEME_COLOUR = 'css-blue' # Leave commented
|
||||
|
||||
## The search things
|
||||
DUCKDUCKGOSEARCHURL = 'jeffmackinnon.com'
|
||||
BIO_IMAGE = 'jeffmackinnon.jpg' # Make sure that this is in the "images" folder
|
||||
SHOWCATEGORIES = True
|
||||
SHOWTAGS = False
|
||||
|
||||
|
||||
|
||||
## The Social Things
|
||||
SOCIAL_SHARE = True
|
||||
SOCIAL_TWITTER = 'jeffmackinnon'
|
||||
SOCIAL_GITHUB = 'Jeffmackinnon'
|
||||
SOCIAL_LINKEDIN = 'jeffmackinnon'
|
||||
SOCIAL_FLICKR = 'jeffmackinnon'
|
||||
SOCIAL_MASTODON = 'https://bluenoser.me/@Jeff'
|
||||
MICROBLOG = 'microblog'
|
||||
MASTODON_COMMENTS = False
|
||||
TWITTER_COMMENTS = True
|
||||
COMMENTS = False
|
||||
|
||||
|
||||
#Contact Things
|
||||
#CONTACT_PHONE_NUM = '+1 (902) 237-9984'
|
||||
#CONTACT_EMAIL = 'jeff@jeffmackinnon.com'
|
||||
CONTACT_HOME_ADDR = 'Halifax, NS'
|
||||
#CONTACT_BUSINESS_ADDR =''
|
||||
|
||||
SITELICENSE = '<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.'
|
||||
TRACKING = False
|
||||
IMAGETRACKINGCODE = ''
|
||||
|
||||
# This is for https://fediring.net/#table-of-members and is located in the sidebar
|
||||
FEDIRING = False
|
||||
FEDIRINGRANDOM = True
|
||||
FEDIRINGURL = '' # This is needed because the SITEURL includes the https:// and Fediring doesn't want that part.
|
||||
|
||||
COMMENTS = False
|
||||
|
||||
|
||||
# That's all folks
|
||||
# ####################################################
|
||||
|
||||
|
||||
# Setting up the pelican-photos plugin "stuff"
|
||||
|
||||
PHOTO_LIBRARY = "A:/Drive/Pictures/publichomepage"
|
||||
PHOTO_GALLERY = (4096, 4096, 90) # This is the maximum length, height and jpg quality
|
||||
PHOTO_ARTICLE = (1920, 1920, 80)
|
||||
PHOTO_SQUARE_THUMB = True
|
||||
PHOTO_THUMB = (400, 400, 60)
|
||||
PHOTO_RESIZE_JOBS = -1
|
||||
PHOTO_WATERMARK = True
|
||||
PHOTO_WATERMARK_TEXT = 'jeffmackinnon.com'
|
||||
|
||||
PHOTO_EXIF_KEEP = True
|
||||
PHOTO_EXIF_REMOVE_GPS = True # I do want to remove GPS from all the images
|
||||
PHOTO_EXIF_COPYRIGHT = 'COPYRIGHT'
|
||||
PHOTO_EXIF_COPYRIGHT_AUTHOR = 'Jeff MacKinnon'
|
||||
|
||||
# Sitemap generation settings
|
||||
SITEMAP = {
|
||||
}
|
||||
|
||||
IMAGE_PROCESS = {
|
||||
}
|
||||
|
Loading…
Reference in a new issue