File tree 3 files changed +11
-1
lines changed
3 files changed +11
-1
lines changed Original file line number Diff line number Diff line change 91
91
</ li >
92
92
</ ul >
93
93
< p >
94
- pandas is a fiscally sponsored project of < a href ="https://numfocus.org "> NumFOCUS.</ a >
94
+ © {{ current_year }} pandas via < a href ="https://numfocus.org "> NumFOCUS, Inc .</ a > Hosted by < a href =" https://www.ovhcloud.com " > OVH Cloud </ a > .
95
95
</ p >
96
96
</ footer >
97
97
Original file line number Diff line number Diff line change 7
7
- try.md # the binder page will be added later
8
8
github_repo_url : pandas-dev/pandas
9
9
context_preprocessors :
10
+ - pandas_web.Preprocessors.current_year
10
11
- pandas_web.Preprocessors.navbar_add_info
11
12
- pandas_web.Preprocessors.blog_add_posts
12
13
- pandas_web.Preprocessors.maintainers_add_info
Original file line number Diff line number Diff line change @@ -54,6 +54,15 @@ class Preprocessors:
54
54
anything else needed just be added with context preprocessors.
55
55
"""
56
56
57
+ @staticmethod
58
+ def current_year (context ):
59
+ """
60
+ Add the current year to the context, so it can be used for the copyright
61
+ note, or other places where it is needed.
62
+ """
63
+ context ["current_year" ] = datetime .datetime .now ().year
64
+ return context
65
+
57
66
@staticmethod
58
67
def navbar_add_info (context ):
59
68
"""
You can’t perform that action at this time.
0 commit comments