Skip to content

tx0dev/gcds-hugo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCDS-hugo

Testing the water with the alpha GC Design System from the CDS.

Background

In the past few weeks, there's a few thought that came around

Why this?

it doesn't depend on jquery and it's using modern web design paradigm.

Hugo vs Jekyll

I don't like Jekyll, correction, I don't like Ruby and bundler, They are slow, heavy and the interaction with it's process is annoying.

I've used hugo in the past and it's incredibly fast and way ligher than dealing with Ruby. It's also usable with a single compiled binary in pretty much anything, probably even your toaster.

And WET?

WET still depend on jquery, something that the Internet collectively decide should die, but they are sticking with it, and they are still using version 2. Even the Canada.ca version is using a version from 2016, a 7 years old version. depressing.

So yeah, WET can die, or evolve out of their jquery dependency. There are currently effort get rid of older jquery for WET 5, but it's still very much experimental and no movement since 2018.

But JavaScript everywhere

Yeah, well, Welcome to Web 2.0.

I'm tired of every site making JavaScript mandatory to render what is essentially a static website. But apparently basic and minimal static HTML is too complicated /s.

Use

Download/obtain hugo through your favorite source, mine was from nixpkgs.

then run hugo serve and you'll have a website. That's it, no dependency to deal with.

This is VERY experimental

I'm not a web designer/programmer. I'm literally ripping appart the sample page from the gcds-components, loading the JS from their CDN, and breaking hugo templating engine.... a lot.

What's missing

Everything? Here's what I've tried, or know I'll want in this:

  • Breadcrumb using .Ancestors
  • Mermaid rendering
  • Code block (with code highlighter would be nice)

From upstream

  • Data table (it's listed as coming soon)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages