Last active
December 29, 2016 03:22
-
-
Save rlee287/fe67000ef7f6b3baa5ff2362fec01146 to your computer and use it in GitHub Desktop.
Alabaster footer vs default footer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- block footer %} | |
<div class="footer"> | |
{% if show_copyright %}©{{ copyright }}.{% endif %} | |
{% if theme_show_powered_by|lower == 'true' %} | |
{% if show_copyright %}|{% endif %} | |
Powered by <a href="http://sphinx-doc.org/">Sphinx {{ sphinx_version }}</a> | |
& <a href="https://github.com/bitprophet/alabaster">Alabaster {{ alabaster_version }}</a> | |
{% endif %} | |
{%- if show_source and has_source and sourcename %} | |
{% if show_copyright or theme_show_powered_by %}|{% endif %} | |
<a href="{{ pathto('_sources/' + sourcename, true)|e }}" | |
rel="nofollow">{{ _('Page source') }}</a> | |
{%- endif %} | |
</div> | |
{% if theme_github_banner|lower != 'false' %} | |
<a href="https://github.com/{{ theme_github_user }}/{{ theme_github_repo }}" class="github"> | |
<img style="position: absolute; top: 0; right: 0; border: 0;" src="{{ pathto('_static/' ~ theme_github_banner, 1) if theme_github_banner|lower != 'true' else 'https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png' }}" alt="Fork me on GitHub" class="github"/> | |
</a> | |
{% endif %} | |
{% if theme_analytics_id %} | |
<script type="text/javascript"> | |
var _gaq = _gaq || []; | |
_gaq.push(['_setAccount', '{{ theme_analytics_id }}']); | |
_gaq.push(['_setDomainName', 'none']); | |
_gaq.push(['_setAllowLinker', true]); | |
_gaq.push(['_trackPageview']); | |
(function() { | |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
})(); | |
</script> | |
{% endif %} | |
{%- endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{%- block footer %} | |
<div class="footer" role="contentinfo"> | |
{%- if show_copyright %} | |
{%- if hasdoc('copyright') %} | |
{% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %} | |
{%- else %} | |
{% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %} | |
{%- endif %} | |
{%- endif %} | |
{%- if last_updated %} | |
{% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} | |
{%- endif %} | |
{%- if show_sphinx %} | |
{% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %} | |
{%- endif %} | |
</div> | |
{%- endblock %} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/basic.html b/Alabaster.html | |
index 19517f9..d3e206e 100644 | |
--- a/basic.html | |
+++ b/Alabaster.html | |
@@ -1,17 +1,36 @@ | |
{%- block footer %} | |
- <div class="footer" role="contentinfo"> | |
- {%- if show_copyright %} | |
- {%- if hasdoc('copyright') %} | |
- {% trans path=pathto('copyright'), copyright=copyright|e %}© <a href="{{ path }}">Copyright</a> {{ copyright }}.{% endtrans %} | |
- {%- else %} | |
- {% trans copyright=copyright|e %}© Copyright {{ copyright }}.{% endtrans %} | |
+ <div class="footer"> | |
+ {% if show_copyright %}©{{ copyright }}.{% endif %} | |
+ {% if theme_show_powered_by|lower == 'true' %} | |
+ {% if show_copyright %}|{% endif %} | |
+ Powered by <a href="http://sphinx-doc.org/">Sphinx {{ sphinx_version }}</a> | |
+ & <a href="https://github.com/bitprophet/alabaster">Alabaster {{ alabaster_version }}</a> | |
+ {% endif %} | |
+ {%- if show_source and has_source and sourcename %} | |
+ {% if show_copyright or theme_show_powered_by %}|{% endif %} | |
+ <a href="{{ pathto('_sources/' + sourcename, true)|e }}" | |
+ rel="nofollow">{{ _('Page source') }}</a> | |
{%- endif %} | |
- {%- endif %} | |
- {%- if last_updated %} | |
- {% trans last_updated=last_updated|e %}Last updated on {{ last_updated }}.{% endtrans %} | |
- {%- endif %} | |
- {%- if show_sphinx %} | |
- {% trans sphinx_version=sphinx_version|e %}Created using <a href="http://sphinx-doc.org/">Sphinx</a> {{ sphinx_version }}.{% endtrans %} | |
- {%- endif %} | |
</div> | |
+ | |
+ {% if theme_github_banner|lower != 'false' %} | |
+ <a href="https://github.com/{{ theme_github_user }}/{{ theme_github_repo }}" class="github"> | |
+ <img style="position: absolute; top: 0; right: 0; border: 0;" src="{{ pathto('_static/' ~ theme_github_banner, 1) if theme_github_banner|lower != 'true' else 'https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png' }}" alt="Fork me on GitHub" class="github"/> | |
+ </a> | |
+ {% endif %} | |
+ | |
+ {% if theme_analytics_id %} | |
+ <script type="text/javascript"> | |
+ var _gaq = _gaq || []; | |
+ _gaq.push(['_setAccount', '{{ theme_analytics_id }}']); | |
+ _gaq.push(['_setDomainName', 'none']); | |
+ _gaq.push(['_setAllowLinker', true]); | |
+ _gaq.push(['_trackPageview']); | |
+ (function() { | |
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; | |
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; | |
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); | |
+ })(); | |
+ </script> | |
+ {% endif %} | |
{%- endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment