How can i link to my search.html
when using pelican
#3103
Answered
by
baseplate-admin
baseplate-admin
asked this question in
Q&A
-
Hi there, I have an article page from where i would like to reference my I tried to do this [search page](/search.html) Which renders But i want to render But since the site is running on a I want the links to use how to achieve that? My pelicanconf.py AUTHOR = "Baseplate-Admin"
SITENAME = "Blog"
SITEURL = ""
SUBTITLE = "Baseplate Admin's Blog"
SUBTEXT = """This is a place where I document my thoughths
about <b>world</b>, <b>software</b> and things around me
"""
COPYRIGHT = "©2023"
PATH = "content"
THEME = "themes/Papyrus"
TIMEZONE = "USA/New_York"
THEME_STATIC_PATHS = ["static"]
DEFAULT_LANG = "en"
PLUGIN_PATHS = ["pelican-plugins"]
PLUGINS = [
"readtime",
"search", # Cant install on windows
"neighbors",
"pelican-toc",
]
DISPLAY_PAGES_ON_MENU = True
DIRECT_TEMPLATES = (
"index",
"search",
"tags",
"categories",
"archives",
)
PAGINATED_TEMPLATES = {
"index": None,
"tag": None,
"category": None,
"author": None,
"archives": 24,
}
# Site search plugin
SEARCH_MODE = "output"
SEARCH_HTML_SELECTOR = "main"
# Table of Content Plugin
TOC = {
"TOC_HEADERS": "^h[1-3]", # What headers should be included in
# the generated toc
# Expected format is a regular expression
"TOC_RUN": "true", # Default value for toc generation,
# if it does not evaluate
# to 'true' no toc will be generated
"TOC_INCLUDE_TITLE": "false", # If 'true' include title in toc
}
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None
# Blogroll
LINKS = (
("Pelican", "https://getpelican.com/"),
("Python.org", "https://www.python.org/"),
("Jinja2", "https://palletsprojects.com/p/jinja/"),
("You can modify those links in your config file", "#"),
)
# Modify paths
# https://github.com/getpelican/pelican/discussions/3076#discussioncomment-4477731
ARTICLE_PATHS = ["articles"]
PAGE_PATHS = ["pages"]
# TEMPLATE_PAGES = {
# # About page
# "static_pages/about.html": "about.html",
# }
# Social widget
SOCIAL = ()
DEFAULT_PAGINATION = 8
MARKDOWN = {
"extension_configs": {
"markdown.extensions.toc": {
"permalink": "True",
},
"markdown.extensions.codehilite": {"css_class": "highlight"},
"markdown.extensions.extra": {},
"markdown.extensions.meta": {},
},
"output_format": "html5",
}
# Uncomment following line if you want document-relative URLs when developing
# RELATIVE_URLS = True Thanks for reading this. |
Beta Was this translation helpful? Give feedback.
Answered by
baseplate-admin
Feb 24, 2023
Replies: 1 comment
-
Solved this by modifying |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
baseplate-admin
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Solved this by modifying
<base href={{SITEURL}}>