Can we set a Landing page by a name other than index.html or a different path . I tried and it dint work. Searched and din't get any relevant solution, I am not using Jekyll or other template engine.
On github Pages the default page served on domain.tld/ or domain.tld/any/path/ is index.html.
There's not setup available to change that.
Related
I created a Hugo site that working well locally. I deployed my Hugo site as a Github Pages project via a /docs folder on the master branch.
So now, I have my Github Page project and my URL looks like that:
https://myname.github.io/myrepository/myHugoSite.
I have a problem with my link. All my links redirect to https://myname.github.io/ but not https://myname.github.io/myrepository/ because my links are /next-page/. These links are working locally because I don't have a repository.
My question is: Do I have to add /myrepository/ to all my links or there is another solution?
You need to add your site prefix to the baseUrl parameter in the config file. In your case the prefix is myrepository/
If you are using TOML format in your config file it would look like this:
baseUrl = "https://myname.github.io/myrepository/"
Note that with Higo 0.62.1 (and more recent), you can have portable links.
See bep/portable-hugo-links as an example.
truly portable Markdown links and images. No shortcodes used.
This page includes the following links, which would be rendered correctly both on GitHub and Hugi generated pages:
* [Blog Link1](../blog/p1/index.md)
* [Blog Link2](../blog/p2.md)
* [Home Page](/README.md)
* [Local Anchor](#et-illis-ossaque-loqui-ille)
I have my Jekyll blog set up here: My blog
I forked this blog theme from https://github.com/johnotander/pixyll
and created a github pages for it using the Master branch and changed the name of the repository to 'blog'.
My github.io repo is used for my personal site and uses the CNAME: edsonmendieta.com
So, my blog is at edsonmendieta.com/blog.
In my _config.yml: https://github.com/edsonmendieta/blog/blob/master/_config.yml
I've set the url to: 'http://edsonmendieta.com/blog/'
My blog theme, has a contact page which had 'permalink' set to /contact/,
but after clicking it, the url path was edsonmendieta.com/contact, and I got a github 404.
I changed the permalink to blog/contact/ and now I still get a 404 but one that's themed by my blog theme.
I don't know why I'm getting a 404.
The 'baseurl' in my config.yml file is empty ("").
Should I change the 'baseurl' and 'url' in the _config.yml file?
Should I change the 'permalink' in the contact file?
Help is GREATLY appreciated, thank you.
In config, set :
url: http://edsonmendieta.com
baseurl: /blog
And it's supposed to work out of the box.
Just change the permalink on the contact page and it should work. You can even remove it, jekyll will take care of it for you.
I have several github repos that I'm trying to publish as github pages. I've created gh-pages branches for them and their repo's say that the pages exist, but when I go to the links they provide I find a 404 page.
I know that github pages are finicky and return this error if the home page isn't called "index.html" and I suspect that the problem is related to that, but I'm not sure how to fix it. All of the projects in question are rails apps with homepages in the views/home called "index.html.erb" and routes designating those pages as root. Do I need to rename those pages or there some other way to fix this?
Github pages is used only for static websites, you cannot host applications on it.
You wrote that you hosted *.html.erb files, which means you are trying to setup a rails application on it.
You can use static website builders to create Github sites, or code them on your own.
#bukk530 is absolutely correct.
Additionally, it would be worth noting that GitHub Pages does support hosting Jekyll sites, but nothing else. Static HTML/CSS/JavaScript and Jekyll.
I am using Orchard 1.7 and I want to make start page from my custom module.
I've created a module with name MYMODULE and under it's view folder I have *.cshtml with name Index. I want to set Index page as a startup page of my site. It means first page will be Index.cshtml from MYMODULE.
Is it Possible? Please help me.
Enable the aliasUI feature in Modules section
Add a blank route that points to /MyModule/MyController and it should work. May have to delete the current homepage url. And maybe it isn't blank but a "/". I cant remember ^_^
EDIT:
Check this link out: http://davidhayden.com/blog/modifying-orchard-permalinks-after-publishing-content-items Now if you follow the instructions to modify urls, you will see an alias called
/
This will probably link to your Welcome to Orchard page route, ie. /Contents/Item/Display/12 or something. Edit this route to point at your custom page.
i solve this problem .please follow these steps:-
Login with Admin and open dashboard page.
Enable Aliases Module.
Click on Aliases Link left on dashboard page.
Edit first Aliase (top most) change only RoutePath write your module name
/controllername(Mymodule/home)
after that it will be your startup
My Joomla 1.5.18 site, I enabled login, when I click login the page I get sent to is NOT styled with CSS. If I login it redirects to the home page and it is not styled anymore either.
It looks like it is recursively appending stuff to the URL incorrectly.
http://www.myjoomlasite.org/index.php/index.php/login
if I click on home page or login links it keeps putting more and more index.php entries in the URL, and sometimes on the end. The following is what I get when I try and go to a JEvents menu item.
http://www.myjoomlasite.org/index.php/index.php/index.php/index.php/upcomingevents/month.calendar/2010/06/09/index.php
Anyone have any idea why this is happening? I don't know what to search for on Google apparently, and none of the Joomla! books I have address this.
I figured it out I had turned on Search Engine Friendly URLs in SEO Settings under Global Configuration. Turning this back off fixed the problem. Now I guess another question will be along the lines on how to get the Search Engine Friendly URL's to work again.
Make sure you link to stylesheets and images using a link that starts with a leading slash and therefore counts from the root.
It is the browser that evaluates the URL for those resources, based on the URL of the currently viewed HTML page. Never use relative links for these resources.