mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
eb42774e58
A sample config: ```toml defaultContentLanguage = "en" defaultContentLanguageInSubdir = true [Languages] [Languages.en] weight = 10 title = "In English" languageName = "English" contentDir = "content/english" [Languages.nn] weight = 20 title = "På Norsk" languageName = "Norsk" contentDir = "content/norwegian" ``` The value of `contentDir` can be any valid path, even absolute path references. The only restriction is that the content dirs cannot overlap. The content files will be assigned a language by 1. The placement: `content/norwegian/post/my-post.md` will be read as Norwegian content. 2. The filename: `content/english/post/my-post.nn.md` will be read as Norwegian even if it lives in the English content folder. The content directories will be merged into a big virtual filesystem with one simple rule: The most specific language file will win. This means that if both `content/norwegian/post/my-post.md` and `content/english/post/my-post.nn.md` exists, they will be considered duplicates and the version inside `content/norwegian` will win. Note that translations will be automatically assigned by Hugo by the content file's relative placement, so `content/norwegian/post/my-post.md` will be a translation of `content/english/post/my-post.md`. If this does not work for you, you can connect the translations together by setting a `translationKey` in the content files' front matter. Fixes #4523 Fixes #4552 Fixes #4553
429 lines
9.2 KiB
TOML
429 lines
9.2 KiB
TOML
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
|
|
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/BurntSushi/toml"
|
|
packages = ["."]
|
|
revision = "a368813c5e648fee92e5f6c30e3944ff9d5e8895"
|
|
|
|
[[projects]]
|
|
name = "github.com/PuerkitoBio/purell"
|
|
packages = ["."]
|
|
revision = "0bcb03f4b4d0a9428594752bd2a3b9aa0a9d4bd4"
|
|
version = "v1.1.0"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/PuerkitoBio/urlesc"
|
|
packages = ["."]
|
|
revision = "de5bf2ad457846296e2031421a34e2568e304e35"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/alecthomas/chroma"
|
|
packages = [
|
|
".",
|
|
"formatters",
|
|
"formatters/html",
|
|
"lexers",
|
|
"lexers/a",
|
|
"lexers/b",
|
|
"lexers/c",
|
|
"lexers/circular",
|
|
"lexers/d",
|
|
"lexers/e",
|
|
"lexers/f",
|
|
"lexers/g",
|
|
"lexers/h",
|
|
"lexers/i",
|
|
"lexers/internal",
|
|
"lexers/j",
|
|
"lexers/k",
|
|
"lexers/l",
|
|
"lexers/m",
|
|
"lexers/n",
|
|
"lexers/o",
|
|
"lexers/p",
|
|
"lexers/q",
|
|
"lexers/r",
|
|
"lexers/s",
|
|
"lexers/t",
|
|
"lexers/v",
|
|
"lexers/w",
|
|
"lexers/x",
|
|
"lexers/y",
|
|
"styles"
|
|
]
|
|
revision = "85c342e3e3d715ad780edd0ba8728161e99cce24"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/bep/gitmap"
|
|
packages = ["."]
|
|
revision = "de8030ebafb76c6e84d50ee6d143382637c00598"
|
|
|
|
[[projects]]
|
|
name = "github.com/chaseadamsio/goorgeous"
|
|
packages = ["."]
|
|
revision = "dcf1ef873b8987bf12596fe6951c48347986eb2f"
|
|
version = "v1.1.0"
|
|
|
|
[[projects]]
|
|
name = "github.com/cpuguy83/go-md2man"
|
|
packages = ["md2man"]
|
|
revision = "a65d4d2de4d5f7c74868dfa9b202a3c8be315aaa"
|
|
version = "v1.0.6"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/danwakefield/fnmatch"
|
|
packages = ["."]
|
|
revision = "cbb64ac3d964b81592e64f957ad53df015803288"
|
|
|
|
[[projects]]
|
|
name = "github.com/davecgh/go-spew"
|
|
packages = ["spew"]
|
|
revision = "346938d642f2ec3594ed81d874461961cd0faa76"
|
|
version = "v1.1.0"
|
|
|
|
[[projects]]
|
|
name = "github.com/disintegration/imaging"
|
|
packages = ["."]
|
|
revision = "dd50a3ee9985ccd313a2f03c398fcaedc96dc707"
|
|
version = "v1.2.4"
|
|
|
|
[[projects]]
|
|
name = "github.com/dlclark/regexp2"
|
|
packages = [
|
|
".",
|
|
"syntax"
|
|
]
|
|
revision = "487489b64fb796de2e55f4e8a4ad1e145f80e957"
|
|
version = "v1.1.6"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/eknkc/amber"
|
|
packages = [
|
|
".",
|
|
"parser"
|
|
]
|
|
revision = "cdade1c073850f4ffc70a829e31235ea6892853b"
|
|
|
|
[[projects]]
|
|
name = "github.com/fortytw2/leaktest"
|
|
packages = ["."]
|
|
revision = "7dad53304f9614c1c365755c1176a8e876fee3e8"
|
|
version = "v1.1.0"
|
|
|
|
[[projects]]
|
|
name = "github.com/fsnotify/fsnotify"
|
|
packages = ["."]
|
|
revision = "c2828203cd70a50dcccfb2761f8b1f8ceef9a8e9"
|
|
version = "v1.4.7"
|
|
|
|
[[projects]]
|
|
name = "github.com/gobwas/glob"
|
|
packages = [
|
|
".",
|
|
"compiler",
|
|
"match",
|
|
"syntax",
|
|
"syntax/ast",
|
|
"syntax/lexer",
|
|
"util/runes",
|
|
"util/strings"
|
|
]
|
|
revision = "5ccd90ef52e1e632236f7326478d4faa74f99438"
|
|
version = "v0.2.3"
|
|
|
|
[[projects]]
|
|
name = "github.com/gorilla/websocket"
|
|
packages = ["."]
|
|
revision = "ea4d1f681babbce9545c9c5f3d5194a789c89f5b"
|
|
version = "v1.2.0"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/hashicorp/go-immutable-radix"
|
|
packages = ["."]
|
|
revision = "7f3cd4390caab3250a57f30efdb2a65dd7649ecf"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/hashicorp/golang-lru"
|
|
packages = ["simplelru"]
|
|
revision = "0fb14efe8c47ae851c0034ed7a448854d3d34cf3"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/hashicorp/hcl"
|
|
packages = [
|
|
".",
|
|
"hcl/ast",
|
|
"hcl/parser",
|
|
"hcl/printer",
|
|
"hcl/scanner",
|
|
"hcl/strconv",
|
|
"hcl/token",
|
|
"json/parser",
|
|
"json/scanner",
|
|
"json/token"
|
|
]
|
|
revision = "23c074d0eceb2b8a5bfdbb271ab780cde70f05a8"
|
|
|
|
[[projects]]
|
|
name = "github.com/inconshreveable/mousetrap"
|
|
packages = ["."]
|
|
revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75"
|
|
version = "v1.0"
|
|
|
|
[[projects]]
|
|
name = "github.com/jdkato/prose"
|
|
packages = [
|
|
"internal/util",
|
|
"transform"
|
|
]
|
|
revision = "20d3663d4bc9dd10d75abcde9d92e04b4861c674"
|
|
version = "v1.1.0"
|
|
|
|
[[projects]]
|
|
name = "github.com/kyokomi/emoji"
|
|
packages = ["."]
|
|
revision = "7e06b236c489543f53868841f188a294e3383eab"
|
|
version = "v1.5"
|
|
|
|
[[projects]]
|
|
name = "github.com/magefile/mage"
|
|
packages = [
|
|
"mg",
|
|
"sh"
|
|
]
|
|
revision = "2f974307b636f59c13b88704cf350a4772fef271"
|
|
version = "v1.0.2"
|
|
|
|
[[projects]]
|
|
name = "github.com/magiconair/properties"
|
|
packages = ["."]
|
|
revision = "c3beff4c2358b44d0493c7dda585e7db7ff28ae6"
|
|
version = "v1.7.6"
|
|
|
|
[[projects]]
|
|
name = "github.com/markbates/inflect"
|
|
packages = ["."]
|
|
revision = "a12c3aec81a6a938bf584a4bac567afed9256586"
|
|
|
|
[[projects]]
|
|
name = "github.com/mattn/go-runewidth"
|
|
packages = ["."]
|
|
revision = "9e777a8366cce605130a531d2cd6363d07ad7317"
|
|
version = "v0.0.2"
|
|
|
|
[[projects]]
|
|
name = "github.com/miekg/mmark"
|
|
packages = ["."]
|
|
revision = "fd2f6c1403b37925bd7fe13af05853b8ae58ee5f"
|
|
version = "v1.3.6"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/mitchellh/mapstructure"
|
|
packages = ["."]
|
|
revision = "a4e142e9c047c904fa2f1e144d9a84e6133024bc"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/muesli/smartcrop"
|
|
packages = [
|
|
".",
|
|
"options"
|
|
]
|
|
revision = "1db484956b9ef929344e51701299a017beefdaaa"
|
|
|
|
[[projects]]
|
|
name = "github.com/nicksnyder/go-i18n"
|
|
packages = [
|
|
"i18n/bundle",
|
|
"i18n/language",
|
|
"i18n/translation"
|
|
]
|
|
revision = "0dc1626d56435e9d605a29875701721c54bc9bbd"
|
|
version = "v1.10.0"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/olekukonko/tablewriter"
|
|
packages = ["."]
|
|
revision = "b8a9be070da40449e501c3c4730a889e42d87a9e"
|
|
|
|
[[projects]]
|
|
name = "github.com/pelletier/go-toml"
|
|
packages = ["."]
|
|
revision = "acdc4509485b587f5e675510c4f2c63e90ff68a8"
|
|
version = "v1.1.0"
|
|
|
|
[[projects]]
|
|
name = "github.com/pmezard/go-difflib"
|
|
packages = ["difflib"]
|
|
revision = "792786c7400a136282c1664665ae0a8db921c6c2"
|
|
version = "v1.0.0"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/russross/blackfriday"
|
|
packages = ["."]
|
|
revision = "55d61fa8aa702f59229e6cff85793c22e580eaf5"
|
|
|
|
[[projects]]
|
|
name = "github.com/sanity-io/litter"
|
|
packages = ["."]
|
|
revision = "ae543b7ba8fd6af63e4976198f146e1348ae53c1"
|
|
version = "v1.1.0"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/shurcooL/sanitized_anchor_name"
|
|
packages = ["."]
|
|
revision = "86672fcb3f950f35f2e675df2240550f2a50762f"
|
|
|
|
[[projects]]
|
|
name = "github.com/spf13/afero"
|
|
packages = [
|
|
".",
|
|
"mem"
|
|
]
|
|
revision = "63644898a8da0bc22138abf860edaf5277b6102e"
|
|
version = "v1.1.0"
|
|
|
|
[[projects]]
|
|
name = "github.com/spf13/cast"
|
|
packages = ["."]
|
|
revision = "8965335b8c7107321228e3e3702cab9832751bac"
|
|
version = "v1.2.0"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/spf13/cobra"
|
|
packages = [
|
|
".",
|
|
"doc"
|
|
]
|
|
revision = "be77323fc05148ef091e83b3866c0d47c8e74a8b"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/spf13/fsync"
|
|
packages = ["."]
|
|
revision = "12a01e648f05a938100a26858d2d59a120307a18"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/spf13/jwalterweatherman"
|
|
packages = ["."]
|
|
revision = "7c0cea34c8ece3fbeb2b27ab9b59511d360fb394"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "github.com/spf13/nitro"
|
|
packages = ["."]
|
|
revision = "24d7ef30a12da0bdc5e2eb370a79c659ddccf0e8"
|
|
|
|
[[projects]]
|
|
name = "github.com/spf13/pflag"
|
|
packages = ["."]
|
|
revision = "e57e3eeb33f795204c1ca35f56c44f83227c6e66"
|
|
version = "v1.0.0"
|
|
|
|
[[projects]]
|
|
name = "github.com/spf13/viper"
|
|
packages = ["."]
|
|
revision = "b5e8006cbee93ec955a89ab31e0e3ce3204f3736"
|
|
version = "v1.0.2"
|
|
|
|
[[projects]]
|
|
name = "github.com/stretchr/testify"
|
|
packages = [
|
|
"assert",
|
|
"require"
|
|
]
|
|
revision = "12b6f73e6084dad08a7c6e575284b177ecafbc71"
|
|
version = "v1.2.1"
|
|
|
|
[[projects]]
|
|
name = "github.com/yosssi/ace"
|
|
packages = ["."]
|
|
revision = "ea038f4770b6746c3f8f84f14fa60d9fe1205b56"
|
|
version = "v0.0.5"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "golang.org/x/image"
|
|
packages = [
|
|
"bmp",
|
|
"draw",
|
|
"math/f64",
|
|
"riff",
|
|
"tiff",
|
|
"tiff/lzw",
|
|
"vp8",
|
|
"vp8l",
|
|
"webp"
|
|
]
|
|
revision = "12117c17ca67ffa1ce22e9409f3b0b0a93ac08c7"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "golang.org/x/net"
|
|
packages = [
|
|
"context",
|
|
"idna"
|
|
]
|
|
revision = "136a25c244d3019482a795d728110278d6ba09a4"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "golang.org/x/sync"
|
|
packages = ["errgroup"]
|
|
revision = "fd80eb99c8f653c847d294a001bdf2a3a6f768f5"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "golang.org/x/sys"
|
|
packages = ["unix"]
|
|
revision = "37707fdb30a5b38865cfb95e5aab41707daec7fd"
|
|
|
|
[[projects]]
|
|
branch = "master"
|
|
name = "golang.org/x/text"
|
|
packages = [
|
|
"collate",
|
|
"collate/build",
|
|
"internal/colltab",
|
|
"internal/gen",
|
|
"internal/tag",
|
|
"internal/triegen",
|
|
"internal/ucd",
|
|
"language",
|
|
"secure/bidirule",
|
|
"transform",
|
|
"unicode/bidi",
|
|
"unicode/cldr",
|
|
"unicode/norm",
|
|
"unicode/rangetable",
|
|
"width"
|
|
]
|
|
revision = "4e4a3210bb54bb31f6ab2cdca2edcc0b50c420c1"
|
|
|
|
[[projects]]
|
|
branch = "v2"
|
|
name = "gopkg.in/yaml.v2"
|
|
packages = ["."]
|
|
revision = "d670f9405373e636a5a2765eea47fac0c9bc91a4"
|
|
|
|
[solve-meta]
|
|
analyzer-name = "dep"
|
|
analyzer-version = 1
|
|
inputs-digest = "edb250b53926de21df1740c379c76351b7e9b110c96a77078a10ba69bf31a2d4"
|
|
solver-name = "gps-cdcl"
|
|
solver-version = 1
|