diff --git a/exampleSite/content/basics/customization/_index.en.md b/exampleSite/content/basics/customization/_index.en.md index c91dc65912..f05ed60fe9 100644 --- a/exampleSite/content/basics/customization/_index.en.md +++ b/exampleSite/content/basics/customization/_index.en.md @@ -9,21 +9,21 @@ In `themes/hugo-theme-relearn/layouts/partials/`, you will find all the partials This theme defines the following partials : -- `content.html`: the content page itself. This can be overridden if you wan't to display page's meta data above or below the content. -- `header.html`: the header of the content page (contains the breadcrumbs). _Not meant to be overwritten_ -- `custom-header.html`: custom headers in page. Meant to be overwritten when adding CSS imports. Don't forget to include `style` HTML tag directive in your file -- `footer.html`: the footer of the content page (contains the arrows). _Not meant to be overwritten_ -- `custom-footer.html`: custom footer in page. Meant to be overwritten when adding Javacript. Don't forget to include `javascript` HTML tag directive in your file +- `header.html`: the header of the page. _Not meant to be overwritten_ +- `footer.html`: the footer of the page._Not meant to be overwritten_ +- `menu.html`: left menu. _Not meant to be overwritten_ +- `search.html`: search box. _Not meant to be overwritten_ +- `custom-header.html`: custom headers in page. Meant to be overwritten when adding CSS imports. Don't forget to include `style` HTML tag directive in your file. +- `custom-footer.html`: custom footer in page. Meant to be overwritten when adding Javacript. Don't forget to include `javascript` HTML tag directive in your file. - `favicon.html`: the favicon - `logo.html`: the logo, on top left hand corner - `meta.html`: HTML meta tags, if you want to change default behavior -- `menu.html`: left menu. _Not meant to be overwritten_ - `menu-pre.html`: side-wide configuration to prepend to menu items. If you override this, it is your responsiblity to take the page's `pre` setting into account. - `menu-post.html`: side-wide configuration to append to menu items. If you override this, it is your responsiblity to take the page's `post` setting into account. - `menu-footer.html`: footer of the the left menu -- `search.html`: search box. _Not meant to be overwritten_ - `toc.html`: table of contents - +- `content.html`: the content page itself. This can be overridden if you wan't to display page's meta data above or below the content. +- `content-footer`: footer below the content, has a default implementation but you can overwrite it if you don't like it. ## Change the logo Create a new file in `layouts/partials/` named `logo.html`. Then write any HTML you want. diff --git a/exampleSite/content/basics/migration/_index.en.md b/exampleSite/content/basics/migration/_index.en.md index 1872fd7e40..5ec65e6ff9 100644 --- a/exampleSite/content/basics/migration/_index.en.md +++ b/exampleSite/content/basics/migration/_index.en.md @@ -14,6 +14,12 @@ This document shows you what's new in the latest release. For a detailed list of --- +## 3.4.0 + +- **Breaking**: If you had previously overwritten the `custom-footer.html` partial to add visual elements below the content of your page, you have to move this content to the new partial `content-footer.html`. `custom-footer.html` was never meant to contain HTML other than additional styles and JavaScript. + +--- + ## 3.3.0 - **New**: Introduction of new CSS variables to set the font. The theme distinguishs between `--MAIN-font` for all content text and `--CODE-font` for inline or block code. There are additional overrides for all headings. See the [theme variant generator]({{%relref "basics/generator" %}}) of the exampleSite for all available variables. diff --git a/layouts/partials/content-footer.html b/layouts/partials/content-footer.html new file mode 100644 index 0000000000..5451a4ede0 --- /dev/null +++ b/layouts/partials/content-footer.html @@ -0,0 +1,6 @@ +{{- with .Params.LastModifierDisplayName }} + {{ with $.Params.LastModifierEmail }}{{ end }}{{ . }}{{ with $.Params.LastModifierEmail }}{{ end }} + {{- with $.Date }} + {{ . | time.Format ":date_medium" }} + {{- end }} +{{- end }} \ No newline at end of file diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 17c058b1c6..4b9d154cf8 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -1,7 +1,5 @@ diff --git a/static/css/print.css b/static/css/print.css index e664f9a096..3613f5d356 100644 --- a/static/css/print.css +++ b/static/css/print.css @@ -89,6 +89,9 @@ body, margin-top: 1.5rem; padding-top: .75rem; } +#body #body-inner .footline a { + text-decoration: none; +} #body #body-inner a { /* in print we want to distinguish links in our content from normal text even if printed black/white; diff --git a/static/css/theme.css b/static/css/theme.css index 4fa052d8b1..95b1d3c917 100644 --- a/static/css/theme.css +++ b/static/css/theme.css @@ -1196,6 +1196,13 @@ option { margin-top: 2rem; } +.footline i{ + margin-left: .5rem; +} +.footline i:first-child{ + margin-left: 0; +} + .mermaid { margin-bottom: 1.7rem; margin-top: 1.7rem;