layout | title | redirect_from | ||
---|---|---|---|---|
page |
Migration |
|
- this unordered seed list will be replaced by toc as unordered list {:toc}
Unless otherwise noted, to upgrade from an older to a newer version of Hydejack (6.0.0 and above), copy to following folders from the zip into your repository.
_includes/
_layouts/
_sass/
assets/
NOTE: If you've modified any of Hydejack's files, changes will be overwritten and you have to redo those changes. {:.message}
Buyers of the PRO version will find the files necessary for an upgrade in the upgrade
folder of the downloaded zip archive. Unless you've made any changes to Hydejack's own files, you can safely copy them into your blog directory.
When upgrading from the gem-based version to any zip version (free or PRO) copy to following files and folders:
_data/
_includes/
_layouts/
_sass/
assets/
404.md
Also make sure to remove the following line from _config.yml
, as all necessary files are now located in the directory itself:
theme: jekyll-theme-hydejack
Unfortunately, upgrading form v5 is not straightforward. A lot of patterns and names have changed, motivated by a variety of reasons, including better integration with the rest of the Jekyll ecosystem and simplified workflows enabled by Jekyll Collections.
Copy the the following folders and files from Hydejack v6 into your existing repository. Make sure you merge the folder contents.
_data/
_includes/
_layouts/
_sass/
assets/
404.md
index.html
(index.md
*)
- Delete the
public
folder. If you have placed files in thepublic
folder, only deletepublic/css
,public/js
andpublic/fonts
. Static files are now located in theassets
folder. - Delete
404.html
(now provided by404.md
and thenot-found
layout)
_config.yml
has changed considerably. Open it and make the following changes.
-
Rename the following keys
font_accent
=>font_heading
load_google_fonts
=>google_fonts
google_analytics_id
=>google_analytics
disqus
=>disqus_shortname
-
Enable Jekyll Collections by adding
collections: featured_categories: permalink: /category/:name/ output: true featured_tags: permalink: /tag/:name/ output: true projects: permalink: /projects/:path/ output: true
-
Copy the entire
author
hash (including the top-levelauthor
key) from_config.yml
into the new file_data/authors.yml
and add it to the top of the file (you can delete the rest of the file). -
In
_config.yml
, delete every key of theauthor
hash exceptname
andemail
. -
Choose a shortname and use it as the key for the author, e.g.
qwtel: name: Florian Klampfer email: [email protected] photo: ... photo2x: ... about: | Hi, I'm Florian or `@qwtel`... social: twitter: qwtel github: qwtel
You can take a look at the full authors.yml
for reference.
NOTE: When making changes to _config.yml
, it is necessary to restart the Jekyll process for the changes to take effect.
{:.message}
-
Open
_data/authors.yml
-
Delete
photo
andphoto2x
form the author you've copied and add apicture
hash instead that looks likepicture: src: <photo> srcset: 1x: <photo> 2x: <photo2x>
If you have only one photo, you can just provide the URL directly, e.g.
picture: <url>
.
For more information, see Adding an author.
-
Delete the
tag
folder. -
Create a top-level folder called
_featured_tags
. -
For each entry in
_data/tags.yml
, create a markdown file in_features_tags
with the name of the tag as filename, e.g.hyde.md
for tag "hyde". -
For each tag, copy its contents from
_data/tags.yml
into the new file's front matter, e.g.--- layout: list name: Hyde image: /hydejack/public/img/hyde.jpg color: '#949667' description: > Hyde is a brazen two-column Jekyll theme... ---
-
Add
layout: list
to the front matter. -
Once you've copied all tags into their own files, delete
_data/tags.yml
.
Hydejack can now link to any kind of page in the sidebar.
- Delete
sidebar_tags
in_config.yml
. - Open a file who's page you would like to add to the sidebar. If you want to add a tag, open
_featured_tags/<tagname>.md
. - Add
menu: true
to its front matter. - (Optional) Set
order: <number>
, where<number>
is the number at which you would like the link to appear.
The feed is now provided by the jekyll-feed
plugin instead of a custom solution.
-
Delete
atom.xml
-
Add
- jekyll-feed
togems
in_config.yml
, e.g.gems: - jekyll-feed - jekyll-sitemap - jekyll-paginate
-
(Optional) Add the following to
_config.yml
to make the feed appear at the same URL as the oldatom.xml
.feed: path: atom.xml
The way comments are enabled has changed slightly. You now have to enable them per page by adding comments: true
to the front matter (this is what the Disqus integration guide suggests).
As mentioned above, don't forget to rename disqus
to disqus_shortname
in _config.yml
.
Hydejack now has a dedicated layout for about pages.
To use it, open about.md
and change the layout
in the front matter to about
and delete {\% include about-short.html author=site.author %\}
.
Continue with Configuration{:.heading data-flip="title"} {:.read-more}