Giter Site home page Giter Site logo

factastichealth_website's Introduction

factastichealth website

Priamry deployment:

https://vigorous-hawking-a51951.netlify.app/

Alternative deployment:

https://admiring-edison-538e61.netlify.app/

Categories and tags

Categories and tags are added ad-hoc. If an article has a tag, the tag exists and a tag page is created. If a tag is removed from every article, the tags gets removed and the tag page is never created. Same for categories.

Post order

Posts are ordered by date, from newer to older.

Images with captions

For Kramdown (the Markdown parser) to recognize images as figures with captions, this special syntax is required:

Surrounding text

![Image caption](/image/url.jpg){:standalone}

More text

The {:standalone} part signals Kramdown to create a <figure> HTML element with a caption.

For Netlify CMS, add an image and turn the editor into Markdown mode so you can add the standalone syntax.

Netlify CMS

Visit https://factastichealth.com/admin/ and login with Github account to edit site contents. To configure this:

  • Visit Settings > Access Control on Netlify's panel
  • Install Github as an OAuth Provider

More documentation here:

Currently, there's a bug preventing spaces on the tags and categories fields. For the time being, tags and categories with spaces can be edited manually.

Adding articles manually

Blog

Create a file _posts/aaaa-mm-dd-downcase-title-without-spaces.md. aaaa-mm-dd is the publication date, for instance 2021-03-31. After that comes the "slug" which acts as the URL, so an article entitled "The Power of Fasting and Why am I Doing It" has a slug of the-power-of-fasting-and-why-am-i-doing-it and its URL will be https://factastichealth.com/the-power-of-fasting-and-why-am-i-doing-it/.

Template for new files:

---
layout: post
categories:
- Category
- Category 2
title: Article title
tags:
- Tag
- Tag 2
image: /path/to/file.jpg
---

Markdown content

The .md extension is important for Netlify CMS to be able to edit articles. .markdown won't work.

Pages

Pages are files under _pages/slug.md, without a date.

---
layout: page
title: Page title
footer: true
---

Markdown content

The footer field is used to determine if a page is linked from the footer or not.

Wordpress migration

Articles that existed on Wordpress have an id field to match them to the posts table. Images were downloaded on the wp-content/ directory so they keep their URLs.

Newsletter

Configure Netlify environment with:

JEKYLL_NEWSLETTER_FROM
JEKYLL_NEWSLETTER_TO
JEKYLL_NEWSLETTER_USERNAME
JEKYLL_NEWSLETTER_PASSWORD

factastichealth_website's People

Contributors

android10 avatar bryanmr avatar fauno avatar giacomolaw avatar gkcnb avatar leninalbertolp avatar o-mutt avatar securesnowball avatar selimerunkut avatar tomer-ben-david avatar wowthemesnet avatar

Watchers

 avatar  avatar

Forkers

fauno

factastichealth_website's Issues

netlify deploy is not working because of link checker plugin

12:05:37 AM: ✖ FAIL load _site/wp-content/uploads/2020/04/20190517_133542-960x720.jpg
12:05:37 AM: | operator: load
12:05:37 AM: | expected: 200 _site/wp-content/uploads/2020/04/20190517_133542-960x720.jpg
12:05:37 AM: | actual: ENOENT: no such file or directory, open '/opt/build/repo/_site/wp-content/uploads/2020/04/20190517_133542-960x720.jpg'

after deleting a post netlify-plugin-checklinks fails

1:07:39 AM: Build ready to start
1:07:41 AM: build-image version: 3571f0130496395a23bffe9820bc78b4f73a6234
1:07:41 AM: build-image tag: v3.7.0
1:07:41 AM: buildbot version: c469f7ab4d394d961ca036b1163fdbb6ef9fb78c
1:07:41 AM: Fetching cached dependencies
1:07:41 AM: Starting to download cache of 239.8MB
1:07:43 AM: Finished downloading cache in 1.77205763s
1:07:43 AM: Starting to extract cache
1:07:48 AM: Finished extracting cache in 4.747932349s
1:07:48 AM: Finished fetching cache in 6.563298023s
1:07:48 AM: Starting to prepare the repo for build
1:07:48 AM: Preparing Git Reference refs/heads/master
1:07:50 AM: Different publish path detected, going to use the one specified in the Netlify configuration file: '_site' versus '_site/' in the Netlify UI
1:07:50 AM: Different build command detected, going to use the one specified in the Netlify configuration file: 'bundle exec jekyll build' versus 'jekyll build' in the Netlify UI
1:07:50 AM: Starting build script
1:07:50 AM: Installing dependencies
1:07:50 AM: Python version set to 2.7
1:07:51 AM: Started restoring cached node version
1:07:53 AM: Finished restoring cached node version
1:07:54 AM: v12.18.0 is already installed.
1:07:54 AM: Now using node v12.18.0 (npm v6.14.4)
1:07:54 AM: Started restoring cached build plugins
1:07:54 AM: Finished restoring cached build plugins
1:07:54 AM: Attempting ruby version 2.7.1, read from environment
1:07:55 AM: Using ruby version 2.7.1
1:07:55 AM: Using bundler version 2.1.4 from Gemfile.lock
1:07:56 AM: Using PHP version 5.6
1:07:56 AM: Started restoring cached ruby gems
1:07:56 AM: Finished restoring cached ruby gems
1:07:56 AM: Started restoring cached go cache
1:07:56 AM: Finished restoring cached go cache
1:07:56 AM: go version go1.14.4 linux/amd64
1:07:56 AM: go version go1.14.4 linux/amd64
1:07:56 AM: Installing missing commands
1:07:56 AM: Verify run directory
1:07:57 AM: ​
1:07:57 AM: ────────────────────────────────────────────────────────────────
1:07:57 AM:   Netlify Build                                                 
1:07:57 AM: ────────────────────────────────────────────────────────────────
1:07:57 AM: ​
1:07:57 AM: ❯ Version
1:07:57 AM:   @netlify/build 9.9.5
1:07:57 AM: ​
1:07:57 AM: ❯ Flags
1:07:57 AM:   apiHost: api.netlify.com
1:07:57 AM:   cacheDir: /opt/build/cache
1:07:57 AM:   deployId: 604d53cb881f2300078e2b99
1:07:57 AM:   mode: buildbot
1:07:57 AM:   testOpts:
1:07:57 AM:     silentLingeringProcesses: ''
1:07:57 AM: ​
1:07:57 AM: ❯ Current directory
1:07:57 AM:   /opt/build/repo
1:07:57 AM: ​
1:07:57 AM: ❯ Config file
1:07:57 AM:   /opt/build/repo/netlify.toml
1:07:57 AM: ​
1:07:57 AM: ❯ Context
1:07:57 AM:   production
1:07:57 AM: ​
1:07:57 AM: ❯ Loading plugins
1:07:57 AM:    - [email protected] from netlify.toml
1:07:58 AM: ​
1:07:58 AM: ────────────────────────────────────────────────────────────────
1:07:58 AM:   1. build.command from netlify.toml                            
1:07:58 AM: ────────────────────────────────────────────────────────────────
1:07:58 AM: ​
1:07:58 AM: $ bundle exec jekyll build
1:07:59 AM: Configuration file: /opt/build/repo/_config.yml
1:07:59 AM:             Source: /opt/build/repo
1:07:59 AM:        Destination: /opt/build/repo/_site
1:07:59 AM:  Incremental build: disabled. Enable with --incremental
1:07:59 AM:       Generating...
1:07:59 AM:        Jekyll Feed: Generating feed for posts
1:08:00 AM:                     done in 0.702 seconds.
1:08:00 AM:  Auto-regeneration: disabled. Use --watch to enable.
1:08:00 AM: ​
1:08:00 AM: (build.command completed in 1.6s)
1:08:00 AM: ​
1:08:00 AM: ────────────────────────────────────────────────────────────────
1:08:00 AM:   2. onPostBuild command from netlify-plugin-checklinks         
1:08:00 AM: ────────────────────────────────────────────────────────────────
1:08:00 AM: ​
1:08:07 AM: ........×.........................................................................................................................................................×......................................................................................................................................................................................................................................................................................................................................................................................................................................................
1:08:07 AM:   ✖ FAIL Failed loading _site/assets/js/lunrsearchengine.js
1:08:07 AM:   | operator: error
1:08:07 AM:   |   actual: _site/assets/js/lunrsearchengine.js: Parse error in _site/assets/js/lunrsearchengine.js
1:08:07 AM: Unexpected token (175:18)
1:08:07 AM:   |       at: _site/404.html:97:14 <script src="/assets/js/lunrsearchengine.js">...</script>
1:08:07 AM:   ✖ FAIL load _site/gut-stress
1:08:07 AM:   | operator: load
1:08:07 AM:   | expected: 200 _site/gut-stress
1:08:07 AM:   |   actual: ENOENT: no such file or directory, open '/opt/build/repo/_site/gut-stress'
1:08:07 AM:   |       at: _site/who-is-controlling-who-the-gut-brain-axis/index.html:208:49 <a href="https://factastichealth.com/gut-stress">...</a>
1:08:07 AM:   601 tests
1:08:07 AM:   599 passed
1:08:07 AM:     2 failed
1:08:07 AM: ​
1:08:07 AM: ────────────────────────────────────────────────────────────────
1:08:07 AM:   Plugin "netlify-plugin-checklinks" failed                     
1:08:07 AM: ────────────────────────────────────────────────────────────────
1:08:07 AM: ​
1:08:07 AM:   Error message
1:08:07 AM:   Error: Links checking failed
1:08:07 AM: ​
1:08:07 AM:   Plugin details
1:08:07 AM:   Package:        netlify-plugin-checklinks
1:08:07 AM:   Version:        4.1.1
1:08:07 AM:   Repository:     git://github.com/munter/netlify-plugin-checklinks.git
1:08:07 AM:   npm link:       https://www.npmjs.com/package/netlify-plugin-checklinks
1:08:07 AM:   Report issues:  https://github.com/munter/netlify-plugin-checklinks/issues
1:08:07 AM: ​
1:08:07 AM:   Error location
1:08:07 AM:   In "onPostBuild" event in "netlify-plugin-checklinks" from netlify.toml
1:08:07 AM:       at onPostBuild (/.netlify/plugins/node_modules/netlify-plugin-checklinks/lib/index.js:63:14)
1:08:07 AM: ​
1:08:07 AM:   Resolved config
1:08:07 AM:   build:
1:08:07 AM:     command: bundle exec jekyll build
1:08:07 AM:     commandOrigin: config
1:08:07 AM:     environment:
1:08:07 AM:       - JEKYLL_ENV
1:08:07 AM:     publish: /opt/build/repo/_site
1:08:07 AM:   plugins:
1:08:07 AM:     - inputs: {}
1:08:07 AM:       origin: config
1:08:07 AM:       package: netlify-plugin-checklinks
1:08:07 AM: Caching artifacts
1:08:07 AM: Started saving ruby gems
1:08:07 AM: Finished saving ruby gems
1:08:07 AM: Started saving build plugins
1:08:07 AM: Finished saving build plugins
1:08:07 AM: Started saving pip cache
1:08:07 AM: Finished saving pip cache
1:08:07 AM: Started saving emacs cask dependencies
1:08:07 AM: Finished saving emacs cask dependencies
1:08:07 AM: Started saving maven dependencies
1:08:07 AM: Finished saving maven dependencies
1:08:07 AM: Started saving boot dependencies
1:08:07 AM: Finished saving boot dependencies
1:08:07 AM: Started saving rust rustup cache
1:08:07 AM: Finished saving rust rustup cache
1:08:07 AM: Started saving go dependencies
1:08:07 AM: Finished saving go dependencies
1:08:07 AM: Build script success
1:08:32 AM: Finished processing build request in 50.803920377s

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.