From 0e20e8f94d4f10e351fef322641b1ed591c23631 Mon Sep 17 00:00:00 2001 From: vjeantet Date: Tue, 8 Sep 2020 23:53:46 +0200 Subject: add actions on the right bar --- assets/sass/main.scss | 15 +++--- exampleSite/config.toml | 3 +- exampleSite/content/shortcodes/icon/_index.md | 1 + ...n.scss_9fd32d87d247ca96761d3cae485087fe.content | 60 ++++++++++++---------- i18n/en.toml | 5 +- i18n/fr.toml | 5 +- layouts/partials/body-article-content.html | 1 + layouts/partials/body-article-sidepage.html | 47 +++++++++++++++-- layouts/partials/body-footer.html | 34 ------------ 9 files changed, 97 insertions(+), 74 deletions(-) diff --git a/assets/sass/main.scss b/assets/sass/main.scss index a0b4495..3abd3ce 100644 --- a/assets/sass/main.scss +++ b/assets/sass/main.scss @@ -133,9 +133,9 @@ body:not(.render_raw){ font-size:14px; line-height:20px; padding-left:2px; - - .TableOfContents { - + + > div { + margin-bottom: 2em; > *{ margin-left:5px; } @@ -166,8 +166,8 @@ body:not(.render_raw){ } li{ padding: 8px 0px 8px 0px; + font-weight:300; a { - font-weight:300; /*padding-left: 2px;*/ &.active{ font-weight:500; @@ -175,10 +175,13 @@ body:not(.render_raw){ } } - } - } + .Actions{ + font-size: 75%; + } + + } } footer { diff --git a/exampleSite/config.toml b/exampleSite/config.toml index e3eef02..93c7e78 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -32,7 +32,8 @@ disableSearch = false # default is false disableNavChevron = false # set true to hide next/prev chevron, default is false menushortcutsnewtab = false # set true to open shortcuts links to a new tab/window -editURL = "https://github.com/vjeantet/hugo-theme-docport/edit/master/exampleSite/content/" +#editURL = "https://github.com/vjeantet/hugo-theme-docport/edit/master/exampleSite/content/" +editWithNetlifyCMSCollection = "pages" enableGitInfo = true diff --git a/exampleSite/content/shortcodes/icon/_index.md b/exampleSite/content/shortcodes/icon/_index.md index 5dad302..921fd90 100644 --- a/exampleSite/content/shortcodes/icon/_index.md +++ b/exampleSite/content/shortcodes/icon/_index.md @@ -1,6 +1,7 @@ +++ title = "icon" description = "Display an icon." +date = 2020-09-08T20:40:23.389Z +++ Display one of the 2 298 icons like diff --git a/exampleSite/resources/_gen/assets/scss/sass/main.scss_9fd32d87d247ca96761d3cae485087fe.content b/exampleSite/resources/_gen/assets/scss/sass/main.scss_9fd32d87d247ca96761d3cae485087fe.content index 8bca67d..08a4f05 100644 --- a/exampleSite/resources/_gen/assets/scss/sass/main.scss_9fd32d87d247ca96761d3cae485087fe.content +++ b/exampleSite/resources/_gen/assets/scss/sass/main.scss_9fd32d87d247ca96761d3cae485087fe.content @@ -59,34 +59,38 @@ body:not(.render_raw) { font-size: 14px; line-height: 20px; padding-left: 2px; } - body:not(.render_raw) article section.right-menu .TableOfContents > * { - margin-left: 5px; } - body:not(.render_raw) article section.right-menu .TableOfContents label { - font-weight: 700; - letter-spacing: -1px; - display: block; - margin-bottom: 14px; - border-bottom: 1px dotted #999999; - color: #333333; - font-variant: small-caps; } - body:not(.render_raw) article section.right-menu .TableOfContents nav > ul { - padding: 0px 0px 0px 0px; - margin: 0px 0px 0px 0px; } - body:not(.render_raw) article section.right-menu .TableOfContents nav > ul ul { - padding: 0px 0px 0px 14px; - margin: 0px 0px 0px 0px; - border-left: 1px solid #e6e6e6; } - body:not(.render_raw) article section.right-menu .TableOfContents nav > ul ul li { - font-size: 90%; } - body:not(.render_raw) article section.right-menu .TableOfContents ul { - list-style-type: none; } - body:not(.render_raw) article section.right-menu .TableOfContents li { - padding: 8px 0px 8px 0px; } - body:not(.render_raw) article section.right-menu .TableOfContents li a { - font-weight: 300; - /*padding-left: 2px;*/ } - body:not(.render_raw) article section.right-menu .TableOfContents li a.active { - font-weight: 500; } + body:not(.render_raw) article section.right-menu > div { + margin-bottom: 2em; } + body:not(.render_raw) article section.right-menu > div > * { + margin-left: 5px; } + body:not(.render_raw) article section.right-menu > div label { + font-weight: 700; + letter-spacing: -1px; + display: block; + margin-bottom: 14px; + border-bottom: 1px dotted #999999; + color: #333333; + font-variant: small-caps; } + body:not(.render_raw) article section.right-menu > div nav > ul { + padding: 0px 0px 0px 0px; + margin: 0px 0px 0px 0px; } + body:not(.render_raw) article section.right-menu > div nav > ul ul { + padding: 0px 0px 0px 14px; + margin: 0px 0px 0px 0px; + border-left: 1px solid #e6e6e6; } + body:not(.render_raw) article section.right-menu > div nav > ul ul li { + font-size: 90%; } + body:not(.render_raw) article section.right-menu > div ul { + list-style-type: none; } + body:not(.render_raw) article section.right-menu > div li { + padding: 8px 0px 8px 0px; + font-weight: 300; } + body:not(.render_raw) article section.right-menu > div li a { + /*padding-left: 2px;*/ } + body:not(.render_raw) article section.right-menu > div li a.active { + font-weight: 500; } + body:not(.render_raw) article section.right-menu .Actions { + font-size: 75%; } body:not(.render_raw) footer { background-color: #333333; color: #cccccc; diff --git a/i18n/en.toml b/i18n/en.toml index 56c7085..158d97a 100644 --- a/i18n/en.toml +++ b/i18n/en.toml @@ -48,4 +48,7 @@ other= "Home" other= "Next page" [table-of-contents] -other= "What's on this page" \ No newline at end of file +other= "What's on this page" + +[last-update-by] +other = "Last update by" \ No newline at end of file diff --git a/i18n/fr.toml b/i18n/fr.toml index 84da357..cc78183 100644 --- a/i18n/fr.toml +++ b/i18n/fr.toml @@ -48,4 +48,7 @@ other= "Accueil" other= "Contenu suivant" [table-of-contents] -other= "Contenu de la page" \ No newline at end of file +other= "Contenu de la page" + +[last-update-by] +other = "Dernière modification par " \ No newline at end of file diff --git a/layouts/partials/body-article-content.html b/layouts/partials/body-article-content.html index b1237bb..07b5f99 100644 --- a/layouts/partials/body-article-content.html +++ b/layouts/partials/body-article-content.html @@ -80,6 +80,7 @@ {{- end -}} + {{if not .Params.hide_nextpage}}
{{ partial "_next-prev-page.html" .CurrentSection }} diff --git a/layouts/partials/body-article-sidepage.html b/layouts/partials/body-article-sidepage.html index 5a4aa75..dead969 100644 --- a/layouts/partials/body-article-sidepage.html +++ b/layouts/partials/body-article-sidepage.html @@ -1,6 +1,4 @@ {{- partial "_mdinclude.html" (dict "name" "_layout/article-sidebar-before/_index" "context" .) -}} -
-
{{ .TableOfContents }}
-{{- partial "_mdinclude.html" (dict "name" "_layout/article-sidebar-after/_index" "context" .) -}} \ No newline at end of file +{{- partial "_mdinclude.html" (dict "name" "_layout/article-sidebar-after/_index" "context" .) -}} + + +
+ + +
\ No newline at end of file diff --git a/layouts/partials/body-footer.html b/layouts/partials/body-footer.html index 214fbb3..157e877 100644 --- a/layouts/partials/body-footer.html +++ b/layouts/partials/body-footer.html @@ -1,38 +1,4 @@ - - {{- partial "_mdinclude.html" (dict "name" "_layout/footer/_index" "context" . "tip" (T "create-footer-md") ) -}} - -- cgit v1.2.3