- 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:
Elia el Lazkani 2019-07-02 19:27:01 -04:00 committed by Elia El Lazkani
parent 5306197a2f
commit d98a1c13bf
No known key found for this signature in database
GPG key ID: FBD81F2B1F488C2B
2 changed files with 21 additions and 20 deletions

35
conf.py
View file

@ -1137,6 +1137,7 @@ MARKDOWN_EXTENSIONS = ['markdown.extensions.fenced_code', 'markdown.extensions.c
# Copy the source files for your pages? # Copy the source files for your pages?
# Setting it to False implies SHOW_SOURCELINK = False # Setting it to False implies SHOW_SOURCELINK = False
# COPY_SOURCES = True # COPY_SOURCES = True
COPY_SOURCES = False
# Modify the number of Post per Index Page # Modify the number of Post per Index Page
# Defaults to 10 # 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 # This search form works for any site and looks good in the "site" theme where
# it appears on the navigation bar: # it appears on the navigation bar:
#
# SEARCH_FORM = """ SEARCH_FORM = """
# <!-- DuckDuckGo custom search --> <!-- DuckDuckGo custom search -->
# <form method="get" id="search" action="https://duckduckgo.com/" <form method="get" id="search" action="https://duckduckgo.com/"
# class="navbar-form pull-left"> class="navbar-form pull-left">
# <input type="hidden" name="sites" value="%s"> <input type="hidden" name="sites" value="%s">
# <input type="hidden" name="k8" value="#444444"> <input type="hidden" name="k8" value="#444444">
# <input type="hidden" name="k9" value="#D51920"> <input type="hidden" name="k9" value="#D51920">
# <input type="hidden" name="kt" value="h"> <input type="hidden" name="kt" value="h">
# <input type="text" name="q" maxlength="255" <input type="text" name="q" maxlength="255"
# placeholder="Search&hellip;" class="span2" style="margin-top: 4px;"> placeholder="Search&hellip;" class="span2" style="margin-top: 4px;">
# <input type="submit" value="DuckDuckGo Search" style="visibility: hidden;"> <input type="submit" value="DuckDuckGo Search" style="visibility: hidden;">
# </form> </form>
# <!-- End of custom search --> <!-- End of custom search -->
# """ % SITE_URL """ % SITE_URL
#
# If you prefer a Google search form, here's an example that should just work: # If you prefer a Google search form, here's an example that should just work:
# SEARCH_FORM = """ # SEARCH_FORM = """
# <!-- Google custom search --> # <!-- Google custom search -->
@ -1352,7 +1353,7 @@ GENERATE_ATOM = True
# If set to True, the tags 'draft', 'mathjax' and 'private' have special # If set to True, the tags 'draft', 'mathjax' and 'private' have special
# meaning. If set to False, these tags are handled like regular tags. # 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' # 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 # and 'private' tags are found in a post. Useful for checking that

View file

@ -12,7 +12,7 @@
div.note { div.note {
word-wrap: break-word; word-wrap: break-word;
background-color: rgb(34,34,34); 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 { 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 { div.note p.admonition-title {
background-color: #258cd1 !important; background-color: #007053 !important;
border-bottom: 1px solid #258cd1; border-bottom: 1px solid #007053;
} }