Skip to content

Fixes and enhancements. [4] - #1180

Merged
iissnan merged 7 commits into
iissnan:5.1.0from
ivan-nginx:5.1.0
Oct 20, 2016
Merged

iissnan merged 7 commits into
iissnan:5.1.0from
ivan-nginx:5.1.0

Conversation

@ivan-nginx

@ivan-nginx ivan-nginx commented Oct 18, 2016 •

Copy link
Copy Markdown
Collaborator

Part 1. Descriptions in posts.

  1. Add: meta descriptions on posts
  2. Add: noindex for some search engines like Yandex.

Addition to #1175.

Part 2. Copyright option.

Many peoples not like footer copyright. And no matter, what copyright is this; this is add external links to all pages in your blog — this good for developers, but bad for bloggers.

So, for now u may choose: set footer copyright to true or to false.

1. Add: meta descriptions on posts
2. Add: noindex for some search engines like Yandex.
@ivan-nginx ivan-nginx changed the title Add: meta descriptions on posts. Fixes and improvements. [4] Oct 19, 2016
@ivan-nginx ivan-nginx changed the title Fixes and improvements. [4] Fixes and enhancements. [4] Oct 19, 2016
Comment thread layout/_macro/post.swig Outdated
</a>
</div>
{% elif post.excerpt %}
{% if post.excerpt %}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

In previous releases, I use the description front -matter as a way to specify post excerpt. As a result, removing this code might confuse users that uses this feature. So my thought is to reserve this feature.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@iissnan excerpt_description option was added and enabled by default.

@iissnan iissnan added this to the v5.1.0 milestone Oct 19, 2016
1. If "is_index" (homepage) and "description" is defined and "excerpt_description" set to true (by default in config) — post description will appear in old style.
2. If all parameters the same, but not "is_index" (not homepage, single post) — post description will appear in new style (in meta header).
3. If all parameters the same, but "excerpt_description" set to false — post description will appear in new style anywhere.
4. If  "description" is not defined — all will be in old style (description will not appear nowhere).
@iissnan
iissnan merged commit 1106663 into iissnan:5.1.0 Oct 20, 2016
@ivan-nginx
ivan-nginx deleted the 5.1.0 branch May 3, 2017 12:00
snowyu pushed a commit to snowyu/hexo-theme-next that referenced this pull request Nov 23, 2019
* Make site-nav-toggle and badge more robust
stevenjoezhang added a commit to next-theme/hexo-theme-next that referenced this pull request Jan 21, 2023
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