Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canonical URL showing localhost:4000 in production URL #181

Open
VincentTam opened this issue Jan 13, 2017 · 0 comments
Open

Canonical URL showing localhost:4000 in production URL #181

VincentTam opened this issue Jan 13, 2017 · 0 comments

Comments

@VincentTam
Copy link

VincentTam commented Jan 13, 2017

I'm testing Octopress 3. I uploaded a minimal example on VincentTam/octo3test. In index.html on the gh-pages branch, the canonical link reads localhost.

<link rel="stylesheet" href="/octo3test/assets/main.css">
<link rel="canonical" href="http://localhost:4000/octo3test/">
<link rel="alternate" type="application/rss+xml" title="Your awesome title" href="/octo3test/feed.xml">

In my _config.yml, I set

baseurl: "/octo3test"
url: "http://vincenttam.github.io"

(I carelessly missed an 's'.)

and my _deploy.yml

method: git                               # How do you want to deploy? git, rsync or s3.
site_dir: _site                           # Location of your static site files.

git_url: git@github.com:VincentTam/octo3test.git  # remote repository url, e.g. git@github.com:username/repo_name

# Note on git_branch:
# If using GitHub project pages, set the branch to 'gh-pages'.
# For GitHub user/organization pages or Heroku, set the branch to 'master'.
#
git_branch: gh-pages                        # Git branch where static site files are commited


# remote_path:                            # Destination directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant