- Adding a DuckDuckGo search box to the blog
- Fixing note box colors - Removing source code link from pages, the blog is already open sourced
This commit is contained in:
parent
5306197a2f
commit
d98a1c13bf
2 changed files with 21 additions and 20 deletions
35
conf.py
35
conf.py
|
@ -1137,6 +1137,7 @@ MARKDOWN_EXTENSIONS = ['markdown.extensions.fenced_code', 'markdown.extensions.c
|
|||
# Copy the source files for your pages?
|
||||
# Setting it to False implies SHOW_SOURCELINK = False
|
||||
# COPY_SOURCES = True
|
||||
COPY_SOURCES = False
|
||||
|
||||
# Modify the number of Post per Index Page
|
||||
# Defaults to 10
|
||||
|
@ -1180,22 +1181,22 @@ GENERATE_ATOM = True
|
|||
#
|
||||
# This search form works for any site and looks good in the "site" theme where
|
||||
# it appears on the navigation bar:
|
||||
#
|
||||
# SEARCH_FORM = """
|
||||
# <!-- DuckDuckGo custom search -->
|
||||
# <form method="get" id="search" action="https://duckduckgo.com/"
|
||||
# class="navbar-form pull-left">
|
||||
# <input type="hidden" name="sites" value="%s">
|
||||
# <input type="hidden" name="k8" value="#444444">
|
||||
# <input type="hidden" name="k9" value="#D51920">
|
||||
# <input type="hidden" name="kt" value="h">
|
||||
# <input type="text" name="q" maxlength="255"
|
||||
# placeholder="Search…" class="span2" style="margin-top: 4px;">
|
||||
# <input type="submit" value="DuckDuckGo Search" style="visibility: hidden;">
|
||||
# </form>
|
||||
# <!-- End of custom search -->
|
||||
# """ % SITE_URL
|
||||
#
|
||||
|
||||
SEARCH_FORM = """
|
||||
<!-- DuckDuckGo custom search -->
|
||||
<form method="get" id="search" action="https://duckduckgo.com/"
|
||||
class="navbar-form pull-left">
|
||||
<input type="hidden" name="sites" value="%s">
|
||||
<input type="hidden" name="k8" value="#444444">
|
||||
<input type="hidden" name="k9" value="#D51920">
|
||||
<input type="hidden" name="kt" value="h">
|
||||
<input type="text" name="q" maxlength="255"
|
||||
placeholder="Search…" class="span2" style="margin-top: 4px;">
|
||||
<input type="submit" value="DuckDuckGo Search" style="visibility: hidden;">
|
||||
</form>
|
||||
<!-- End of custom search -->
|
||||
""" % SITE_URL
|
||||
|
||||
# If you prefer a Google search form, here's an example that should just work:
|
||||
# SEARCH_FORM = """
|
||||
# <!-- Google custom search -->
|
||||
|
@ -1352,7 +1353,7 @@ GENERATE_ATOM = True
|
|||
|
||||
# If set to True, the tags 'draft', 'mathjax' and 'private' have special
|
||||
# meaning. If set to False, these tags are handled like regular tags.
|
||||
USE_TAG_METADATA = False
|
||||
USE_TAG_METADATA = True
|
||||
|
||||
# If set to True, a warning is issued if one of the 'draft', 'mathjax'
|
||||
# and 'private' tags are found in a post. Useful for checking that
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
div.note {
|
||||
word-wrap: break-word;
|
||||
background-color: rgb(34,34,34);
|
||||
border: 1px solid #258cd1;
|
||||
border: 1px solid #007053;
|
||||
}
|
||||
|
||||
div.admonition, div.hint, div.important, div.note, div.tip, div.sidebar, div.attention, div.caution, div.danger, div.error, div.warning, div.system-message {
|
||||
|
@ -20,6 +20,6 @@ div.admonition, div.hint, div.important, div.note, div.tip, div.sidebar, div.att
|
|||
}
|
||||
|
||||
div.note p.admonition-title {
|
||||
background-color: #258cd1 !important;
|
||||
border-bottom: 1px solid #258cd1;
|
||||
background-color: #007053 !important;
|
||||
border-bottom: 1px solid #007053;
|
||||
}
|
||||
|
|
Reference in a new issue