mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-26 16:28:52 +00:00
Update required fields icon in lists, esp contrib to docs
This commit is contained in:
@@ -60,14 +60,14 @@ The archetype for the `functions` content type is as follows:
|
||||
|
||||
Let's review some of the fields automatically generated for you using `hugo new functions/*`:
|
||||
|
||||
`title`
|
||||
: ***Required.*** This should be generated in all lowercase when you use `hugo new`.
|
||||
***`title`***
|
||||
: This should be generated in all lowercase when you use `hugo new`.
|
||||
|
||||
`linktitle`
|
||||
: ***Required.*** Use the function's actual casing (e.g., `replaceRE` rather than `replacere`).
|
||||
***`linktitle`***
|
||||
: Use the function's actual casing (e.g., `replaceRE` rather than `replacere`).
|
||||
|
||||
`description`
|
||||
: ***Required.*** Keep this really short. This is what's used to populate the [Functions Quick Reference](/functions/).
|
||||
***`description`***
|
||||
: Keep this really short. This is what's used to populate the [Functions Quick Reference](/functions/).
|
||||
|
||||
`categories`
|
||||
: This is populated with 'functions` for future-proofing and portability reasons only. Skip this field.'
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
---
|
||||
title: rellangurl
|
||||
linktitle: relLangURL
|
||||
description: Similar to relURL, but adds the relative URL with correct language prefix according to site configuration for multilingual.
|
||||
description: Adds the relative URL with correct language prefix according to site configuration for multilingual.
|
||||
godocref:
|
||||
date: 2017-02-01
|
||||
publishdate: 2017-02-01
|
||||
@@ -17,7 +17,7 @@ aliases: []
|
||||
needsexamples: true
|
||||
---
|
||||
|
||||
`absLangURL` and `relLangURL` functions are similar to their [`absURL`](/functions/absurl/) and [`relURL`](/functions/relurl/) relatives but will add the correct language prefix when the site is configured with more than one language. (See [Configuring Multilingual][multiliconfig])
|
||||
`absLangURL` and `relLangURL` functions are similar to their [`absURL`](/functions/absurl/) and [`relURL`](/functions/relurl/) relatives but will add the correct language prefix when the site is configured with more than one language. (See [Configuring Multilingual][multiliconfig].)
|
||||
|
||||
So for a site `baseURL` set to `http://yoursite.com/hugo/` and the current language is `en`:
|
||||
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -84,6 +84,23 @@ aside {
|
||||
margin: 0px;
|
||||
font-weight: bolder;
|
||||
margin-right: 1em;
|
||||
//basically allows you to style with ***word*** in markdown for words like "Required"
|
||||
> strong > em > code{
|
||||
// color: $hugo-pink;
|
||||
font-style: normal;
|
||||
position: relative;
|
||||
&:after {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
font-family: 'FontAwesome';
|
||||
content: '\f06a';
|
||||
font-size: .9em;
|
||||
top: -.6em;
|
||||
right: 0px;
|
||||
margin-right: -.5em;
|
||||
color: $hugo-pink;
|
||||
}
|
||||
}
|
||||
}
|
||||
dd {
|
||||
margin: .5em 0em 0em 0em;
|
||||
@@ -96,22 +113,6 @@ aside {
|
||||
left: 1.5em;
|
||||
right: 0em;
|
||||
}
|
||||
//basically allows you to style with ***word*** in markdown for words like "Required"
|
||||
> strong > em {
|
||||
color: $hugo-pink;
|
||||
font-style: normal;
|
||||
position:relative;
|
||||
&:after {
|
||||
display:inline-block;
|
||||
position:relative;
|
||||
font-family: 'FontAwesome';
|
||||
content: '\f06a';
|
||||
font-size:.7em;
|
||||
top:-.5em;
|
||||
left:-.4em;
|
||||
margin-right:-.5em;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user