Skip to content

Commit

Permalink
Merge pull request #17 from rezafikkri/minor
Browse files Browse the repository at this point in the history
Fix font problem and add support for yaml
  • Loading branch information
rezafikkri authored Jun 23, 2024
2 parents a8663b8 + f1f1733 commit 092008e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/layout.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ export const roboto = Roboto({
subsets: ['latin'],
style: ['normal', 'italic'],
variable: '--font-roboto',
// fallback: ['sans-serif']
fallback: ['sans-serif']
});

export const source_code_pro = Source_Code_Pro({
weight: ['400'],
subsets: ['latin'],
variable: '--font-source-code-pro',
// fallback: ['monospace']
fallback: ['monospace']
});

// metadata config
Expand Down
2 changes: 2 additions & 0 deletions components/post/post-content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import html from 'highlight.js/lib/languages/xml';
import php from 'highlight.js/lib/languages/php';
import sql from 'highlight.js/lib/languages/sql';
import bash from 'highlight.js/lib/languages/bash';
import yaml from 'highlight.js/lib/languages/yaml';

// hljs register languages
hljs.registerLanguage('css', css);
Expand All @@ -18,6 +19,7 @@ hljs.registerLanguage('php', php);
hljs.registerLanguage('sql', sql);
hljs.registerLanguage('sql', sql);
hljs.registerLanguage('bash', bash);
hljs.registerLanguage('yaml', yaml);

hljs.configure({
ignoreUnescapedHTML: true
Expand Down

0 comments on commit 092008e

Please sign in to comment.