fix links
This commit is contained in:
parent
dbc43ebf8b
commit
b7c4b5d39b
|
@ -10,16 +10,17 @@ SITESUBTITLE = 'Code, Flying, Tech, Automation'
|
||||||
SITEBASE = "/blog"
|
SITEBASE = "/blog"
|
||||||
|
|
||||||
|
|
||||||
MENUITEMS = [
|
MENU_INTERNAL_PAGES = [
|
||||||
#('Home', f'{SITEBASE}/'),
|
('Archive', 'archives.html', f'archives.html'),
|
||||||
('Tags', f'{SITEBASE}/tags.html'),
|
('Tags', 'tags.html', f'tags.html'),
|
||||||
('Categories', f'{SITEBASE}/categories.html'),
|
('Categories', 'categories.html', f'categories.html'),
|
||||||
]
|
]
|
||||||
LINKS = (
|
|
||||||
|
MENUITEMS = [
|
||||||
('My Code', 'https://gitea.tyrel.dev/tyrel'),
|
('My Code', 'https://gitea.tyrel.dev/tyrel'),
|
||||||
('Find Me', 'https://tyrel.dev/links'),
|
('Find Me', 'https://tyrel.dev/links'),
|
||||||
('Book Me', 'https://cal.com/tyrelsouza'),
|
('Book Me', 'https://cal.com/tyrelsouza'),
|
||||||
)
|
]
|
||||||
|
|
||||||
PATH = 'content'
|
PATH = 'content'
|
||||||
|
|
||||||
|
@ -36,9 +37,7 @@ AUTHOR_FEED_ATOM = None
|
||||||
AUTHOR_FEED_RSS = None
|
AUTHOR_FEED_RSS = None
|
||||||
|
|
||||||
FEED_ATOM = 'tyrel-dev.atom.xml'
|
FEED_ATOM = 'tyrel-dev.atom.xml'
|
||||||
#FEED_RSS = 'tyrel-dev.rss'
|
|
||||||
FEED_ALL_ATOM = 'tyrel-dev.all.xml'
|
FEED_ALL_ATOM = 'tyrel-dev.all.xml'
|
||||||
#FEED_ALL_RSS = 'tyrel-dev.all.rss'
|
|
||||||
|
|
||||||
|
|
||||||
PLUGINS = ["webassets"]
|
PLUGINS = ["webassets"]
|
||||||
|
@ -70,6 +69,7 @@ SOCIAL = ()
|
||||||
# THEME = "./themes/pelican-themes/gum"
|
# THEME = "./themes/pelican-themes/gum"
|
||||||
DISPLAY_PAGES_ON_MENU=True
|
DISPLAY_PAGES_ON_MENU=True
|
||||||
LANDING_PAGE_ABOUT=True
|
LANDING_PAGE_ABOUT=True
|
||||||
THEME = pwd / "themes" / "solarized"
|
|
||||||
THEME = pwd / "themes" / "waterspill-en"
|
|
||||||
THEME = pwd / "themes" / "blue-penguin-dark"
|
THEME = pwd / "themes" / "blue-penguin-dark"
|
||||||
|
|
||||||
|
PAGINATED_TEMPLATES = {'index': 4, 'tag': 4, 'category': 4, 'author': None}
|
||||||
|
DISPLAY_HOME = False
|
||||||
|
|
|
@ -83,17 +83,17 @@
|
||||||
{% if DISPLAY_HOME or DISPLAY_HOME is not defined %}
|
{% if DISPLAY_HOME or DISPLAY_HOME is not defined %}
|
||||||
<li{% if output_file == "index.html" %} class="selected"{% endif %}><a href="{{ SITEURL }}/">Home</a></li>
|
<li{% if output_file == "index.html" %} class="selected"{% endif %}><a href="{{ SITEURL }}/">Home</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% for name, link, file in MENU_INTERNAL_PAGES %}
|
||||||
|
<li{% if output_file == file %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ link }}">{{ name }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
{% for title, link in MENUITEMS %}
|
||||||
|
<li{% if output_file == file %} class="selected"{% endif %}><a href="{{ link }}">{{ title }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
{% if DISPLAY_PAGES_ON_MENU %}
|
{% if DISPLAY_PAGES_ON_MENU %}
|
||||||
{% for p in pages %}
|
{% for p in pages %}
|
||||||
<li{% if p == page %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
|
<li{% if p == page %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for title, link in MENUITEMS %}
|
|
||||||
<li><a href="{{ link }}">{{ title }}</a></li>
|
|
||||||
{% endfor %}
|
|
||||||
{% for name, link, file in MENU_INTERNAL_PAGES %}
|
|
||||||
<li{% if output_file == file %} class="selected"{% endif %}><a href="{{ SITEURL }}/{{ link }}">{{ name }}</a></li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
</ul>
|
||||||
</nav>
|
</nav>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user