Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Deploy problem #36

Closed
AlessandroMinoccheri opened this issue Jun 1, 2020 · 3 comments
Closed

Deploy problem #36

AlessandroMinoccheri opened this issue Jun 1, 2020 · 3 comments

Comments

@AlessandroMinoccheri
Copy link

Hi all, I have installed theme and in locally if I launch

hugo server

It works all fine.
Now I would like to deploy my site with github following the hugo documentation.
this is my deploy script:

#!/bin/bash

echo -e "\033[0;32mDeploying updates to GitHub...\033[0m"

# Build the project.
hugo -t anubis # if using a theme, replace with `hugo -t hugo-nuo`

# Go To Public folder
cd public
# Add changes to git.
git add .

# Commit changes.
msg="rebuilding site `date`"
if [ $# -eq 1 ]
  then msg="$1"
fi
git commit -m "$msg"

# Push source and build repos.
git push origin master

# Come Back up to the Project Root
cd ..

homepage works fine but pages videos and post don't have css style.
Do you know why?

this is the URL:
My site

Thanks

@AlessandroMinoccheri
Copy link
Author

I have solved adding custom CSS, but I think that is not a good solution.

@Mitrichius
Copy link
Owner

Hi @AlessandroMinoccheri
Please fill baseUrl param in site config — without it, absolute links to css and other things become relative.

@AlessandroMinoccheri
Copy link
Author

ok, thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants