Giter Site home page Giter Site logo

xavierbrassoud / hugo-mod-json-resume Goto Github PK

View Code? Open in Web Editor NEW

This project forked from schnerring/hugo-mod-json-resume

0.0 0.0 0.0 301 KB

A Hugo module containing templates to integrate multilingual JSON Resume data into your Hugo website.

License: MIT License

Shell 0.52% CSS 8.88% HTML 90.60%

hugo-mod-json-resume's Introduction

hugo-mod-json-resume

A Hugo module containing templates to integrate multilingual JSON Resume data into your Hugo website.

Getting Started

Initialize your Hugo site as a Hugo module:

hugo mod init example.com

Add the following to the config.toml file of your site to import the module:

[module]
  [[module.imports]]
    path = "github.com/schnerring/hugo-mod-json-resume"
  [[module.mounts]]
    source = "node_modules/simple-icons/icons"
    target = "assets/simple-icons"

Install the module:

hugo mod get

Initialize the NPM package.json and install the dependencies:

hugo mod npm pack
npm install

The module offers a simple CSS stylesheet assets/css/json-resume.css that you can use.

Use the json-resume shortcode in markdown files:

---
title: "CV"
draft: false
---

## Experience

{{< json-resume "work" >}}

## Education

{{< json-resume "education" >}}

Or use the partials in your layout files:

<div class="sidebar">
  <aside class="bio">{{ partial "json-resume/basics.html" . }}</aside>
</div>

Data Structure

The module reads JSON Resume data from Hugo's data/ directory:

data/
├─ json_resume/
    ├─ de.json
    ├─ en.json

Each file must adhere to the JSON Resume schema specification. At least one file with the name <default content language code>.json must exist (defaults to en). See also Hugo Multilingual Mode.

Styling

You can style the existing templates by using the pre-defined classes. There are generic classes prefixed with jr__ like jr__item or jr__date-range that apply to any template.

Classes specific to resume sections are prefixed with jr-<section>__<section-field>, like jr-work__description or jr-basics__name.

Example

Example resume section header screenshot

The above requires the following CSS:

.jr__item-meta {
  align-items: center;
  flex-flow: row wrap;
}

.jr__date,
.jr__date-range,
.jr-work__location {
  flex-grow: 1;
  text-align: right;
}

.jr-education__institution {
  flex-basis: 100%;
}

Attributions

To display social icons, Simple Icons (CC0) are used.

hugo-mod-json-resume's People

Contributors

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