Skip to content

Implements Blog To Transfer Blog Posts From Medium to Dedicated /blog Page#909

Open
darithedev wants to merge 18 commits into
Techtonica:developfrom
darithedev:blog-page-issue-508
Open

Implements Blog To Transfer Blog Posts From Medium to Dedicated /blog Page#909
darithedev wants to merge 18 commits into
Techtonica:developfrom
darithedev:blog-page-issue-508

Conversation

@darithedev
Copy link
Copy Markdown

@darithedev darithedev commented Apr 12, 2026

📝 Description

This PR adds a Blog page to the site: a /blog/ landing page with a blog header and a post preview. A /blog/meet-2026-h1-cohort/ page for the 2026 H1 part-time cohort introduction was also added. Navigation includes a Blog link (in About Me drop down), and the blog index is listed in sitemap.xml. Styling uses new image width and existing blue header. Two new images were added as place holders to the blog layout.

Before

blog-feat-before

After

blog-feat-after

🔂 Changes Made

  • main_site.py: Flask routes render_blog_page (/blog/) and render_meet_2026_h1_cohort (/blog/meet-2026-h1-cohort/).
  • templates/blog.html: Blog page with blue background header, Techtonica bridge logo, post title linking to the cohort post, excerpt, and cohort image.
  • templates/blog-posts/meet-2026-h1-cohort.html: Partial cohort intro post with matching header and intro body copy.
  • templates/base.html: Blog nav link pointing to the blog route.
  • static/sass/style.scss (and compiled static/css/style.css / map): .eighty-five-percent-width and .sixty-percent-width
  • static/img/: sf-bridge-logo-without-background.png, 2026-H1-Cohort-Introduction.png.
  • sitemap.xml: http://techtonica.org/blog

⚙️ Related Issue

🍏 Type of Change

  • Bug fix
  • New feature
  • Refactoring
  • Documentation update

🎁 Acceptance Criteria

  • Blog appears in the main navigation and goes to /blog/.
  • /blog/ shows the blog header and a a post for “Meet Our 2026 H1 Part-Time Cohort!” with a working clickable link to the post.
  • /blog/meet-2026-h1-cohort/ renders the partial introduction content and images without broken static URLs

🧰 New Environment Variables or Requirements

  • None

🧪 How to test

  1. Run the app locally (your usual Flask/dev command for this repo).
  2. Hover over /about-us/ got down to/blog/ and open, and then confirm blog header with bridge image, post title link, excerpt, and cohort thumbnail exists.
  3. Click to /blog/meet-2026-h1-cohort/ page and confirm full text and layout.
  4. From home (or any page), click hover over About Us drop down and click the Blog button from nav bar and confirm it lands on /blog/.

🚀 Deployment Notes (if applicable)

  • None

📸 Screenshots (if applicable)

Screenshot 2026-04-12 at 15 44 27 Screenshot 2026-04-12 at 15 44 51

✅ Checklist

  • I have performed a self-review of my code.
  • My code follows the style guidelines of this project.
  • I have commented my code where necessary.
  • I have tested my code locally and verified the website is working as expected.
  • (if applicable) I have added documentation in the README.
  • (if applicable) I have added tests that prove my fix is effective or that my feature works.
  • (if applicable) New and existing unit tests pass locally with my changes.

What I learned, challenges faced, and breakthroughs

Some of the things I learned that about are pre commit checks and why they are helpful, about id hook black, Flask servers, and file compression for images.

Some of the challenges I faced were pre commit check issues, page breaking because of missing route in main_site.py, and naming conventions of some files (base.html for navbar instead of navbar.html). I'll also add styling not displaying the way I want it to which is something I will be spending more time with.

To add, my first commit kept failing and I initially wasn't sure why. The hook id: black kept failing because of a spacing issue, once I figured that out (thanks README), I re added the corresponding file and was able to commit successfully.

For break throughs I was able to successfully commit (pre checks passed), and I was able to add /blog/ route and button link to About Us dropdown.

Comment thread templates/base.html
Comment thread templates/blog-posts/meet-2026-h1-cohort.html Outdated
Copy link
Copy Markdown
Collaborator

@daaimah123 daaimah123 Apr 12, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure this is a condensed image (i.e. ImageOptim)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make sure this is a condensed image (i.e. ImageOptim)

Comment thread templates/base.html Outdated
Comment thread main_site.py
Renders the blog post page for 2026 H1 cohort from jinja2 template
"""
return render_template("blog-posts/meet-2026-h1-cohort.html")

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we may have multiple blog posts in the future, it might be better to use dynamic route.

Comment thread templates/blog.html
Blog {% endblock title %} {% block content %}
<div class="row row__center blue-background">
<div class="column">
<h1>Techtonica<br />Blog</h1>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to remove the line break? This section takes up a lot of vertical space

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes I can, I will implement this fix in the coming days.

@daaimah123
Copy link
Copy Markdown
Collaborator

Hey @darithedev doing my round of check-ins for the repo, will you be able to update this PR with latest from develop branch and address the requests for changes?

@darithedev
Copy link
Copy Markdown
Author

@daaimah123 Yes I will be able to update this PR with the latest from develop branch and address the requests for changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants