kandi X-RAY | minimal-mistakes Summary
kandi X-RAY | minimal-mistakes Summary
Minimal Mistakes is a flexible two-column Jekyll theme, perfect for building personal sites, blogs, and portfolios. As the name implies, styling is purposely minimalistic to be enhanced and customized by you :smile:. :sparkles: See what's new in the CHANGELOG. Note: The theme uses the jekyll-include-cache plugin which will need to be installed in your Gemfile and added to the plugins array of _config.yml. Otherwise you'll encounter Unknown tag 'include_cached' errors at build.
Top functions reviewed by kandi - BETA
minimal-mistakes Key Features
minimal-mistakes Examples and Code Snippets
Trending Discussions on minimal-mistakes
I'm creating a webpage using markdown hosted by github.io. I really don't like the blue color of the hyperlink automatically generated by markdown and I'm wondering if it's possible to change it. More specifically, I'd like the text to stay black and the solid underline to become dashed underline. Here is a sample code:...
ANSWERAnswered 2021-Mar-31 at 11:41
Since GitHub uses its own styling after it processes your markdown file, any custom stylings will be overwritten. However, in a broader case, you can always use HTML elements in your markdown files. Take this example:
I've got a Jekyll private blog (i.e., laboratory notebook) that uses the wonderful minimal-mistakes theme. I make heavy use of tags for each of my blog posts and can see the list of tags.
I also like to keep track of the people I mention in my blog post, so I add additional meta data for each post like this:...
ANSWERAnswered 2020-Oct-23 at 06:57
I think you need to replace
page in your second code snippet, see the handling for variables.
- site: global website (e.g. _config.yml)
- page: current page
Additional I dropped the array index
Hi, I am creating a simple navigation site, and would like to know how to change / add a class to one of the li elements of the inline toc, on the right, to style it with css
My page so far.
The page behaviour I'd like to achieve: https://docs.microsoft.com/en-us/dotnet/csharp/tutorials/intro-to-csharp/branches-and-loops-local
(if you scroll up and down the main page, you will see the styling of the right side toc element change)
The same behaviour can be seen here: https://startech-enterprises.github.io/minimal-mistakes/docs/quick-start-guide/ (see right hand side toc change as you scroll up and down the page)
NOTE - QUESTION HAS BEEN ANSWERED AND CODE in link above UPDATED, based on answers given below
The CSS I have so far:...
ANSWERAnswered 2020-Jun-16 at 00:27
As I understood the answer you don't want to give it a style just add a class? If you would like to directly give some stylings to a li e.g. you could do this
According to this, "Jekyll will read-in a
_config.yml at the root of the theme-gem and merge its data into the site’s existing configuration data." But I've created a theme with a config that looks like this:
And I'm referencing the variables like this in my theme's css: (Notice empty frontmatter and liquid tag on last line.)
And the result comes out like this in the rendered site: (Notice the emptystring where my liquid tag used to be.)
If I put the variables in the
_config of my site rather than in the one for the theme, everything works as expected. But I want these variables tied to the theme.
To make matters more mysterious, I can find examples in the common
minimal-mistakes theme where site variables are defined in the theme and then used, just as I've used these, in theme files with no issues. (Notice site.yadda.yadda, which are defined in the root directory's
I am not creating a full gem; I'm using
remote_theme feature. I would suspect that were the cause, except that themes like
minimal-mistakes work fine by this method.
What is going on?...
ANSWERAnswered 2020-Jan-13 at 15:55
I also posed this question over on the Jekyll GitHub and was able to arrive at some answers:
The feature doesn't work on GitHub pages because it's using Jekyll 3.8.6 to deploy, not 4.0.0, and this ability to use variables from a theme's
_config.yml is a new feature in the new version.
Minimal mistakes and other themes define variables in their config files only as examples of what you the user might do in your site's config file and so the
index.html and other demos defined in the theme directory itself have something to reference when they're
jekyll served. In some cases you really need to provide those values, or the themes don't look as intended. In other cases, the theme
_includes have conditional Liquid tags, so entire portions of a page simply aren't rendered if variables are missing in the child site.
- Wait for GitHub to use 4.0.0, which looks like people have been asking about and waiting on for nearly a year.
- Define all variables in the child-site. Not workable if you truly need the theme to include this information so it can be reused across several sites, e.g. this use case.
- Instead of using variables and Liquid code, hard-code values everywhere a variable appears.
- Build with Jekyll 4.0.0 locally, and push the
_siteartifacts up to a
gh-pagesbranch manually or with continuous integration. (Labor-intensive to set up, not very workable for a User Pages site because it renders from
master, and currently not possible with
remote_themes because it's broken for 4.0.0)
- Use some other service that supports Jekyll 4.0.0 to deploy, like Netlify. But this sort of defeats the purpose of making this seamless with my GitHub repos to display my work.
Because I don't have many variables, I'm going with hard-coding for now and just waiting out the Jekyll 3.8.6/4.0.0 thing.
I'm new to using jekyll and tried installing the
minimal-mistakes-jekyll theme as a gem. Added the gem
minimal-mistakes-jekyll to my gemfile, updated it with the bundle command, and set it as theme in _config.yml on a directory created by
jekyll new mywebsite but it's giving me this error when I try to run bundle exec jekyll serve:
/home/theo/gems/gems/octokit-4.14.0/lib/octokit/middleware/follow_redirects.rb:14:in `': uninitialised constant Faraday::Error::ClientError (NameError)
Did you mean? Faraday::ClientError
which persists when I tried using different versions of jekyll. I'm not sure how to fix this, any help would be appreciated! Running Ubuntu 19.04 and ruby 2.5.5, if that's useful....
ANSWERAnswered 2020-Jan-02 at 06:50
I managed to fix the problem by editing the
Gemfile and specifying manually the 0.17.3 version which seams to be the last official release:
No vulnerabilities reported
Reuse Trending Solutions
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page