Git Product home page Git Product logo

devfest2021's Introduction

Site DevFest Nantes 2021

Actions Status Dependabot Status

Requirement

Install Theme

git submodule init
git submodule update themes/devfest-theme-hugo --remote

Note: --remote permet de cibler la branche spécifiée

Commit theme update

When you have made changes on the theme, you need to add the

git add themes/devfest-theme-hugo

Run Local site

For your first run and each time you modify a style or image, run:

npm run build

npm run build:images # to re-build only images

Then just run

hugo server -D

Notice that the -D flag is used to render draft elements, you also can add the -F to build elements planed for future.

More information here

Build

Just run

npm run build

More information here

Edit data

You can edit

  • general information about the site into the config.toml file.
  • some data into data/*.yml files, for header and footer information, team or schedule data.
  • some content into content/** files.
  • some static assets like images into the static/* folder

Create a new blog entry

You can use hugo new blog/i-create-a-new-entry.md command and then edit it. Or just copy an already existing blog entry, and update the content.

Update the theme

If you need to touch file of the theme (i.e. into ./themes/devfest-theme-hugo/) you to know one more thing:

The theme is in another Git repository https://github.com/GDG-Nantes/devfest-theme-hugo, it's using git submodules, so you need to handle this two repository.

Here is the workflow in addition to the main one:

  • go into the theme folder ./themes/devfest-theme-hugo/
  • install dependencies with npm install
  • run npm start to watch the theme files
  • then push the theme's diffs
  • and then back in the site folder, git add themes/devfest-theme-hugo
  • then push the site's diffs

Publish

You could take a look at the .github/workflows file

devfest2021's People

Contributors

dependabot-preview[bot] avatar artymaury avatar ilaborie avatar jlandure avatar xavmarc avatar ttrepied avatar lpiot avatar mboix avatar pguyard avatar philippeantoine avatar awattez avatar benoitaverty avatar charlyx avatar cbossard avatar dlaize avatar shprink avatar kgamanji avatar loicortola avatar patou avatar sis0k0 avatar punkstarman avatar guillaumeblaquiere avatar jadecdev avatar ryarnyah 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.