1
0
Fork
You've already forked leon2
0
Redoing Jekyll site, building it on Jekyll Tachyons
JavaScript 92%
SCSS 6.9%
HTML 1.1%
Find a file
2024年01月28日 15:59:00 +00:00
.cache Trying out webmentions 2019年05月19日 20:41:35 +01:00
.forestry Update from Forestry.io - Updated Forestry configuration 2019年04月07日 14:41:37 +00:00
_data Displayed comments from csv data file 2019年05月12日 17:14:06 +01:00
_drafts Added some more posts 2021年11月28日 20:17:04 +00:00
_includes Reindexed home 2024年01月28日 15:59:00 +00:00
_layouts Made small headings smaller 2024年01月19日 12:25:13 +00:00
_links Create Links "2019年12月15日-tory-landslide-progressives-split" 2019年12月15日 08:06:46 +00:00
_notes Create Notes "2020年01月19日-brave-old-new-world" 2020年01月19日 21:05:30 +00:00
_old-posts Added all posts to folder and set up site config 2018年07月02日 14:53:00 +01:00
_posts Added contentful post cos y’never know, although not figuring out 20% of five might not help 2024年01月25日 17:52:29 +00:00
_sass Made small headings smaller 2024年01月19日 12:25:13 +00:00
_work Sherlock to lp subdomain 2024年01月25日 17:40:40 +00:00
about Reduced home email size and made default pages use e-content 2024年01月19日 11:59:33 +00:00
admin Paginated collections 2019年06月02日 22:47:08 +01:00
api Updated API page 2021年02月06日 12:17:24 +00:00
assets Self-hosting Lab manifesto 2017 2020年03月01日 15:02:45 +00:00
comment-received Added comment lists 2019年05月05日 19:51:36 +01:00
css Changes again 2021年03月14日 22:20:05 +00:00
feed Removed post.note check from top level RSS feed as notes now a collection 2019年05月15日 08:22:03 +01:00
fonts Using Molde locally 2022年08月06日 15:49:39 +01:00
images New GTM case study 2024年01月24日 16:24:22 +00:00
js Added webmention.js from https://github.com/PlaidWeb/webmention.js 2020年12月13日 20:25:55 +00:00
links Home page changes, reverted to Franklin 2020年01月28日 19:39:28 +00:00
notes Home page changes, reverted to Franklin 2020年01月28日 19:39:28 +00:00
now Updated now 2021年12月11日 18:18:54 +00:00
posts Thinned out writing page article list, added subs to all listed articles 2021年02月06日 09:32:02 +00:00
work Redesign 2024年01月19日 11:41:58 +00:00
.DS_Store Sherlock to lp subdomain 2024年01月25日 17:40:40 +00:00
.gitignore Some comment work 2019年05月06日 22:14:38 +01:00
.htaccess Added htaccess 2024年01月21日 07:43:11 +00:00
.ruby-version Ruby version to 2.6.3 .ruby-version 2019年09月10日 12:42:29 +01:00
404.md Added htaccess 2024年01月21日 07:43:11 +00:00
_config.yml Reindexed home 2024年01月28日 15:59:00 +00:00
_redirects Added some more redirects 2018年07月03日 12:06:23 +01:00
android-chrome-192x192.png Favicons and an up arrow 2021年06月17日 20:16:58 +01:00
android-chrome-512x512.png Favicons and an up arrow 2021年06月17日 20:16:58 +01:00
apple-touch-icon.png Favicons and an up arrow 2021年06月17日 20:16:58 +01:00
favicon-16x16.png Favicons and an up arrow 2021年06月17日 20:16:58 +01:00
favicon-32x32.png Favicons and an up arrow 2021年06月17日 20:16:58 +01:00
favicon.ico Favicons and an up arrow 2021年06月17日 20:16:58 +01:00
Gemfile Sherlock to lp subdomain 2024年01月25日 17:40:40 +00:00
Gemfile.lock Moved articles from tdp to lp.com 2022年11月01日 20:25:25 +00:00
index.md New GTM case study 2024年01月24日 16:24:22 +00:00
LICENSE Initial commit 2018年07月02日 11:47:16 +01:00
README.md Added README 2018年07月02日 11:51:56 +01:00
site.webmanifest Favicons and an up arrow 2021年06月17日 20:16:58 +01:00
staticman.yml Some comment work 2019年05月06日 22:14:38 +01:00

Leon Paternoster version ?

This is an old website which has largely remained in tact over the years.

It's been built on Jekyll for 5 (five!) years, and I'm starting again using my Jekyll Tachyons framework. It should be a quick process, but let's see. Back to basics.


Jekyll Tachyons docs

Jekyll Tachyons is a base Jekyll theme that:

  • imports Tachyons modules as SASS files
  • provides an option to inlines styles
  • creates basic default and post layout files
  • adds a c-sans-serif variable to _variables.scss
  • adds a .c-sans-serif rule to _c.scss

Installation

Clone or fork this repo, or download the files. Then:

  1. if you haven't done so already, install Bundler
  2. navigate to the theme folder
  3. run bundle update
  4. run bundle install
  5. run bundle exec jekyll s to serve and build the site

Selecting Tachyons modules

Simply comment out any modules you don't want by preceding them with //.

The Tachyons modules live in the _sass directory, along with 2 additional SASS files:

  • _c.scss, which includes any additional user styles (I normally precede these with a 'c-' to distinguish them from Tachyons selectors).
  • _variables.scss, which includes any variables you want to refer to in _c.scss

Alternatively, import just the following files. You can comment out or even delete the rest.

  1. _tachyons-4.8.1.scss
  2. _variables.scss
  3. _c.scss

If you haven't created any variables and/or custom rules, you'll only need to import _tachyons-4.8.1.scss.

Inlining styles in the head or linking to a separate CSS file

You can get the theme to include styles within <style></style> tags in the document head. This saves a call to a separate CSS file, maybe speeding your site up a bit.

To inline your styles make sure you include this line in _config.yml:

css: inline

If you don't include the line, or change it to something like css: linked, the theme will link to a separate CSS file (/css/style.css).

Note that the theme is set to inline styles by default.

Media queries

Tachyons is mobile first, i.e. media query breakpoints are only applied as the screen width increases. Default styles are applied to all screen widths.

It uses three breakpoints, which can be applied to almost all tachyons selectors through the selector-[breakpoint-shorthand] syntax. For example, the db selector (display: block) can be employed in these ways:

  • db (default, applies to all screen widths)
  • db-ns (applies to medium and large screen widths)
  • db-m (applies to medium screen widths only)
  • db-l (applies to large screen widths and up only)

You can define the ranges of ns, m and l in the _media-queries.scss file by overriding the defaults after they've been declared.

Import Order

Because the SASS files refer to each other and _c.scss may refer to _variables.scss, the first files you import should be:

  1. _normalize.scss
  2. _media-queries.scss
  3. _variables.scss
  4. _colors.scss
  5. _spacing.scss

Moi