Skip to content

Commit

Permalink
Update themes.md
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahDragon authored Aug 21, 2018
1 parent cb5be96 commit 499d212
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions source/api/themes.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ title: Themes
---
`hexo.theme` inherits from [Box](box.html), and also saves templates.

{% note warn For theme creators %} In order to show the static site generator behind the web site (like [WAP Analyzer](https://www.wappalyzer.com/)), the best practice would be add the generator meta into HTML head:
```html
<meta name="generator" content="Hexo 3.7.1">
```
In swig:
```swig
<meta name="generator" content="Hexo {{ hexo_version() }}">
```
In ejs:
```ejs
<meta name="generator" content="Hexo <%= hexo_version() %>">
```
{% endnote %}

## Get a View

``` js
Expand Down

0 comments on commit 499d212

Please sign in to comment.