-
Notifications
You must be signed in to change notification settings - Fork 571
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make home page sections dynamic and configurable #14
Conversation
The sites baseURL: https://toha.netlify.app
languageCode: en-us
title: "Toha"
theme: "toha"
# Allow raw html in markdown file
markup:
goldmark:
renderer:
unsafe: true
# Enable Google Analytics
googleAnalytics: UA-122321624-2
# Enable Disqus forum
disqusShortname: toha-example-site
# Enable global emoji support
enableEmoji: true
# Custom parameters
params:
# background image of the landing page
background: "images/background.jpg"
# GitHub repo URL of your site
gitRepo: https://github.com/hossainemruz/toha-example-site
# specify whether you want to write blog post or not
enableBlogPost: true
# specify the list of custom menus that you want to show in the top navbar.
# they will be separated by a divider from the main menus.
customMenus:
- name: Notes
url: https://hossainnotes.netlify.app/docs/example/
# some information about you
author:
name: "Jane Doe"
image: "images/avatar.png"
# give your some contact information. they will be used in the footer
contactInfo:
email: "[email protected]"
phone: "+0123456789"
# a summary of what you do
summary:
- I am a Developer
- I work with Go
- I love to work with some fun projects |
The configuration data files now has been moved from The new section's configuration file should follow the following format. section:
name: Achievements
enable: true
weight: 6
showOnNavbar: true
# Your achievements achievements
achievements:
- title: Best Presenter
image: images/achievements/presenter.jpg
summary: Best presenter in the 2020 XYZ conference.
- title: Champion
image: images/achievements/sport.jpg
summary: Champion in cycling inter-city cycling championship 2020.
- title: Graduation
image: images/achievements/graduation-cap.jpg
summary: Received Bachelor of Science (B.Sc.) in Computer Science and Engineer from XYZ University.
- title: Award Winner
image: images/achievements/woman-winner.jpg
summary: Lorem ipsum dolor sit amet consectetur adipisicing elit. Possimus architecto minus facere vero? Notice the new |
I like these changes. The only other item I would add is to be able to specify the url fragment as well for each section or have it match the lower-case name. For example, I would like to change the |
a23f71a
to
9a95163
Compare
…mruz/toha into refactor-sections-logic
Hi, |
Why?
Warning: This PR will break the existing sites. See the comments for new configurations format.
cc: @jbleduigou @Trepix @blueyetisoftware