1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

Revert "[Docs] Use <dl> for definition lists of variables"

This reverts commit 5d6dfe81b8.

The extra styling in docs/static/css/style.css has been retained.
This commit is contained in:
Anthony Fok
2015-01-19 11:44:14 -07:00
parent 4609f77a80
commit 53b4ab4cf3
5 changed files with 125 additions and 150 deletions

View File

@@ -27,30 +27,24 @@ access it via `.Site.Menus.main`.
A menu entry has the following properties:
<dl>
<dt><code>Url</code></dt> <dd>string</dd>
<dt><code>Name</code></dt> <dd>string</dd>
<dt><code>Menu</code></dt> <dd>string</dd>
<dt><code>Identifier</code></dt> <dd>string</dd>
<dt><code>Pre</code></dt> <dd>template.HTML</dd>
<dt><code>Post</code></dt> <dd>template.HTML</dd>
<dt><code>Weight</code></dt> <dd>int</dd>
<dt><code>Parent</code></dt> <dd>string</dd>
<dt><code>Children</code></dt> <dd>Menu</dd>
</dl>
* **Url** string
* **Name** string
* **Menu** string
* **Identifier** string
* **Pre** template.HTML
* **Post** template.HTML
* **Weight** int
* **Parent** string
* **Children** Menu
And the following functions:
<dl>
<dt><code>HasChildren</code></dt> <dd>bool</dd>
</dl>
* **HasChildren** bool
Additionally, there are some relevant functions available on the page:
<dl>
<dt><code>IsMenuCurrent</code></dt> <dd>(menu string, menuEntry *MenuEntry ) bool</dd>
<dt><code>HasMenuCurrent</code></dt> <dd>(menu string, menuEntry *MenuEntry) bool</dd>
</dl>
* **IsMenuCurrent** (menu string, menuEntry *MenuEntry ) bool
* **HasMenuCurrent** (menu string, menuEntry *MenuEntry) bool
## Adding content to menus

View File

@@ -39,16 +39,15 @@ the URL <http://yoursite.example.com/2013/11/sample-entry/>.
The following is a list of values that can be used in a permalink definition.
All references to time are dependent on the content's date.
<dl>
<dt><code>:year</code></dt><dd>the 4-digit year</dd>
<dt><code>:month</code></dt><dd>the 2-digit zero-padded month (01, 02, …, 12)</dd>
<dt><code>:monthname</code></dt><dd>the name of the month in English (“January”, “February”, …)</dd>
<dt><code>:day</code></dt><dd>the 2-digit zero-padded day (01, 02, …, 31)</dd>
<dt><code>:weekday</code></dt><dd>the 1-digit day of the week (Sunday = 0)</dd>
<dt><code>:weekdayname</code></dt><dd>the name of the day of the week in English (“Sunday”, “Monday”, …)</dd>
<dt><code>:yearday</code></dt><dd>the 1- to 3-digit day of the year, in the range [1,365] or [1,366]</dd>
<dt><code>:section</code></dt><dd>the contents section</dd>
<dt><code>:title</code></dt><dd>the contents title</dd>
<dt><code>:slug</code></dt><dd>the contents slug (or title if no slug)</dd>
<dt><code>:filename</code></dt><dd>the contents filename (without extension)</dd>
</dl>
* **:year** the 4-digit year
* **:month** the 2-digit month
* **:monthname** the name of the month
* **:day** the 2-digit day
* **:weekday** the 1-digit day of the week (Sunday = 0)
* **:weekdayname** the name of the day of the week
* **:yearday** the 1- to 3-digit day of the year
* **:section** the content's section
* **:title** the content's title
* **:slug** the content's slug (or title if no slug)
* **:filename** the content's filename (without extension)