Code Monkey home page Code Monkey logo

web's Introduction

GetCourageNow Squarespace-to-Hugo Migration Project

This is a small business template built with Hugo based on Let's Encrypt using content exported from Squarespace.

Getting started

Download https://github.com/getcouragenow/web/ or clone using $ git clone https://github.com/getcouragenow/web.git

  • Run $ git fetch
  • Run $ git checkout dev to be on the correct branch

Local Development

Makefile has all the commands necessary for building, starting server, and deploying to Firebase and must be executed from the checked out root directory of GetCourageNow

To install all dependencies:

To clean or update Let's Encrypt codebase:

  • Run $ make git-clean to clean Let's Encrypt codebase directory when necessary
  • Run $ make git-upstream to pull Let's Encrypt repo if codebase directory is cleaned
  • Or run $ make git-update to update Let's Encrypt's codebase directory

To import content from googlesheet:

  • Run $ make gsheetThis will create a document called outputs and contains all .
  • To add a new sheet see /config folder for more infos.

To import GetCourageNow content into the Let's Encrypt codebase:

  • Run $ make modify to invoke Import.go script. By default it will replace, overwrite, or append to Let's Encrypt codebase.

  • Run $ make hugo-build to build after importing GetCourageNow content into Let's Encrypt codebase

  • Run $ make hugo-run to start the server.

  • Run $ make hugo-open to launch browser to see the build locally.

To fixe text on one file:

The file fixe_text.json is used to replace strings on some files, so how it's work?

  • file_path: adding file path where there is an error an you want to fixe it.
  • errors: it's an array contains objects where you need to set "old" and "new" string that you want to replace in the file_path.
  • example:
{
    "file_path": "resources/website/layouts/partials/head.html",
    "errors": [
        { "old": "@letsencrypt", "new": "@winwisely" }
    ]
}
  • Run make modify-text to fixe and update all strings.

To fixe text on multiple files:

The file clean_translation_tags.json is used by gsheet import to clean tags used to translate, or fixe translation errors for all the files.

{
    "error": "NOTRANSLATE_",
    "fixe": ""
}
  • Run make gsheet to fixe and update outputs folder.

Deployment

web's People

Contributors

dominicporter avatar gedw99 avatar idirall22 avatar winwisely33 avatar winwisely99 avatar

Watchers

 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.