I have two domains and they are both pointing to one server:
http://www.domain1.com/ --> http://www.example.com/
http://www.domain2.com/ --> http://www.example.com/folder1
How can I hide it so when someone goes to http://www.domain2.com/ it will come up as http://www.domain2.com/ in the address bar and not http://www.example.com/folder1?
Related
I have a problem with smooth scrolling, but only when website is opened with github page link... It's really weird, cause if I open it with live server, smooth scroll works... Does someone know what is it about? Everything is updated, code is the same, both on my computer and on github.
Link to the project: https://github.com/Beko44/M-M-Website .
Github page where smooth scroll doesnt work - after clicking on smth in the menu (left upper corner) it kind of jumps instead of going smooth: https://beko44.github.io/M-M-Website/
Thanks!
If you open the browser console you could see an error:
Mixed Content: The page at 'https://beko44.github.io/M-M-Website/' was
loaded over HTTPS, but requested an insecure script
'http://code.jquery.com/jquery-3.4.1.min.js'. This request has been
blocked; the content must be served over HTTPS.
Since jQuery is not loaded because of this error your script for smooth scrolling will not work.
To solve your problem just change the src from jQuery to be served by https in your index.html.
<script
src="https://code.jquery.com/jquery-3.4.1.min.js"
integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo="
crossorigin="anonymous">
</script>
I must have missed the informations but I don't know how do two things with jekyll and Github pages...
First question:
With the minima theme, my homepage is the index.md with the layout default :
---
layout: default
title: Homepage
---
I didn't changed the default.html. The content of my index.md is well displayed as my homepage, but a new tab was created in the navigation bar with the title " Homepage "... There is a way to display my homepage without created a new tab in the navigation bar ?
Second question :
I create a file resume.md to create a new tab in the navigation bar with " resume " as title :
---
layout: default
title: Resume
---
A resume tab was created. But I would like that when I click on it, this tab redirect me to my other project Github pages which is my resume.
I don't know how to do that...
Can you help me with these to problems ?
Find the solution to my first problem :
In the _config.yml file, uncomment the #header_pages. That allow to change the order of the navigation ( an other problem that I have... ) and not display the homepage tab in the navigation bar.
Still the second problem.
Regarding question two:
You could try using Jekyll plugin jekyll-redirect-from [1] to create a page on your website to redirect to another URL [2].
Sometimes, you may want to redirect a site page to a totally different
website. This plugin also supports that with the redirect_to key:
title: My amazing post
redirect_to: http://www.github.com
[1] https://github.com/jekyll/jekyll-redirect-from
[2] https://github.com/jekyll/jekyll-redirect-from#redirect-to
I was in the same sceneraio before. Specifically, I have my personal home page setup on github. Meanwhile, I aslo have two seperate projects hosted at two differnt urls, which I want to show them as hyperlinked navigation tabs on my homepage as well.
The solution I used is to cutomize the navigation tab setion in the default.html as below :
<nav>
<ul>
<li>Home</li>
<li>About</li>
<li>Projects</li>
<li>MyProject1</li>
<li>MyProject2</li>
</ul>
</nav>
you can replace the url above with your own external link.
Setting target="_blank" will open the link in a new page when you click on the hyperlinked tab (i.e. MyProject1 or MyProject2).
FYI, here is my account:https://trencyclopedia.github.io/
I'm building my first app with Treeline, and I'd like to create a new server side view. Using Sails, I'd normally add the route and associated view to config/routes.js, but when I link my Treeline project config/routes.js is overwritten by the routes defined in Treeline.
Any ideas? Thanks!
To serve a view in Treeline, you should change the response type- this will result in a separate response being used in the compiled code:
First click "respond", then "display view". After that, enter the name of the view and provide any locals you need access to (this is equivalent to res.view in Sails, or res.render in Express)
Mutt will not allow me to move to the "Chats" folder, although it is clearly visible when viewed with a web browser. The folder is simply not displayed in Mutt.
I am able to see all my chat history by using the search query "label:chat", so I thought if I create a filter to match these items, and assign them a label - maybe Mutt will see this new label.
Alas, Mutt sees the new label, but displays no items.
How do I view my chat/hangout history inside Mutt?
IMAP is disabled by default for the Chats label in Gmail.
You can enable it in the settings under the labels tab, by selecting "Show in IMAP".
Settings (top-right) --> Labels --> Chats --> [X] Show in IMAP
Or follow this link: https://mail.google.com/mail/u/0/#settings/labels
I have the problem that the application take all browser space events if I set the size of the RootLayoutPanel. This problem appears only when a go through DNS, not when I connect directly to the machine:
For example, http://10.10.3.1:8080/MyApp/ works fine. The main screen is according to the size(1024x768).
http://nameOfMachine:8080/MyApp/ (nameOfMachine is set to 10.20.3.136). The widget appears, but they are in the wrong place. The bottom element move according to the browser size.
If in IE8 or IE9, check the browser mode and document mode from the Internet Explorer Developer Tools.
In most cases, you'd want to force IE=8 (or IE=9, or IE=Edge) mode by adding a <meta http-equiv="X-UA-Compatible" content="IE=8"> to your page.
See http://msdn.microsoft.com/en-us/library/cc288325(v=vs.85).aspx for more on "document compatibility".