Multi-language blog using Jekyll - blogs

I'm running my blog using Jekyll, and it is hosted on github.
My blogs are written in Chinese now, and I'm considering to write English version as well.
What is the best practice to support multi-language for the blogs so that readers can choose their preference language while reading?

There are many plugins available for this scenario but unfortunately GitHub-hosted Jekyll blogs do not support any plugins since GitHub has disabled them for safety's sake. But if you choose to manually build and publish to GitHub, here are some pointers.
The following plugins are compatible with Jekyll 2.x:
https://github.com/screeninteraction/jekyll-multiple-languages-plugin103
https://github.com/liaohuqiu/jekyll-multiple-languages97
https://github.com/drallgood/jekyll-multilingual150
I liked neither of those since I found them too restrictive so I have created a plugin compatible with Jekyll 3.0 and very easy to use:
https://github.com/vwochnik/jekyll-language-plugin
Of course, there are also approaches without any plugins, like the following:
https://www.sylvaindurand.org/making-jekyll-multilingual/

Related

How to edit/update articles on big sites using Jekyll

I want to create SEO Niche Websites using Jekyll. Each of my websites will have 300-400 articles (posts).
And I have a question, how in future I can edit/update my posts?
I don't want to use Github for hosting, I'm planning to use virtual hosting with SSH.
And If I edit one single post, then I should upload all my website files every time? It's hard and very don't convenient.
Sorry guys for my English.
My favorite solution is to let CloudCannon build the site and write the build to a DIFFERENT github repo called '[mygithubreposname]_static'. A webhook in this Github repo fires after update and pulls the build to my VM.
A simpler solution is to use a CD/CI tool, use CloudCannon or Netlify for hosting or to let CloudCannon deploy directly to your server.

Can Github be used for Web Development?

I'm a Web Dev. and I'm very new to Github and I was wondering if Github can be used for Web Development. If it can't then what lang. are commonly used for Github?
Github is a plattform for hosting git-repository.
It is not about programming language but about storing versions of your code an collaborating.
Basically you can use Github or any other git hosting for basically every programming project.
Here an article why it is a good idea to use git as a version control: https://www.makeuseof.com/tag/git-version-control-youre-developer/
Github lets you host you your code. Collaborate with people writing your code, showing it to the world, manage the version of your code. What is basically hosts is a git repository. Take a look over here to get an idea. One interesting thing, GitHub provides is letting you host static websites. It also provides the free domain name like yourUserNme.github.io. This tells how to do it. You can also use jykll template to host your site on GitHub.
you can git every lang , such as php ,html ,css and etc..
GitHub is a web-based hosting service for version control using Git. It is mostly used for computer code. It offers all of the distributed version control and source code management (SCM) functionality of Git as well as adding its own features. It provides access control and several collaboration features such as bug tracking, feature requests, task management, and wikis for every project.
It is not the programming language. I guess you can store most of your code in GitHub, and which can be used for version control. you can easily learn it from the following online tutorial link. https://lab.github.com/

Semantic MediaWiki 2.2: which extensions versions to use?

I am busy upgrading SMW 1.9.2 to version 2.2. How do I know which version to use of the accompanying extensions like Semantic Forms or Semantic Extra Special Properties?
As you can see at the SMW docs:
Various MediaWiki extensions are available for further extending
Semantic MediaWiki with additional functionality, and some basic
extensions of MediaWiki are generally useful for employing SMW.
Most extensions are not maintained by the SMW Project. Please see the
extension's main page and installation files to find out whom to
contact for support and where to report bugs. Questions related to
these extensions can be discussed on the mailing list or forum for the
extension (where specified), or on the Semantic MediaWiki user mailing
list.
So, in case that you don't find the relation between your SMW version and the version of each extension in the Semantic MediaWiki user mailing list or the forum for the extension, you should look at the official docs for every extension or contact the developers of each extension, as there is not official reference about the relation you're looking for.

Boilerplate to develop web components

I was looking at the repositories of PolymerLab and I met this repository:
https://github.com/PolymerLabs/untitled-element
This repository seem to serve as a boilerplate to create web components, but when I open the guide from the README file, I read a documentation that talks about other repository:
https://github.com/PolymerLabs/seed-element
and I was wondering, what is it? In untitled-element outdated? Or is it an error in the documentation?
Could maybe someone explain me the difference between this 2 boilerplates to start web component development?
Sorry for the confusion.
untitled-element is a minimal version created by the Polymer Engineering team specifically to provide a sample of our version of the canonical element repository.
seed-element has more features and was built by the Polymer Developer Relations folks to provide a nicer on-ramp.
You could use either one, depending on whether your prefer a minimal or turnkey approach.

Support for live preview of Haml in Coda or Espresso?

I just discovered the beautiful Haml and Sass, and want to develop in these languages but with live previews. Coda and Espresso both allow for beautiful live previews of HTML files, but previews of an Haml file simply show it as plain text.
While there exist sugars for Espresso that add syntax highlighting, which is nice, I would like something that automatically compiles Haml files to HTML, and then lets me preview that instead of Haml.
Does anything like this exist for either Coda, or Espresso, or for any other web development tool out there?
(If it makes a difference, I'm not developing for Ruby on Rails, I'm making a static website, so the Ruby on Rails plugin shouldn't help AFAIK.
Software I tried out were StaticMatic and Middleman. StaticMatic's development seems discontinued, and for some reason MiddleMan refuses to work after creating my initial directory structure. Maybe I'm using it wrong.)
I don't use Espresso, so no comment there. However, Coda does not provide any support for Haml or Sass that I can find. I've been closely following the Coda forums, as I am a paid user, and it looks as though a 2.0 version is forthcoming. Who knows, perhaps that'll be included.
For now, since you're not using Ruby on Rails, I might suggest TextMate. It doesn't do Haml or Sass "right out of the box", but it can be configured to do so using "Bundles."
Installing HAML bundle for TextMate is a primer on how to setup TextMate for Haml/Sass, and I suspect there are others.
That said, for roughly the cost of TextMate you can purchase RubyMine ($69), which does both Haml (via RubyGem) and Sass (via Plugin), and can also handle running Sass --watch internally. I know you're not using Ruby, so maybe the idea of using a tool made primarily for Ruby doesn't appeal, but it does work in both the Haml and Sass environments very nicely.
The third option would be BBEdit, which can also handle both Haml and Sass. Some information on the plugin for BBEdit is in BBEdit-Codeless-Language-Module-for-HAML-SASS.
I hope this helps.
P.S.: I'm a paid user on all the platforms I mentioned. While I use RubyMine as my primary tool, I find that TextMate still gets a lot of use when I'm programming and need a quick, friendly window to examine code in. I used to use BBEdit when I needed to do complex regular expression-style search and replacements, but then I discovered how to do the same thing in TextMate, so BBEdit is sort of collecting dust. Coda? It looks pretty, but doesn't get the job done so much any more (though Panic's Transmit is still very much a core application).
There are two plugins for Coda 2 that I am aware of:
Coda-Sass-Plug-in is available from GitHub and allows you to save out your scss files to css. I worked for me though I wasn't completely happy with needing to refresh multiple tabs all the time.
LessCSS is available from incident57 dot com. Although I was never able to make it work, it lead me to CodeKit (CodeKit has been mothballed due to production of CodeKit).
CodeKit has the ability to watch folders and generate css files from sass or less when they are saved. It also has the ability to handle Stylus, Haml, Javascript, CoffeeScript, Jade, Slim and Kit.
OK, for anyone else looking for an answer to this, I decided to go along with a different solution. I'm using my normal editors, along with 'serve', a Ruby gem that runs a web server using WEBrick, and automatically compiles any files which it detects has changed. This includes HAML, Sass, Slim, Markdown, etc. files. I'm going to be using either Coda's live preview, or the minimalist browser called Playground, which eliminates the need to press refresh when the local file it is displaying changes.
This workflow is nice for now, although it doesn't have any built-in method to build the entire site into a static site when I'm done and want to deploy. This is a feature in middleman, but middleman still refuses to run because a dependency of it, thin, refuses to work on 64 bits. I might have to manually compile all the files using the terminal command, and hope the Haml interpreter can handle combining template files with each file, which I seriously doubt at this stage. This limitation and thus the continued dependence on 'serve' might force me to consider one of the other applications out there, listed on the page Haml Sucks for Content.