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

feat: add Persian font #318

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: add Persian font #318

wants to merge 2 commits into from

Conversation

Goudarz
Copy link
Contributor

@Goudarz Goudarz commented Mar 8, 2024

I added the font of Vazirmatn for better readability of the content in Persian/Arabic language.

Copy link

netlify bot commented Mar 8, 2024

Deploy Preview for hugo-hextra ready!

Name Link
🔨 Latest commit e2b3e27
🔍 Latest deploy log https://app.netlify.com/sites/hugo-hextra/deploys/65eb84a5434e9c000807d8b4
😎 Deploy Preview https://deploy-preview-318--hugo-hextra.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Owner

@imfing imfing left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @Goudarz thank you for the PR, I like a idea to use a different and more preferred font for RTL lang.

In Hextra, I'd prefer to include resources like fonts when needed, and avoid using CDN.

The changes in styles.css from this PR will be applied to every site. In fact, from users perspective, what we have in the PR can be easily done in the custom.css file, right?

If we really want to make this an option to all end users, I would suggest putting it into a Hugo template partial, e.g. rtl-font.html, and include it when needed - when Persian lang is detected

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

Successfully merging this pull request may close these issues.

2 participants