-
Notifications
You must be signed in to change notification settings - Fork 189
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #535 from Pelican-Elegant/bug-fixes
New feats and bug fixes
- Loading branch information
Showing
51 changed files
with
6,708 additions
and
4,006 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Title: Elegant Is Safe | ||
Tags: security, | ||
Category: 101 — Quick Start | ||
Date: 2019-12-02 11:45 | ||
Slug: elegant-is-safe | ||
Subtitle: | ||
Summary: | ||
Keywords: | ||
Authors: Talha Mansoor | ||
|
||
Static sites are usually safer than server side rendered sites. There can be some edge cases though even for a static site. | ||
|
||
We came to know about a potential security issue that involves, `target="_blank"`. We have updated our code to follow the recommended fix. | ||
|
||
You can read more about the issue and its fix at these links, | ||
|
||
1. [About rel=noopener](https://mathiasbynens.github.io/rel-noopener/) | ||
1. [react/jsx-no-target-blank](https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Title: Blockquote Style | ||
Tags: style, typography | ||
Category: Components | ||
Date: 2019-12-01 18:41 | ||
Slug: blockquote-style | ||
Authors: Talha Mansoor | ||
Subtitle: | ||
Summary: | ||
Keywords: | ||
|
||
<!-- yaspeller ignore:start --> | ||
|
||
This is how blockquotes appear in the Elegant theme. | ||
|
||
> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque eu tincidunt tortor aliquam nulla facilisi. Nibh tortor id aliquet lectus proin nibh nisl condimentum id. | ||
> | ||
> Lobortis feugiat vivamus at augue. Sed augue lacus viverra vitae congue eu consequat. Elit pellentesque habitant morbi tristique senectus et. Netus et malesuada fames ac turpis egestas. | ||
> | ||
> Porttitor rhoncus dolor purus non enim praesent elementum facilisis. Augue eget arcu dictum varius duis at consectetur. | ||
> | ||
> Pharetra pharetra massa massa ultricies mi quis. Vulputate enim nulla aliquet porttitor lacus luctus accumsan. Pulvinar neque laoreet suspendisse interdum. | ||
> | ||
> Ultrices eros in cursus turpis massa tincidunt dui ut ornare. Sem et tortor consequat id porta nibh venenatis. Nulla facilisi morbi tempus iaculis urna id volutpat lacus. | ||
> | ||
> Arcu ac tortor dignissim convallis aenean. Mauris pharetra et ultrices neque ornare. Scelerisque fermentum dui faucibus in ornare. Nibh tellus molestie nunc non blandit. | ||
<!-- yaspeller ignore:end --> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
Title: Headings Style | ||
Tags: style, typography | ||
Category: Components | ||
Date: 2019-12-01 10:38 | ||
Slug: headings-style | ||
Authors: Talha Mansoor | ||
Subtitle: | ||
Summary: | ||
Keywords: | ||
|
||
Following are the examples of headings as they appear inside an article. | ||
|
||
<!-- yaspeller ignore:start --> | ||
|
||
# Heading 1 `code` <small>small</small> | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque eu tincidunt tortor aliquam nulla facilisi. Nibh tortor id aliquet lectus proin nibh nisl condimentum id. Lobortis feugiat vivamus at augue. Sed augue lacus viverra vitae congue eu consequat. | ||
|
||
## Heading 2 `code` <small>small</small> | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque eu tincidunt tortor aliquam nulla facilisi. Nibh tortor id aliquet lectus proin nibh nisl condimentum id. Lobortis feugiat vivamus at augue. Sed augue lacus viverra vitae congue eu consequat. | ||
|
||
### Heading 3 `code` <small>small</small> | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque eu tincidunt tortor aliquam nulla facilisi. Nibh tortor id aliquet lectus proin nibh nisl condimentum id. Lobortis feugiat vivamus at augue. Sed augue lacus viverra vitae congue eu consequat. | ||
|
||
#### Heading 4 `code` <small>small</small> | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque eu tincidunt tortor aliquam nulla facilisi. Nibh tortor id aliquet lectus proin nibh nisl condimentum id. Lobortis feugiat vivamus at augue. Sed augue lacus viverra vitae congue eu consequat. | ||
|
||
##### Heading 5 `code` <small>small</small> | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque eu tincidunt tortor aliquam nulla facilisi. Nibh tortor id aliquet lectus proin nibh nisl condimentum id. Lobortis feugiat vivamus at augue. Sed augue lacus viverra vitae congue eu consequat. | ||
|
||
###### Heading 6 `code` <small>small</small> | ||
|
||
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Pellentesque eu tincidunt tortor aliquam nulla facilisi. Nibh tortor id aliquet lectus proin nibh nisl condimentum id. Lobortis feugiat vivamus at augue. Sed augue lacus viverra vitae congue eu consequat. | ||
|
||
<!-- yaspeller ignore:end --> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Title: Hyperlinks Styles | ||
Tags: style | ||
Category: Components | ||
Date: 2019-12-02 15:09 | ||
Slug: hyperlinks-styles | ||
Authors: Talha Mansoor | ||
Subtitle: | ||
Summary: | ||
Keywords: | ||
|
||
Elegant has three styles for hyperlinks that you can use. | ||
|
||
## Muted Style | ||
|
||
This is the default style of link. | ||
|
||
[Example Link - Use Firefox Browser](https://www.mozilla.org/en-US/firefox/new/) to support open web standards. | ||
|
||
This style is very suitable for long-form articles. To read the rationale behind this choice, read our help article [Why Does Elegant Look The Way It Does?]({filename}../Contributing/why-look-and-feel.md). | ||
|
||
## Amplified Style | ||
|
||
We understand not all links should be muted. Some links require attention. | ||
|
||
[Example Link - Use Firefox Browser](https://www.mozilla.org/en-US/firefox/new/){: class="ampl"} to support open web standards. <!-- yaspeller ignore --> | ||
|
||
To use this style, you need to enable [Markdown attribute list extension](https://python-markdown.github.io/extensions/attr_list/){:class="ampl"}. <!-- yaspeller ignore --> | ||
|
||
``` | ||
# Plugins and extensions | ||
MARKDOWN = { | ||
"extension_configs": { | ||
"markdown.extensions.extra": {}, | ||
"markdown.extensions.meta": {}, | ||
} | ||
} | ||
``` | ||
|
||
Then use this style using `ampl` class. | ||
|
||
```text | ||
[Example Link](https://www.mozilla.org/){: class="ampl"} blah blah | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
Title: Permalinks To Headings | ||
Tags: navigation, | ||
Category: Components | ||
Date: 2019-12-02 11:05 | ||
Slug: permalinks-to-headings | ||
Subtitle: | ||
Summary: | ||
Keywords: | ||
|
||
First, you need to enable the `toc` extension for Markdown in your Pelican configuration. | ||
|
||
```python | ||
MARKDOWN = { | ||
'extension_configs': { | ||
'markdown.extensions.toc': {} | ||
} | ||
} | ||
``` | ||
|
||
Then enable `permalink` option available for the `toc` extension. | ||
|
||
```python | ||
MARKDOWN = { | ||
'extension_configs': { | ||
'markdown.extensions.toc': { | ||
'permalink': 'true', | ||
} | ||
} | ||
} | ||
``` | ||
|
||
Enabling the `permalink` option will provide direct links to each heading. | ||
|
||
Hover over following example heading to see the permalink. | ||
|
||
## Example Heading | ||
|
||
You would get this, | ||
|
||
![Permalinks example using Markdown]({static}/images/elegant-theme-toc-permalinks.png) | ||
|
||
!!! Tip Recommendation | ||
|
||
When set to True the paragraph symbol `¶` or `¶` is used by Python markdown. | ||
This becomes part of the RSS feed. | ||
|
||
We recommend setting permalink option to a space. | ||
|
||
```python | ||
MARKDOWN = { | ||
'extension_configs': { | ||
'markdown.extensions.toc': { | ||
'permalink': ' ', | ||
} | ||
} | ||
} | ||
``` |
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
Oops, something went wrong.