diff --git a/assets/_main.scss b/assets/_main.scss index 8c21806..a390578 100644 --- a/assets/_main.scss +++ b/assets/_main.scss @@ -37,6 +37,10 @@ img { vertical-align: baseline; } +small { + @extend .text-small; +} + :focus { @include outline; } @@ -315,10 +319,12 @@ body[dir="rtl"] .book-menu { font-size: $font-size-14; a { - margin: $padding-8 0; + margin: $padding-4 0; + padding: $padding-4 0; } a.flex { + display: inline-flex; gap: $padding-8; } } @@ -327,6 +333,10 @@ body[dir="rtl"] .book-menu { margin-top: $padding-16; } +.book-copyright { + margin-top: $padding-16; +} + .book-languages { margin-bottom: $padding-16; diff --git a/exampleSite/hugo.toml b/exampleSite/hugo.toml index a5aa8cb..66d5700 100644 --- a/exampleSite/hugo.toml +++ b/exampleSite/hugo.toml @@ -4,6 +4,8 @@ baseURL = 'http://0.0.0.0:1313/hugo-book/' title = 'Hugo Book' theme = 'hugo-book' +copyright = '[© CC BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcode)' + # Book configuration disablePathToLower = true enableGitInfo = true diff --git a/exampleSite/hugo.yaml b/exampleSite/hugo.yaml index d404579..4b6401a 100644 --- a/exampleSite/hugo.yaml +++ b/exampleSite/hugo.yaml @@ -4,6 +4,8 @@ baseURL: http://0.0.0.0:1313/hugo-book/ title: Hugo Book theme: hugo-book +copyright: "[© CC BY 4.0](https://creativecommons.org/licenses/by/4.0/legalcode)" + # Book configuration disablePathToLower: true enableGitInfo: true diff --git a/layouts/_partials/docs/copyright.html b/layouts/_partials/docs/copyright.html new file mode 100644 index 0000000..960b3d6 --- /dev/null +++ b/layouts/_partials/docs/copyright.html @@ -0,0 +1 @@ +{{ .Site.Title }} - {{ .Site.Copyright | .RenderString }} \ No newline at end of file diff --git a/layouts/_partials/docs/footer.html b/layouts/_partials/docs/footer.html index 01d8322..01b253a 100644 --- a/layouts/_partials/docs/footer.html +++ b/layouts/_partials/docs/footer.html @@ -1,23 +1,23 @@