- Project description, screen-shots and files found here: Github README.md
- Questions found at the bottom of this topic.
DEVELOPMENT / SETUP
Ubuntu 16.04
hugo version
Hugo Static Site Generator v0.53/extended linux/amd64 BuildDate: 2018-12-24T12:58:46Z
BACKGROUND
I have been working with Hugo for a while now and experiment by starting projects from scratch
and building test cases.
This is one such experiment.
My goal here is to integrate this Codyhouse Schedule Template into future Hugo projects. This is a free (MIT) Template that you can download and open index.html
in a browser to see what it is suppose to look like. Select an event to get a pop-up that displays event-info
.
APPROACH
First I created a new hugo project:
hugo new site cal
Then I parsed out Codyhouse-Template
by putting all the HTML files under /layouts
and the remaining files under /static
.
.
βββ archetypes
β βββ default.md
βββ config.toml
βββ content
βββ layouts
β βββ event-abs-circuit.html
β βββ event-restorative-yoga.html
β βββ event-rowing-workout.html
β βββ event-yoga-1.html
β βββ index.html
βββ README.md
βββ resources
β βββ _gen
β βββ assets
β βββ images
βββ static
βββ css
β βββ reset.css
β βββ style.css
βββ js
β βββ jquery-3.0.0.min.js
β βββ main.js
β βββ modernizr.js
βββ partials
β βββ _layout.scss
β βββ _mixins.scss
β βββ _variables.scss
βββ scss
βββ style.scss
RESULT OF MY ATTEMPT
This approach mostly works except the modal window will not display the "event-info"
.`
QUESTIONS
-
Any general advice on how one would port this so you could essentially drop this into an existing Hugo project? I doubt my approach is optimal.
-
If you download and run my Github project, you will quickly see my problem. I have tried to move those style sheets and javascript files around into other Hugo folders and also change pathβs inside of the index.html. Can anyone offer advice as to why the event-info doesnβt show up in the modal box?