Gyan Veda
Gyan Veda

Reputation: 6599

External hyperlink in HTML file with Jekyll format

I am using the Minimal Mistakes Jekyll theme to create a website. I forked the repository and I am editing an HTML file, index.html, to include an external hyperlink.

The following code results in text that is hyperlinked correctly.

My favorite website is <a href="https:\\www.google.com">Google</a>.

enter image description here

However, the hyperlinked text does not have the blue color formatting that the creator of this theme uses in his hyperlinks (example) as shown here:

enter image description here

I have looked at other forks of this theme and they all seem to have replaced index.html with index.md. If i want to keep index.html, how can I achieve the same blue color formatting in my hyperlinks? I feel like I am, more generally, misunderstanding how Jekyll themes allow formatting to be used in individual HTML files.

How does one use a Jekyll theme like Minimal Mistakes to allow theme-consistent HTML formatting of hyperlinks?

Upvotes: 0

Views: 1102

Answers (1)

Maxwelll
Maxwelll

Reputation: 2212

enter image description hereThis is all controlled in your themes style sheets. Not sure about 'minimal mistakes' but any jekyll theme is controlled with plain css.

My blog leverages jekyll and all my <a> tags are styled with (i am using SASS):

a {
  color: $blue;
  text-decoration: none;
    cursor: pointer;
  &:hover, &:active {
    color: $blue;
  }
}

Upvotes: 1

Related Questions