hexowebsiteblog

GitLab Pages

Create a new repository named username.gitlab.io, where username is your username on GitLab. If you have already uploaded to other repo, rename the repo instead. Enable Shared Runners via Settings -> CI / CD -> Shared Runners. Push the files of your Hexo folder to the repository. The public/ folder is not (and should not be) uploaded by default, mak..

Read more
hexowebsiteblog

Helpers

Helpers are used in templates to help you insert snippets quickly. Helpers cannot be used in source files. You could easily write your own custom helper or use our ready-made helpers. URLurl_forReturns a url with the root path prefixed. Output is encoded automatically. <%- url_for(path, [option]) %> Option Description Default relative Outpu..

Read more
hexowebsiteblog

Documentation

Welcome to the Hexo documentation. If you encounter any problems when using Hexo, have a look at the troubleshooting guide, raise an issue on GitHub or start a topic on the Google Group. What is Hexo?Hexo is a fast, simple and powerful blog framework. You write posts in Markdown (or other markup languages) and Hexo generates static files with a beautiful ..

Read more
hexowebsiteblog

Internationalization (i18n)

You can use internationalization to present your site in different languages. The default language is set by modifying the language setting in _config.yml. You can also set multiple languages and modify the order of default languages. language: zh-tw language: - zh-tw - en Language FilesLanguage files can be YAML or JSON files. You should put them into t..

Read more
hexowebsiteblog

Migration

RSSFirst, install the hexo-migrator-rss plugin. $ npm install hexo-migrator-rss --save Once the plugin is installed, run the following command to migrate all posts from RSS. source can be a file path or URL. $ hexo migrate rss <source> JekyllMove all files in the Jekyll _posts folder to the source/_posts folder. Modify the new_post_name setting in ..

Read more
123456