-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Fixes and enhancements. [5] #1311
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Update to master branch.
If `created_at` and `updated_at` options set to `false`, excess divider before categories group will appear.
If in main config of hexo `archive_dir` is set to '/' then archives will not generate by hexo-generator-archive: https://github.com/hexojs/hexo-generator-archive/blob/master/lib/generator.js#L19 Idea take from #639.
Thanks. 👍 And Happy New Year! |
This was referenced Feb 15, 2017
habren
pushed a commit
to habren/hexo-theme-next
that referenced
this pull request
Apr 9, 2017
Fixes and enhancements. [5]
habren
pushed a commit
to habren/hexo-theme-next
that referenced
this pull request
Apr 9, 2017
If `seo` is true main site description will be passed by `config.subtitle` option in main Hexo config. But, there is duplicate of description by sidebar code (author & description). So, we will separate main site description and author description and u may use `theme.signature` option for author description (signature).
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part 1. Some small fixes.
Files modified:
Fix: categories divider in posts. 56347e4
![image](https://cloud.githubusercontent.com/assets/16944225/21194516/55541f96-c241-11e6-9700-23039c511bbd.png)
Fix: hide
archives
in sidebar if in main hexo configarchive_dir
set to/
. ed64a99This mean what archives will generate in public root dir by hexo, so, state item in sidebar is no needed.
Part 2. SEO enhancement.
Files modified:
seo
variable in config. 3f002c8h1
anditemprop="description"
onsite-subtitle
(defined inconfig.subtitle
variable). 7a2a4eah1
-h2
switcher inpost
. f8f69adh1
-h2
switcher inpost-collapse
. 6a97fdfWhy this need?
This option change headers hierarchy, basic on most popular search engines. Headers hierarchy very important for structured optimization data. Reference for post about headers structure there.
If
SEO
isfalse
then:If
SEO
istrue
then:How to use?
_config.yml
:_config.yml
of Next theme:Default is
false
.h2
, need to change them toh3
, ifh3
— toh4
, etc.Part 3. Post Meta Item Text option.
Files modified:
item_text
variable. fb8f989This option is
enabled
by default and mean to appear meta item text on elements:If set to
![image](https://cloud.githubusercontent.com/assets/16944225/21242924/b6512fbe-c327-11e6-8cbd-55a616d86cc7.png)
false
text after the icon of this elements will not show. Keep it mind — this text always is index by search engines and for seo is good idea to disable it. Looks like this:Part 4. CSS variables enhancements.
1. For support background color variable.
Note: useful for Pisces scheme.
Files modified:
How to use?
Simply add variable in
source/css/_variables/custom.styl
like:2. For support box-shadow (borders) variables.
Note: only work for Pisces scheme.
By default is no box-shadow (borders) present.
Files modified:
How to use?
Simply add variables in
source/css/_variables/custom.styl
like:Where
$box-shadow-inner
— borders for header and content (withouttop
border line).$box-shadow
— borders for sidebar (4 border lines on all sides, comma-separated:top
,right
,bottom
,left
).3. For support border-radius variables.
Note: only work for Pisces scheme.
By default is no border-radius present.
Files modified:
How to use?
Simply add variables in
source/css/_variables/custom.styl
like:Where
$border-radius-inner
— border angles for header and content (withouttop-left
andtop-right
border angles).$border-radius
— border angles for sidebar (4 border angles:top-left
,top-right
,bottom-right
,bottom-left
).How it looks?
Before:
![image](https://cloud.githubusercontent.com/assets/16944225/21280993/acf294ac-c3fa-11e6-9733-859f6c83098f.png)
![image](https://cloud.githubusercontent.com/assets/16944225/21281009/c6af1078-c3fa-11e6-905e-910428742c6a.png)
After:
Happy New Year! :)