Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Community Documentation
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bio-IT
Community Documentation
Commits
f664d410
Unverified
Commit
f664d410
authored
4 years ago
by
Patrick Marsceill
Browse files
Options
Downloads
Patches
Plain Diff
Add back to top link and format footer
parent
411c5088
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
_config.yml
+7
-0
7 additions, 0 deletions
_config.yml
_layouts/default.html
+24
-15
24 additions, 15 deletions
_layouts/default.html
_sass/base.scss
+1
-0
1 addition, 0 deletions
_sass/base.scss
with
32 additions
and
15 deletions
_config.yml
+
7
−
0
View file @
f664d410
...
...
@@ -47,12 +47,19 @@ nav_sort: case_insensitive # default, equivalent to nil
# Footer content
# appears at the bottom of every page's main content
# Back to top link
back_to_top
:
true
back_to_top_text
:
"
Back
to
top"
footer_content
:
"
Copyright
©
2017-2020
Patrick
Marsceill.
Distributed
by
an
<a
href=
\"
https://github.com/pmarsceill/just-the-docs/tree/master/LICENSE.txt
\"
>MIT
license.</a>"
# Footer last edited timestamp
last_edit_timestamp
:
true
# show or hide edit time - page must have `last_modified_date` defined in the frontmatter
last_edit_time_format
:
"
%b
%e
%Y
at
%I:%M
%p"
# uses ruby's time format: https://ruby-doc.org/stdlib-2.7.0/libdoc/time/rdoc/Time.html
# Footer "Edit this page on GitHub" link text
gh_edit_link
:
true
# show or hide edit this page link
gh_edit_link_text
:
"
Edit
this
page
on
GitHub"
...
...
This diff is collapsed.
Click to expand it.
_layouts/default.html
+
24
−
15
View file @
f664d410
...
...
@@ -29,7 +29,7 @@ layout: table_wrappers
</footer>
</div>
<div
class=
"main-content-wrap js-main-content"
tabindex=
"0"
>
<div
class=
"main-content"
>
<div
class=
"main-content"
id=
"top"
>
<div
class=
"page-header js-page-header"
>
{% if site.search_enabled != false %}
<div
class=
"search"
>
...
...
@@ -96,28 +96,37 @@ layout: table_wrappers
{% if site.footer_content != nil or site.last_edit_timestamp or site.gh_edit_link %}
<hr>
<footer
role=
"contentinfo"
>
{% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %}
<p
class=
"text-small text-grey-dk-000 mb-0"
>
Page last modified: {{ page.last_modified_date | date: site.last_edit_time_format }}.
</p>
<footer>
{% if site.back_to_top %}
<p><a
href=
"#top"
>
{{ site.back_to_top_text }}
</a></p>
{% endif %}
{%
if
{% if site.footer_content != nil %}
<p
class=
"text-small text-grey-dk-000 mb-0"
>
{{ site.footer_content }}
</p>
{% endif %}
{% if site.last_edit_timestamp or site.gh_edit_link %}
<div
class=
"d-flex mt-2"
>
{% if site.last_edit_timestamp and site.last_edit_time_format and page.last_modified_date %}
<p
class=
"text-small text-grey-dk-000 mb-0 mr-2"
>
Page last modified:
<span
class=
"d-inline-block"
>
{{ page.last_modified_date | date: site.last_edit_time_format }}
</span>
.
</p>
{% endif %}
{%
if
site.gh_edit_link and
site.gh_edit_link_text and
site.gh_edit_repository and
site.gh_edit_branch and
site.gh_edit_view_mode
%}
<p
class=
"text-small text-grey-dk-000 mb-0"
>
<a
href=
"{{ site.gh_edit_repository }}/{{ site.gh_edit_view_mode }}/{{ site.gh_edit_branch }}/{{ page.path }}"
>
{{ site.gh_edit_link_text }}
</a>
</p>
{% endif %}
{% if site.footer_content != nil %}
<p
class=
"text-small text-grey-dk-000 mb-0"
>
{{ site.footer_content }}
</p>
%}
<p
class=
"text-small text-grey-dk-000 mb-0"
>
<a
href=
"{{ site.gh_edit_repository }}/{{ site.gh_edit_view_mode }}/{{ site.gh_edit_branch }}/{{ page.path }}"
>
{{ site.gh_edit_link_text }}
</a>
</p>
{% endif %}
</div>
{% endif %}
</footer>
{% endif %}
...
...
This diff is collapsed.
Click to expand it.
_sass/base.scss
+
1
−
0
View file @
f664d410
...
...
@@ -14,6 +14,7 @@
html
{
@include
fs-4
;
scroll-behavior
:
smooth
;
}
body
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment