mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-14 20:37:55 -05:00
27 lines
439 B
Markdown
27 lines
439 B
Markdown
|
---
|
||
|
title: int
|
||
|
linktitle: int
|
||
|
description: Creates an `int` from the argument passed into the function.
|
||
|
godocref:
|
||
|
date: 2017-02-01
|
||
|
publishdate: 2017-02-01
|
||
|
lastmod: 2017-02-01
|
||
|
categories: [functions]
|
||
|
menu:
|
||
|
docs:
|
||
|
parent: "functions"
|
||
|
#tags: [strings,integers]
|
||
|
signature: ["int INPUT"]
|
||
|
workson: []
|
||
|
hugoversion:
|
||
|
relatedfuncs: []
|
||
|
deprecated: false
|
||
|
aliases: []
|
||
|
---
|
||
|
|
||
|
Useful for turning strings into numbers.
|
||
|
|
||
|
```
|
||
|
{{ int "123" }} → 123
|
||
|
```
|