Giter Site home page Giter Site logo

genes's Introduction

Genes

A personal website for family history and stories

How it works

This repository makes use of Hugo's templating logic to build out a personal family history website. It uses an Ahnentafel-like ID system to identify family members in a JSON file (see Using the Site for details). This allows bundling people together through Hugo's front matter, creating family units that exist outside the traditional nuclear family.

How it's made

The site is made using Hugo, Volta, Stylelint (refer to package.json for custom rules and extends), watchexec, and lightningcss.

To replicate the development environment:

  1. Make sure you have a package manager such as homebrew or winget.
  2. From the terminal1, confirm a recent version of git is installed by typing git -v. If git -v does not return a positive result, refer to Github's installation instructions (or git-scm for much more info about git).
  3. Use your terminal and package manager to install Hugo, Volta, and Watchexec
  4. Clone this repository. Change directory to the cloned repository:(e.g.,cd /path/to/cloned/genes)
  5. From inside the genes folder, run volta install node and volta install npm. Then, run npm install to install dependencies.

Using the site

After setting up the site, some initial data creation and wrangling currently is required.

This site is designed to use Gramps and a GEDCOM file of family data. After installing Gramps and importing a GEDCOM file, create an HTML report using Gramps: Reports -> Text Reports -> Detailed Ancestor Report. Underneath the front matter in the site's DAR.md file, paste the contents of the file exported from Gramps.

Back at the terminal and in your site's directory, run hugo. This will create the file index.json in public/reference-lists/dar. Copy the data from this file and paste it into the file data/DAR.json.

Things to know

CSS

  • The site css currently requires a polyfill for the oklch color space it uses. If editing the site css, some extra steps will need to be taken.
    • One method is to use the tools lightning-css and Watchexec with the script in the repository's package.json file. Move to the site directory in your terminal and run watchexec -w "./themes/beth/assets/scss/styles/" npm run build. This bundles the .scss files into a .css file and then uses lightning-css to correct for the oklch usage.

Footnotes

  1. https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Understanding_client-side_tools/Command_line โ†ฉ

genes's People

Contributors

mbeckrich 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.