updates layout
This commit is contained in:
parent
5c8abfbb32
commit
17a0476f41
@ -16,14 +16,8 @@ MENUITEMS = [
|
|||||||
('Categories', f'{SITEBASE}/categories.html'),
|
('Categories', f'{SITEBASE}/categories.html'),
|
||||||
]
|
]
|
||||||
LINKS = (
|
LINKS = (
|
||||||
|
('All My Accounts', 'https://tyrel.dev/links'),
|
||||||
('Book Me', 'https://cal.com/tyrelsouza'),
|
('Book Me', 'https://cal.com/tyrelsouza'),
|
||||||
('Code', 'https://gitea.tyrel.dev/tyrel'),
|
|
||||||
('Photos', 'https://www.flickr.com/photos/tyrelsouza/albums'),
|
|
||||||
('LinkedIN', 'https://www.linkedin.com/in/tyrel-souza/'),
|
|
||||||
)
|
|
||||||
SOCIAL = (
|
|
||||||
('Instagram', 'https://www.instagram.com/tyrelsouza'),
|
|
||||||
('GoodReads', 'https://www.goodreads.com/user/show/24381583-tyrel-souza'),
|
|
||||||
)
|
)
|
||||||
|
|
||||||
PATH = 'content'
|
PATH = 'content'
|
||||||
@ -71,3 +65,4 @@ DEFAULT_METADATA = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
THEME = "./themes/solarized"
|
THEME = "./themes/solarized"
|
||||||
|
DISPLAY_PAGES_ON_MENU=True
|
||||||
|
@ -69,13 +69,12 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if SOCIAL or FEED_ALL_ATOM or FEED_ALL_RSS %}
|
{% if SOCIAL or FEED_ALL_ATOM or FEED_ALL_RSS %}
|
||||||
<div class="social">
|
<div class="social">
|
||||||
<h2>{{ SOCIAL_WIDGET_NAME | default('SOCIAL LINKS') }}</h2>
|
<h2>Syndication</h2>
|
||||||
<ul>
|
<ul>
|
||||||
{% for name, link in SOCIAL %}
|
{% for name, link in SOCIAL %}
|
||||||
<li><a href="{{ link }}">{{ name }}</a></li>
|
<li><a href="{{ link }}">{{ name }}</a></li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<!-- <li><a rel="me" href="https://social.tyrel.dev/tyrel">Fediverse</a></li> -->
|
|
||||||
<li><a rel="me" href="https://pixelfed.social/@tyrel">Pixelfed</a></li>
|
|
||||||
{% if FEED_ALL_ATOM %}
|
{% if FEED_ALL_ATOM %}
|
||||||
<li><a href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate">Atom Feed</a></li>
|
<li><a href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate">Atom Feed</a></li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
69
themes/solarized/templates/pelicanconf.py
Normal file
69
themes/solarized/templates/pelicanconf.py
Normal file
@ -0,0 +1,69 @@
|
|||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
pwd = Path.cwd()
|
||||||
|
AUTHOR = 'Tyrel Souza'
|
||||||
|
SITENAME = "Tyrel's Blog"
|
||||||
|
TWITTER_USERNAME = 'tyrelsouza'
|
||||||
|
SITEURL = ''
|
||||||
|
SITESUBTITLE = 'Code, Flying, Tech, Automation'
|
||||||
|
|
||||||
|
SITEBASE = "/blog"
|
||||||
|
|
||||||
|
|
||||||
|
MENUITEMS = [
|
||||||
|
('Home', f'{SITEBASE}/'),
|
||||||
|
('Tags', f'{SITEBASE}/tags.html'),
|
||||||
|
('Categories', f'{SITEBASE}/categories.html'),
|
||||||
|
]
|
||||||
|
LINKS = (
|
||||||
|
('All My Accounts', 'https://tyrel.dev/links'),
|
||||||
|
('Book Me', 'https://cal.com/tyrelsouza'),
|
||||||
|
)
|
||||||
|
|
||||||
|
PATH = 'content'
|
||||||
|
|
||||||
|
TIMEZONE = 'America/New_York'
|
||||||
|
|
||||||
|
DEFAULT_LANG = 'en'
|
||||||
|
|
||||||
|
# Feed generation is usually not desired when developing
|
||||||
|
# FEED_DOMAISITEURL
|
||||||
|
FEED_ALL_ATOM = None
|
||||||
|
CATEGORY_FEED_ATOM = None
|
||||||
|
TRANSLATION_FEED_ATOM = None
|
||||||
|
AUTHOR_FEED_ATOM = None
|
||||||
|
AUTHOR_FEED_RSS = None
|
||||||
|
|
||||||
|
FEED_ATOM = 'tyrel-dev.atom.xml'
|
||||||
|
#FEED_RSS = 'tyrel-dev.rss'
|
||||||
|
FEED_ALL_ATOM = 'tyrel-dev.all.xml'
|
||||||
|
#FEED_ALL_RSS = 'tyrel-dev.all.rss'
|
||||||
|
|
||||||
|
|
||||||
|
PLUGINS = ["webassets"]
|
||||||
|
|
||||||
|
DEFAULT_PAGINATION = False
|
||||||
|
DISPLAY_CATEGORIES_ON_MENU = False
|
||||||
|
DELETE_OUTPUT_DIRECTORY = True
|
||||||
|
|
||||||
|
STATIC_PATHS = (
|
||||||
|
'images',
|
||||||
|
'extras',
|
||||||
|
)
|
||||||
|
|
||||||
|
ARTICLE_PATHS = ['blog', ]
|
||||||
|
ARTICLE_SAVE_AS = '{date:%Y}/{date:%m}/{slug}.html'
|
||||||
|
ARTICLE_URL = '{date:%Y}/{date:%m}/{slug}.html'
|
||||||
|
|
||||||
|
YEAR_ARCHIVE_SAVE_AS = 'posts/{date:%Y}/index.html'
|
||||||
|
MONTH_ARCHIVE_URL = 'posts/{date:%Y}/{date:%m}/index.html'
|
||||||
|
|
||||||
|
|
||||||
|
DEFAULT_METADATA = {
|
||||||
|
'status': 'draft',
|
||||||
|
'extras/favicon.ico': {'path': 'favicon.ico'},
|
||||||
|
}
|
||||||
|
|
||||||
|
THEME = "./themes/solarized"
|
||||||
|
|
||||||
|
DISPLAY_PAGES_ON_MENU=True
|
Loading…
Reference in New Issue
Block a user