Coder Social home page Coder Social logo

Comments (1)

chrisdmacrae avatar chrisdmacrae commented on June 11, 2024
[4:39 PM] 
jordan It’s not an issue at all. It has to do with where you put the file


[4:39 PM] 
if it’s a hugo site then the file needs to go into the static directory so that it gets published


[4:40 PM] 
if it’s jekyll then it should just be in the root of the project


[4:40 PM] 
chrisdmacrae ^^^ i'm not sure what that has to do w/ a file???

[4:42 PM] 
jordan @chrisdmacrae if the CNAME file is in the root of your hugo project and you have forestry build the project and then push it to the gh-pages branch, the CNAME file isn’t going to be included because hugo doesn’t include files from the root of the project in the built site. So if you want it in the root of your built site then you should put the CNAME file in the static directory (edited)

[4:43 PM] 
chrisdmacrae @jordan But I think the issue here was that the actual setting in GitHub pages was getting removed. Is that caused by the CNAME file?


[4:44 PM] 
jordan @chrisdmacrae They are one and the same. If you create the CNAME file, it sets the setting. If you set the setting, it creates the CNAME file for you.


[4:44 PM] 
chrisdmacrae Ah ok


[4:45 PM] 
That makes sense! I'll move that issue over to the new site to create a doc


[4:45 PM] 
jordan In this scenario though, the setting won’t be set for the master branch because the CNAME file is in the static dir.

from forestry.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.