Create second GitHub account to choose name of gh-pages blog - github-pages

I have a small personal blog created for free on wordpress.com. I'd like to convert it into static blog (powered by pelican) and move it to GitHub pages.
The wordpress blog already has a name, which I'd like to save. Unfortunately, my personal account's name is completely unrelated to the name of the blog. So I cannot achieve what I want due to fixed naming scheme {username}.github.io.
I wonder: is it OK for me to create second GitHub account for the only purpose of hosting my gh-pages blog on it? Or it goes against GitHub rules?
P.S. I know that it is possible to buy and use a custom domain outside of GitHub.

Related

Dynamic linking to a GitHub repo from a GitHub Project Page

I'm not very experienced with Git or GitHub, but I'm experimenting with GitHub Pages as a way to host a small tutorial on doing some things with Python that I haven't found documented elsewhere.
If my GitHub username is exampleuser and if the repository's name is examplerepo, then my Pages URL is viewable at https://exampleuser.github.io/examplerepo/, whereas the repository itself is viewable in traditional GitHub fashion at https://github.com/exampleuser/examplerepo, and files within at URLs like https://github.com/exampleuser/examplerepo/blob/master/subfolder/samplefile.csv
In the body of the various GitHub Pages I'll be writing, I'd like to hyperlink to the native "GitHub view" of some of the sample CSV files I intend to include in my tutorial so that people can see them nicely laid out in a tabular format.
I haven't completely settled on what I'm going to name "examplerepo" (and may even want to go live under a different username), so I'd like to find a way to encode such URLs when writing my GitHub Page files (HTML or MD) to make it build the URL https://github.com/exampleuser/examplerepo/blob/master/subfolder/samplefile.csv on the fly.
That way, I won't have to go through and fix all my URLs if I end up changing my mind before "go-live" about username & repository name.
Is there a way I can do this?

How to share a NetLogo model through GitHub

This really helpful question (and answer) works great for sharing a NetLogo model through a public folder in Dropbox.
However, my understanding is that Dropbox will no longer (though for the moment still does) support sharing HTML (and so NetLogo files) this way.
The question and answer above mentioned GitHub, and in particular the URL to the "raw" HTML file, as a potential solution. I tried this but had some problems.
Here's the file hosted via Dropbox (it works) : https://dl.dropboxusercontent.com/u/1190498/Virus%20on%20a%20Network%20(Hinze).html
Here's the identical, I think, (raw) file hosted via GitHub: https://raw.githubusercontent.com/jrosen48/netlogo-models/master/Virus%20on%20a%20Network%20(Hinze).html
Thinking that the key was rendering the HTML, I tried to prepend https://htmlpreview.github.io/? to the file hosted via GitHub, to no avail.
How to share a NetLogo model through GitHub?
It's kind of sad that the rules for this keep changing, but I guess there are two things that I could kind of recommend. One is to use the NetLogo Modeling Commons. NLW versions of models uploaded there can be directly linked to, simply by uploading the .nlogo file—that is, you never even need to do "Export: HTML".
The other option—the option that I think I might recommend more strongly is to use GitHub Pages, which is essentially a free, basic web host. You can see here an example of a model that I uploaded to GitHub pages. The setup of the repository is quite trivial; I just made a repo named "[username].github.io", uploaded the exported HTML file, and then it was accessible from a predictable URL.

Add access control for Jekyll blog

I built a blog with Jekyll , I write technical posts and something about my daily life. I want to make my technical posts available to anybody but posts about myself only available to my friends for privacy. How can I achieve this?
With Jekyll itself, you can’t (barring some arcane JavaScript client-side encryption). You can use your webserver’s access control settings, though. If you use Apache, you can use the .htaccess file to protect a certain folder with a password. And then you would need to set up Jekyll to output the protected posts into this folder only.

How can I provide login feature to a Jekyll site?

How can I provide login feature to a Jekyll site?
I'm not sure if I am asking the correct question. Basically, I'm setting up a Jekyll blog for an intranet, and when any person (who connected to the intranet) comments on the blog, I want the site to use Windows's username as the display-name of the comment. In this way, I would know which comment is posted by which user (connected to the intranet), and I don't want the commenters to choose any other name as display-name to discourage trolling. Can it be done?
I was thinking if I could force the poster to login before commenting (and verify it Windows's athentication somehow), then maybe that username can be used as display-name. I'm not sure if that is possible, as I don't know if Jekyll provides that much flexibility.
I'm using Disqus as comment-provider. I may switch to a suitable comment-provider if required.
Jekyll is a static blog, so it can't display dynamic data as username.
EDIT:
Disqus is hosted on the could and you use javascript to bring it from the cloud to your static jekyll powered website.
So if you want to do the same, you have to build an application that is completely outside of jekyll, a Sign On Web Services and query it with Javascript in your jekyll blog.
Try Google/Facebook/Twitter api, use these api to authorize your client.

Custom domain not reflecting individual links

I have linked a custom domain name through GoDaddy to my Blogger blog. It all works fine. For example, my domain name is (example, not the real site) www.myblog.com. My blogger site is (again, example, not the real site) www.myblog.blogspot.com.
It all looks the same on the home page. The issue comes when I click on a specific post. For instance the post "Great Cake" under the blogger address shows up www.myblog.blogspot.com/greatcake. However, the domain name (the one I want to use) still only shows up as www.myblog.com, no matter what page I am on. Because of that, I cannot share links for individual pages, only for the whole blog itself.
I hope that made sense. I'm looking for a way to have the domain name (that is forwarded with masking through GoDaddy) also reflect individual posts and pages with an individual web address.
Can anyone explain how I could do that? Because I'm not sure how to word the question, I'm having no luck trying to find an answer on the internet, though I find many blogs that do what I want mine to do and are also powered by Blogger. Please help!
It sounds as if you have done the basic GoDaddy setup (I'm using Namecheap), but you may not have completed the blogger setup. Instructions are here https://support.google.com/blogger/troubleshooter/1233381?hl=en#ts=1734115
New Blogger no longer provides custom domain. Read how to set up the custom domain in 30 just minutes, if that is the case link

Resources