Open ghost opened 5 years ago
I tried "npm run build:prod", and it generates the files in the "public" folder, but only the top level ones.
For instance, the index.html and no others. Same with the sitemap.xml. It only has:
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://gohugo-amp.gohugohq.com/</loc>
<lastmod>2016-10-16T19:28:41+02:00</lastmod>
<changefreq>daily</changefreq>
<priority>1</priority>
</url>
<url>
<loc>https://gohugo-amp.gohugohq.com/</loc>
<lastmod>2016-10-16T19:28:41+02:00</lastmod>
<priority>0</priority>
</url>
</urlset>
If anyone can help me out it would be great. Have tried everything I can think of.
Hey @gedw99, the example pages of the theme only contains an index.md
(https://github.com/wildhaber/gohugo-amp/tree/develop/exampleSite/content)
If you're looking for the content of the documentation, you can find them here: https://github.com/wildhaber/gohugo-amp.gohugohq.com/tree/develop/content
hey @wildhaber
thanks for the response. I am running off the Content in gohugo-amp.gohugohq.com, NOT the example site. You can see this in my Makefile in the first issue above.
So i have not idea whats wrong. Maybe the hugo version ? I am using:
hugo version Hugo Static Site Generator v0.53/extended darwin/amd64 BuildDate: unknown
complete Makefile for replication:
# hugo based
# use this example site: github.com/wildhaber/gohugo-amp.gohugohq.com
LIB=github.com/wildhaber/gohugo-amp.gohugohq.com
LIB_FSPATH=$(GOPATH)/src/$(LIB)
print:
@echo
@echo LIB :$(LIB)
@echo LIB_FSPATH : $(LIB_FSPATH)
@echo
ls $(LIB_FSPATH)
dep-all: dep-os dep dep-modules
# get all deps
dep-os:
brew install hugo
brew install yarn
dep:
# install on gopath
mkdir -p $(LIB_FSPATH)
cd $(LIB_FSPATH) && cd .. && rm -rf gohugo-amp && git clone https://$(LIB).git
#cd $(LIB_FSPATH) git checkout develop
dep-modules:
cd $(LIB_FSPATH) && yarn install
code:
cd $(LIB_FSPATH) && code .
clean:
rm -rf $(LIB_FSPATH)
###
run:
cd $(LIB_FSPATH) && npm run go
run-d:
rm -rf $(LIB_FSPATH)/public
cd $(LIB_FSPATH) && hugo serve -p 1314 -v --baseURL http://localhost:1314 --buildDrafts --buildFuture --disableFastRender --renderToDisk --noHTTPCache
build:
cd $(LIB_FSPATH) && npm run build:prod
build-d:
rm -rf $(LIB_FSPATH)/public
cd $(LIB_FSPATH) && hugo --buildDrafts --buildFuture --baseURL http://localhost:1315
#cd $(LIB_FSPATH) && hugo gen
@gedw99, I was having the same issue.
See https://GitHub.com/wildhaber/gohugo-amp.gohugohq.com/pull/11
I pulled the code at: https://github.com/wildhaber/gohugo-amp.gohugohq.com
Then checked out the "develop" branch and kicked it off using "npm run go". It runs, but only the first page works on localhost:1313 All other pages like "http://localhost:1313/install/" get a 404. Not sure what i am doing wrong.... ??
Sorry about this. Must be something simple i am not getting ?
my make script:
output: