https://www.battaliontrek.com/
This site is all about exploring the Mormon Battalion Trail, with information, maps, blogs, podcast and more!
Also accessable at https://mormon-battalion.vercel.app/
Follow these steps to set up the project locally.
Make sure you have the following installed:
- Git
- A web browser (e.g., Chrome, Firefox)
Look for the problem icons in the bottom left of the VSCode window and click on them.
Then click on TERMINAL in the bottom section that pops up.
-
Clone the repository
Open a terminal and run:git clone https://github.com/ethyl2/mormon-battalion.git
-
Navigate to the project folder
cd mormon-battalion -
Open the project in a browser
-
If you are using a file-based approach, double-click
index.htmlto open it. -
If you prefer using a local server, you can run:
python -m http.server 8000 # For Python 3Then, open http://localhost:8000 in your browser.
-
Another approach is to install the VS Code extension Live Server. Then you can right-click on the name of a HTML file in the left navigation and click on Open with Live Server.
-
- Create a blog post card in the Blog index page by copying and pasting an existing blog post card in blog.html, and then editing the relevant details.
<a href="./blog/2025-02-21-touching-the-past.html" class="group block w-full">
<article class="border shadow rounded flex flex-col items-center justify-center space-y-2">
<img src="./images/old-document.jpeg" alt="Mormon Battalion Trail" class="w-full h-48 object-cover rounded">
<h3 class="text-lg font-bold text-gray-900 pt-4 px-4">Touching the Past!</h3>
<p class="text-sm text-gray-700 px-4"><time datetime="2025-01-01">February 21, 2025</time></p>
<p class="text-gray-800 text-sm line-clamp-2 px-4">
We're at the National Archives this week and I got goosebumps when Laura Anderson held up this old bundle of documents and said they were records about the Detachments at Pueblo!
</p>
<p class="text-blue-500 group-hover:text-blue-800 pb-4">Read More</p>
</article>
</a>
-
Make a copy of the template.html or an existing file in the blog directory. Rename it and then change whatever you'd like!
-
One tool that can be handy is chatGpt to turn normal text into HTML, with
tags and such, so try that out if you'd like!
This project uses tailwindcss for styling. You can see what the different classes do in their documentation.
To make a new branch:
git checkout -b name-of-branch-goes-hereTo see what's changed and what branch you are on:
git statusTo add all your changes to be staged in your upcoming commit:
git add -ATo commit your changes:
git commit -m "Your message describing the changes go here"To push your changes to the repo in github.com:
git push origin name-of-branch-goes-hereWhen you are ready to submit a pull request, go here in Github. You can create a pull request there and add me as a reviewer.
If you've recently worked on a branch, there should be a handy green button on the top "Compare and Pull Request" - click on it!
Otherwise, you can click on the Branches tab and click on the 3 dots for your branch to select "New pull request."
To add me as a reviewer, click on the gear icon in the top right by "Reviewers" and pick me (ethyl2).
Once I've reviewed your pull request and merged it to main, you can update your local repository.
To sync your local main branch with the one on github.com:
git checkout main
git pull origin mainIf you get this error message while trying to do any Git commands:
fatal: not a git repository (or any of the parent directories): .git
you are not currently in the exact directory that contains the Git repository; you might be in a parent directory instead. To fix this, follow these steps:
- Check your current directory
Run the following command to see the contents of your current directory:
lsLook for the name of the directory that contains your Git repository. For this project, it will be called 'mormon-battalion'.
- Navigate to the correct directory Use the cd command to change to the directory that contains the .git folder. Replace name-of-inner-directory-goes-here with the actual directory name:
cd name-of-inner-directory-goes-here- Confirm you are in the Git repository Run the following command to check if you are now in the correct directory:
git statusIf you see the status of your Git repository, you are in the right place.
If you'd like to contribute, please submit a pull request.
This project is licensed under the MIT License.



