-
-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
Added static front page support #4946
Conversation
The redirect from |
Hi @chuntley, sorry for taking so long to respond to you here. This PR breaks the expectations around the Ghost currently doesn't support allowing for a static homepage as this is considered to be a CMS rather than a blog behaviour. It's been suggested over on our wishlist and if it gains significant support, we'll consider adding an intuitve way to do it. However, at present I still believe it's the kind of feature which belongs in an app rather than in core. |
I do not follow that logic as you already have static page support. A static front page simply moves a static page to the home position. Our use case is to introduce our blog, authors, mission, and show a brief list of recent posts with a link to the blog. Without static front page support, the brief list of recent posts would not be included in our full blog view. I'm going to keep my fork updated as we update our sites. Hopefully you guys reconsider, and if you have ideas on updates to my PR let me know. |
@chuntley What you're describing sounds like something that's already possible with home.hbs. I also think "static front page" is getting used to mean different things here. At Ghost, "static page" means the content is entirely held within a post object, and no other data is given to the theme to render (other posts, etc). |
@novaugust, the issue with I think you are right about the terminology getting a little mixed up here, but hopefully that helps clear things up. |
I think I've got you... you want both a homepage and a /page/1 page On Tue, Mar 17, 2015 at 1:14 PM, chuntley notifications@github.com wrote:
|
@novaugust, exactly. |
@chuntley I understand what you're trying to achieve here, however the approach proposed in this PR reappropriates the As I see it, the idea here is twofold: 1) the first page of the blog listing should live at a configurable location, and 2) the home page should be used for something else which may or may not include showing blog posts. This idea is very commonly articulated as using a static page as the home page, which comes from a similar feature available in WordPress. I realise that's not what you want to do, but the main parts are the same - move the first page of the blog listings, and do something else at As per the guiding principles explained here, this isn't something we've ever felt warranted a specific option in Ghost core. That doesn't mean that it should be impossible, rather that it is a level of customisation that would require an app or similar to achieve. Moving forward, the introduction of the get helper will give you a somewhat hacky way to achieve roughly what you're after via your theme. You'll be able to use the |
@ErisDS: Thank you for the response. Once apps feature gets closer to release I'll put that together! |
@chuntley Fantastic, exactly what I was looking for. Simple, works, beautiful. Many thanks. |
Very simple 2 line change to the frontend router. This checks if a
home.hbs
file is present, and if so, will use that as the static front page. Theindex.hbs
file continues to function as a normal blog page.The
/page/1
redirect to/
has been removed. When using a static front page, the path/page/1
is used to access the blog.