Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use fork-awesome fonts with this theme? #152

Open
khurshid-alam opened this issue Oct 15, 2024 · 0 comments
Open

How to use fork-awesome fonts with this theme? #152

khurshid-alam opened this issue Oct 15, 2024 · 0 comments

Comments

@khurshid-alam
Copy link

khurshid-alam commented Oct 15, 2024

I copied example-site content into root folder. And locally running with baseUrl="", (and theme disabled)

I downloaded fork-awesome font into /static folder of root dir.

.static/
|-- css
|   |-- brands.css
|   |-- dark.css
|   |-- fontello.css
|   |-- fork-awesome.css
|   |-- frameworks.min.css
|   |-- gitalk.css
|   |-- github-style.css
|   |-- github.min.css
|   |-- light.css
|   |-- syntax.css
|   `-- toc.css
|-- fonts
|   |-- forkawesome-webfont.eot
|   |-- forkawesome-webfont.svg
|   |-- forkawesome-webfont.ttf
|   |-- forkawesome-webfont.woff
|   |-- forkawesome-webfont.woff2

Fork-awesome.css

@font-face {
  font-family: 'ForkAwesome';
  src: url('../fonts/forkawesome-webfont.eot?v=1.1.7');
  src: url('../fonts/forkawesome-webfont.eot?#iefix&v=1.1.7') format('embedded-opentype'), url('../fonts/forkawesome-webfont.woff2?v=1.1.7') format('woff2'), url('../fonts/forkawesome-webfont.woff?v=1.1.7') format('woff'), url('../fonts/forkawesome-webfont.ttf?v=1.1.7') format('truetype'), url('../fonts/forkawesome-webfont.svg?v=1.1.7#forkawesomeregular') format('svg');
  font-weight: normal;
  font-style: normal;
}
.fa {
  display: inline-block;
  .....
}

Finally adding the stylesheet into layouts/partials/head.html

  <link rel="stylesheet" href='{{ "css/dark.css" | absURL }}' />
  <link rel="stylesheet" href='{{ "css/syntax.css" | absURL }}' />
  <link rel="stylesheet" href='{{ "css/fork-awesome.css" | absURL }}' />

However it doesn't work when using icon class in markdown content

<!--more-->    

<icon class="fa fa-envelope"></icon>
<i class="fa fa-home"></i> Home

Any idea how to make it work ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant