Skip to content

Latest commit

 

History

History
209 lines (158 loc) · 12.6 KB

project-notes.md

File metadata and controls

209 lines (158 loc) · 12.6 KB

prospra-11ty-11ta Project Startup Notes

This is a record of the steps I took to generate the prospra-11ty-11ta repo from https://github.com/11ta/11ta-template/ up to the Switch Server branch of transmigrating PROSPRA.com from WordPress to Cloudflare Pages.

I present these notes chronologically, with most recent at the top. So the main sections are:

  1. What Next
  2. Snagging List
  3. Branch commit / Pull Request notes from 11ta-template
  4. Original 11ta-template README

What Next

This project continues with progress notes recorded in Issues. Also, I will generate a duplicate repo to create a template for my new and transmigrated sites.


Snagging List

  • localhost changed in src/_data/build.js and src/_data/meta.js.

Branch commit / Pull Request notes from 11ta-template listed latest first.

220827 Tailwind

I can't figure this. Changing tailwind.css deploys OK in Gitpod. But not in Cloudflare Pages. So I've added style in base.njk until I can work it out or move away from 11ta.

210927b Switch Server (3)

My confusion regarding the point of dividing content between pages and posts continues. I guess I should research it, Because my lack of a definitive answer is slowing progress on my ideal template development. As far as the mechanics is concerned:

  • src/_includes/components/nav.njk only considers pages. So I've changed it to collections.all
  • index.md needed date and author

210927a Switch Server (2)

I missed that social shares were included in post layouts. So I need to:

  • Delete sharing app from Cloudflare.
  • Turn reddit off in src/_data/structure.js.
  • Add code to pages. I'm going to treat all my content pages as posts and see how this looks before switching server.

210926a Switch Server

Check and tidy all files, re-write this README, and redirect domain to Cloudflare Pages. I spotted that I overlooked the social links. But a repo search for shanerobinson soon told me where to change that. Also it pointed me to package.json that I need to update. So, the tasks for this branch are:

  • edit src/_data/social.json. ✅
  • edit package.json. ✅
  • move these notes to project-notes.md. ✅
  • move any remaining tasks to Issues. ✅
  • rewrite README.md as a tech intro to PROSPRA.com ✅

210925c Posts Tidy

I should have sorted out the author settings before this stage. Because the blog can't show my author details. Also, it looks like the pages frontmatter needs amendment so that the tags list shows the same info as showing for posts. So, amendments for this are:

  • amend intro on src/tags.njk
  • add excerpt and author to admin pages frontmatter
  • add src/assets/authors/keith-taylor.webp
  • edit src/authors.njk

Then complete tasks for this branch:

  • Delete old template posts.
  • Delete old home images.
  • Complete welcome post next steps and change "Logically organizing activities for less worry and more time." to "Logically organize activities to reach better goals."
  • Edit index.md and remove progress notes.

210925b 404 Content

Mindmup prepared, so change some content. But search engine image needs to be set after server-switch.

210925b Workflow Note

For all prior steps, I created a branch in Github, made the changes, then prevcheckediewed the latest automatic Cloudflare Pages preview before Pull Requesting back to main branch. However, this creates issues:

  1. Every commit starts a Cloudflare deploy, which can create a backlog where a few files need changing.
  2. It's very easy for me to work on the wrong branch in Github.
  3. File manipulation is tedious in Github.

Github experts might have great ways round these issues. But in the past, I've found that Gitpod helps me. So I've moved to that. Although I still have to decide if I should Gitpod the main branch, or create a new Github branch first. For this update, I'm working on main branch in Gitpod. Later, as I promote my own templates, I'll consider other editing options. Including forestry.io.

NB: I should not have used the main branch in Gitpod. Instead, the workflow should be:

  1. Create new branch in Github.
  2. Use new branch in Gitpod.
  3. Push amended new branch to Github (triggering Cloudflare Pages preview deployment)
  4. Push to main branch in Github (triggering live site deployment).

210925a Site Logos

There are SVG logos (desktop and mobile) with instructions at SVG - Shortcode. But I'm invested in WebP images for this site. So I'll leave learning about SVG (and probably Inkscape) for later. Which means changing /src/_includes/components/nav.njk. Also set favicons:

  • src/assets/images/favicon/apple-touch-icon.png (180x180)
  • src/assets/images/favicon/favicon-16x16.png
  • src/assets/images/favicon/favicon-32x32.png

210917a New Admin Pages

  • Purpose - Current phase: provide examples from my projects. Next phase: prepare generalized templates that help resolve common concerns (Q+A, Professional Consulting for various topics). ✅
  • Contact - Raise or comment on PROSPRA Github Issues. ✅
  • Privacy - Brave browser, serverless so no Personal Info stored, cookies optional. 3rd parties I use - link to privacy for Cloudflare, Clarity, AdSense. ✅
  • T&Cs - Information is presented for you to discuss with your professional advisers. It's up to you and your professional advisers to check my facts and evaluate my opinions and experiences. I'm trying to help you with generalized information. But you and your advisers must take responsibility for how you apply my information to your circumstances. What has worked for me, might not work for you. ✅
  • Help. ✅
  • Search (including logo for gcse to be linked after server switch). ✅
  • News (Notifications). ✅ At this time, I don't want to get bogged down with TailwindCSS. Because the default settings are mostly acceptable. However, there is no <dt> styling. So the Definition List titles get lost on the page. Therefore, I'll style dt like one of the heading tags for now. Then I can look deeper into styling once this site and others are up and running.

210904a Footer & Search

  • /about/ hierarchy on WordPress to be replaced by /about-prospra-com/ folder. Renamed src/about.md to src/about-prospra/about-prospra-com.md
  • New admin pages needed. But for now, link to about page dl anchors.
  • /src/_includes/partials/footer.njk [Home] | [Contact] | [Purpose] | [Privacy] | [T&Cs] | [Notifications] | [Help] | [Search] links and Clarity script.

210823b 1st Post

PROSPRA.com just needs a post to introduce new website features and a heads-up on forthcoming projects. And that's really all the template needs - one post to edit or delete similar to a WordPress install

  • /src/blog.njk -> prospra-blog.njk
  • /src/posts/*.md - added Welcome to PROSPRA Activities Arranger Blog

210823a Import Tidy

One page had bad link as revealed by Simply Static log. Fixed by editing output on new site. Because quicker than editing WordPress and re-importing.

210819a Import WP site

Done now to ensure the ideas will work before investing in new content. Also brings images in rather than uploading duplicate assets. Requires additional passthrough statement in /eleventy.js and unzip in Gitpod (because I can't see how to do that in GitHub web interface). WordPress index.html renamed as /prospra-wp-2020

210819a 1st Content

  • about.md Template fields set in my project MindMup. Also default about.md layout update in my Snippets file. Working towards a fast workflow for new 11ty sites. Note, /about/ should be renamed to /about-domain-tld/ so all admin pages can stay together in that domain folder.

210818b 1st Config

Usually, I create a 1st Config branch to get a working site with config changes as per original README instructions and note files changed with any additional notes. Most of this detail is deleted from final README, but it serves to keep track of installation progress. The configuration is described on the Home page:

  • /src/_data/meta.js
    • KCT_TEMPLATE_siteName PROSPRA Activity Arranger
    • KCT_TEMPLATE_siteDescription 7 Step Problem Solver & Task Organizer using PROSPRA Activity Arranger
    • KCT_TEMPLATE_siteImage [to set]
    • KCT_TEMPLATE_authorName Keith Taylor
    • KCT_TEMPLATE_authorURL keith-taylor
    • KCT_TEMPLATE_authorEmail shrewdies@gmail.com
    • KCT_TEMPLATE_twitterSite @KeithTaylor
    • KCT_TEMPLATE_twitterCreator @KeithTaylor
    • KCT_TEMPLATE_address: { street: '123 Main Street', city: 'Anytown', state: 'KZ', zip: '54321', phoneDisplay: '+1 (123) 456-7890', phoneCall: '+11234567890', email: 'hello@domain.com', }
  • index.md
    • KCT_TEMPLATE_HomePage_Title PROSPRA Activity Arranger
    • KCT_TEMPLATE_Original_URL https://prospra.com/
    • KCT_TEMPLATE_Source 11TA - 11ty, TailwindCSS, & Alpine.js Template
    • KCT_TEMPLATE_headingText Did you bite off more tasks
      than you can chew?
    • KCT_TEMPLATE_subheadingText Sink your keith into better activity arranging!

authorURL links to authors page, so that needs customizing.

210818a Deploy CP

ISC license added. Note, Cloudflare Pages default settings for Eleventy don't work on this template. Although they could be amended, the easiest way is to change CP defaults to settings from netlify.toml. Namely...

  • Build command: npm run build
  • Build output directory: /dist Otherwise, Tailwind doesn't get installed.

Original 11TA README below...


11TA - 11ty, TailwindCSS, & Alpine.js Template

UPDATE v2.0.0 - Breaking Changes In order to provide scalability and cleaner frontmatter controls in current Posts (and upcoming Products) collections, the Frontmatter keys were updated which required updates to /src/_includes/components/*.njk, tailwind.config.js, and other templates. I apologize for the inconvenience.

I set out to build a starter project template for 11ty that has TailwindCSS and Alpine.js baked in.

Version 1.0.0 morphed into a deeply customizable, full featured, text-based CMS for managing small websites with easy-to-manage configuration files in the /src/_data/ directory.

Netlify Status

Lighthouse Performance Lighthouse Accessibility Lighthouse Best Practices Lighthouse SEO


Live Demo

The live demo at "11ta.netlify.app" provides a feature list, and the evolving blog posts each highlight and provide examples of different features, shortcodes, customizations, and frontmatter controls.

🔥 Credit 🔥

First and foremost, I want to credit the 11ty community, especially those listed in the starter projects!

Specifically, the following starter projects helped me understand the power and flexibility of 11ty and from their examples I was able to extend the functionality to build this system:

Deploy and Host at Netlify Automatically

To automatically deploy this Template to Netlify for free hosting, make sure you're logged in to your Netlify account and then simply click the Deploy to netlify button below.

Deploy to Netlify

Install and Deploy Manually

  • Duplicate this repository by clicking Use this template above
  • Clone the repository locally
  • Run npm install to install dependencies
  • npm run dev to work locally

Planned

  • Search
  • More Structural controls for Index Page
  • Easy add Collections: Projects, Services, Jobs, etc.
  • "Themed" versions for Portfolios/Creatives, Agencies, Digital Gardens, etc.
  • Fully documented migration of Wordpress to 11ty
  • Snipcart integration