Coder Social home page Coder Social logo

qurbatein-home's Introduction

Website Starter

This is a website starter used for sites and projects at thedivtagguy. There is some minimal changes required before getting started.

Google Docs

For all text pages and written content, I use archieML to pull in data from Google Docs and render it on specific pages. This is done in two ways:

1. Google Sheets

This is the main sheet that will be used to store details of all blogposts and other content, the main source of truth for links, tags, keywords, titles and unique IDs.

Start by creating a new Google Sheet, enabling sharing and editing the google.config.cjs file with the ID.

If you wish to add individual pages, add an object in the array like so:

{
    id: "1j4G8hIduB5lHPZ9GMeRtV3au_fykZcCKU9W7RwUR9tY",
    filepath: "src/data/trial.json"
  },

2. Google Drive Folder

This is the folder that will be used to store all pages. Only the ID of the folder and all documents within that folder will be downloaded and processed.

Start by creating a new Google Drive folder, enabling sharing and editing the line 19 of the /tasks/collect-docs.cjs with the topFolderId variable.

Deploy

Create a new repo and deploy to Netlify from there.

Subdirectory

Each microsite, if associated to thedivtagguy main site will reside in thedivtagguy.com/projects/<project-name>. In order to make this work, add the following to the netlify.toml

[[redirects]]
  from = "/projects/<project-name>"
  to = "netlify-url"
  status = 200
  force = true

And in the project repo, allow CORS from the main site.

[[headers]]
  # Define which paths this specific [[headers]] block will cover.
  for = "/*"
    [headers.values]
    Access-Control-Allow-Origin = "*"

qurbatein-home's People

Contributors

thedivtagguy avatar

Watchers

 avatar  avatar

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.