Skip to content

Commit

Permalink
Merge pull request #194 from f5devcentral/last_updated_display
Browse files Browse the repository at this point in the history
Add ability to show 'last_updated' on pages
  • Loading branch information
jswongF5 authored May 3, 2024
2 parents 6ca9f19 + ce9c479 commit 72a2e34
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Setup and Configuration
# 'sidebar_toc_maxdepth' = '' \\ DEFAULTS TO '', Override 'maxdepth' behavior on sidebar toc in layout.html. This is an integer value.
# 'hide_right_menu': True or False, \\ DEFAULTS TO FALSE
# 'next_prev_link_skip_index': True or False, \\ DEFAULTS TO FALSE. Hide Next and Previous buttons from all 'index' pages?
# 'display_last_updated': False, \\ DEFAULTS TO FALSE.
# 'show_project': True, \\ DEFAULTS TO TRUE. Show project and version in left menu
# 'dropdown': { \\ DEFAULTS TO ''. Enable dropdown menu
# 'name': 'SPK v1.9.1',
Expand Down
2 changes: 1 addition & 1 deletion f5_sphinx_theme/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ <h5>{{ project }} {{ version }} </h5>


<div role="main">
{%- if last_updated %}
{%- if last_updated and theme_display_last_updated %}
{% trans last_updated=last_updated|e %}Last updated on: {{ last_updated }}.{% endtrans %}
{%- endif %}
{% block body %}{% endblock %}
Expand Down
1 change: 1 addition & 0 deletions f5_sphinx_theme/theme.conf
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ dropdown =
sidebar_toc_maxdepth =
hide_right_menu =
show_project = True
display_last_updated = False

0 comments on commit 72a2e34

Please sign in to comment.