How to contribute to this Blog

I have been asked how to contribute to this blog and my other travel blog. So I thought of writing a blog about it.
Blogs to contribute
You can contribute to either of the blogs:
Getting the existing blog to run locally
- Install jekyll - A ruby based static website builder
- Clone any of the above github blogs
- run
bundle exec jekyll serve
from inside the folder to run it locally - Open 127.0.0.1:4000 on your browser to see the entire blog on your local server
Adding a new blog
Since the entire blog is in Markdown, you can utlisie markdown’s awesome syntax to be creative with your blog
- Add a new md file with format
YYYY-MM-DD-your-awesome-blog-url.md
in_posts
folder.- Ensure the date is not in future, else the blog won’t be visible.
- The
your-awesome-blog-url
is the url you’ll see for this blog, so ensure it’s meaningful - You can copy the last file in the
_posts
folder and rename it.
- Add all the images you want in the blog in
assets/images
folder- There would be a header image at the top of every blog, Eg:
image: assets/images/blog-contribution.png
- A webp image would be preferred and most important, try to use original non-edited photos taken by you.
- Ensure images arre lightweight, you compressors to compress them
- See this example on how to add multiple images in the blog
- There would be a header image at the top of every blog, Eg:
- Add an album using Google Photos
- Choose the photos you want on the blog and create a public shareable album
- Use PublicAlbum to create embed code.
- Set the Slide show delay at 3(s).
- Copy to clipboard and remove the
<script></script>
line as it’s already added in a universal config. - Now lets convert the media files to
webp
. Change the last parameter of the<object></object>
tag fromw1920-h1080
tow960-rw-h720
. Yup, this will convert the media to webp format which boosts the SEO as well. - Change the
data-link
anddata-description
- It will finally look like something below. Paste the entire div at the bottom of the blog.
1
2
3
4
5
6
7
8
9
<div class="pa-carousel-widget" style="width:100%; height:480px; display:none;"
data-link="https://www.holidify.com/places/diu/sightseeing-and-things-to-do.html"
data-title="Diu, Dadra and Nagar Haveli and Daman and Diu"
data-description="Diu, a small island off the coast of Gujarat, India, is a captivating blend of Portuguese colonial charm and Indian vibrancy."
data-delay="3">
<object data="https://lh3.googleusercontent.com/pw/AP1GczMb3L65DkghtyFcOJnxdHC7JitbWM7nFpoFNma8DXxm2lnWcFZXq3ueRYhxhJEW7A_ebdtB6SVBY8mINVIhM4lgJ2WQMr--cfqZSarCgVmMOh9t5Kbr=w960-rw-h720"></object>
<object data="https://lh3.googleusercontent.com/pw/AP1GczPBrLapjgbZvzt1u_kvTaQBJokhrhD0uIr_eCqFKckwXehlYgL0Pp82nUFd3x9Kn4jPfFuyd0NvfGO5ewvnMzm8U_uGWEsk1jgibjqyWwlkAEnQaCtk=w960-rw-h720"></object>
...
</div>
- Add yourself as an Author
- Edit
_config.yml
to add yourself as an Author - Add
author: <you>
in the above blog to see your contribution as an author
- Edit
1
2
3
4
5
6
7
authors:
sid:
name: Siddharth
display_name: Siddharth
gravatar: 744cc0eec84c2f48966a7da5be45817c
email:
web: https://thekosmix.github.io
- Run and test locally as mentioned in the above section
Merge it with main blog
Now that you have created and tested a blog locally, it’s time to get it live on main domain.
- Create a PR/MR (Pull Request/Merge Request) on any of the blogs
- I’ll get a notification and will do CR (Code Review) and will either merge it or provide comments
- Once it’s merged in main, it will start appearing on the main domain within 5 days.
Perks
- Once merged on the main domain, you can start sharing it on different platform.
- You’ll get an email id with
you@domain
- You’ll leran blogging with static site
- You’ll get to share your experience with the world