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

Make font-size customized only when theme.font.enable is true #1058

Merged
merged 5 commits into from
Oct 14, 2019

Conversation

daya0576
Copy link
Contributor

@daya0576 daya0576 commented Aug 4, 2019

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines.
  • Tests for the changes was maked (for bug fixes / features).
    • Muse | Mist have been tested.
    • Pisces | Gemini have been tested.
  • Docs in NexT website have been added / updated (for features).

PR Type

What kind of change does this PR introduce?

  • Bugfix.
  • Feature.
  • Code style update (formatting, local variables).
  • Refactoring (no functional changes, no api changes).
  • Build related changes.
  • CI related changes.
  • Documentation content changes.
  • Other... Please describe:

What is the current behavior?

Issue resolved: N/A

What is the new behavior?

  • Screenshots with this changes: N/A
  • Link to demo site with this changes: N/A

How to use?

In NexT _config.yml:

...

Does this PR introduce a breaking change?

  • Yes.
  • No.

@1v9 1v9 added the ⭐ Feature label Aug 4, 2019
@1v9 1v9 added this to the v7.4.0 milestone Aug 4, 2019
@1v9 1v9 changed the title Fix/font settings Make font-size customized only when theme.font.enable Aug 4, 2019
@1v9 1v9 changed the title Make font-size customized only when theme.font.enable Make font-size customized only when theme.font.enable is true Aug 4, 2019
Copy link
Member

@ivan-nginx ivan-nginx left a comment

Choose a reason for hiding this comment

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

Wait for end font refactoring...

@ivan-nginx
Copy link
Member

@stevenjoezhang are u think this is good? Because font-size and font-family – independence options.

@stevenjoezhang
Copy link
Contributor

@ivan-nginx In my opinion, enable option of tagcloud and font is redundant. If no font families are set, the font setting has the same effect as enable: false

@1v9 1v9 added the 🌀 Fonts label Aug 13, 2019
@1v9 1v9 modified the milestones: v7.4.0, v8.0.0 Aug 30, 2019
@stevenjoezhang stevenjoezhang modified the milestones: v8.0.0, v7.4.1 Aug 31, 2019
@stevenjoezhang stevenjoezhang self-requested a review September 18, 2019 14:40
@stevenjoezhang
Copy link
Contributor

stevenjoezhang commented Sep 18, 2019

The current situation is consistent with documentation:

hexo-theme-next/_config.yml

Lines 478 to 481 in 2637c53

font:
# Use custom fonts families or not.
# Depended options: `external` and `family`.
enable: false

Maybe it would be better to keep it as is?

@stevenjoezhang stevenjoezhang merged commit 6276c70 into theme-next:master Oct 14, 2019
@1v9 1v9 modified the milestones: v7.5.0, 7.4.2 Oct 20, 2019
Liam0205 added a commit to Liam0205/hexo-theme-next that referenced this pull request Oct 22, 2019
- Add Google Analytics Pageview (theme-next#1198)

- Make font-size customized only when `theme.font.enable` is true (theme-next#1058)
- Point to different website based on the scheme (theme-next#1202)
- New Valine options (theme-next#1193)
- Improve the style of site-nav (theme-next#1180)

- Code style update (theme-next#1197, theme-next#1205)
- Replace id with class name (theme-next#1209)
- Add lang attribute to article tag when specified in front matter (theme-next#1199)
- Fix compatibility issues with hexo-util@1.3.0 (theme-next#1175)
- Optimize the loading of three.js (theme-next#1140)

- New README for NexT (theme-next#1155)

***

For full changes, see the [comparison between v7.4.1 and v7.5.0](theme-next/hexo-theme-next@v7.4.1...v7.5.0)
tongluyang pushed a commit to tongluyang/hexo-theme-next that referenced this pull request Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants