Setting the canonical link to ghost

Setting the canonical link to ghost

CloudFlare one-click SSLを使ってサイトをSSL化しているんだけど、

ページのソースを表示した時にcanonical linkがhttpのままであることを職場のパイセンに指摘されて( ゚д゚)ハッ!っとなったので直した!(割と前の話ですが…!)

ghost/config.js内でproductionのurlをhttpsにしてghostを再起動すればOK

こんな感じ

config = {
    // ### Production
    // When running Ghost in the wild, use the production environment
    // Configure your URL and mail settings here
    production: {
        //url: 'http://ghost.ponpokopon.me',
        url: 'https://ghost.ponpokopon.me',
]...

簡単!