loconomics / loconomics-pages

0 stars 1 forks source link

Move pages into hugo site #19

Closed IagoSRL closed 5 years ago

IagoSRL commented 5 years ago

Built on top of PR #18, so review and merge that before

Moved pages from /src/bootstrap/ folder into Hugo /content/ folder and resources (as images and js) into Hugo theme (with all the adjustments needed).

Updated the templates at the theme so all pages show up when generating with Hugo (hugo serve). Check the address http://localhost:1313/pages/ to see an index of links to each generated page. I added a template type heropage to have a common hero header (check privacy page for usage); this way we reuse this layout. The home page has it's specific layout that includes the hero too but with a button but lives at the theme 'index.html' template.

With that changes in place, I removed the /src/ folder (all was moved and adapted already). Too remember that if you use set the 'draft' property on pages (I remove it from all), you need to run hugo with hugo serve -D to get them generated.

From now, new pages must go into /content/pages/, files that need processing as SCSS and JS at /themes/loconomics/assets/ and any content to be copied 'as is' into /themes/loconomics/static/ (like images).

About images, I preserved the original locations, having two folders, img and images, that we should combine into one.

IagoSRL commented 5 years ago

See https://github.com/loconomics/loconomics-pages/pull/18#issuecomment-432563939