minimal-mistakes | Jekyll theme for building a personal site | Static Site Generator library
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.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of minimal-mistakes
minimal-mistakes Key Features
minimal-mistakes Examples and Code Snippets
Community Discussions
Trending Discussions on minimal-mistakes
QUESTION
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:
...ANSWER
Answered 2021-Mar-31 at 11:41Since 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:
QUESTION
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:
...ANSWER
Answered 2020-Oct-23 at 06:57I think you need to replace site
with 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 [0]
.
QUESTION
ANSWER
Answered 2020-Jul-09 at 19:56Well it's markdown, so you should do
QUESTION
QUESTION
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.
https://startech-enterprises.github.io/docs/data-integration-and-etl/branches-and-loops-local.html
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)
I've tried to study the JavaScript behind this pages, but it's difficult to make sense of, and the scripts look overly complicated.
Any ideas?
Thanks,
Sachin
NOTE - QUESTION HAS BEEN ANSWERED AND CODE in link above UPDATED, based on answers given below
CODE USED
The CSS I have so far:
...ANSWER
Answered 2020-Jun-16 at 00:27As 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
QUESTION
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 config.yml
.)
I am not creating a full gem; I'm using github-pages
' 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?
...ANSWER
Answered 2020-Jan-13 at 15:55I 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 serve
d. 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.
Solutions?
- 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
_site
artifacts up to agh-pages
branch manually or with continuous integration. (Labor-intensive to set up, not very workable for a User Pages site because it renders frommaster
, and currently not possible withremote_theme
s 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.
QUESTION
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.
...ANSWER
Answered 2020-Jan-02 at 06:50I 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:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install minimal-mistakes
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page