Create macro for section heading
- Update layouts to use new macro - Reformat some files
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
<!doctype html>
|
||||
{% extends "layouts/base.html" %}
|
||||
{% from "macros.html" import sectionHeading %}
|
||||
{% block content %}
|
||||
<div class="container-fluid px-md-6">
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-12">
|
||||
<h1><a name="bio">Bio</a></h1>
|
||||
</div>
|
||||
</div>
|
||||
{{ sectionHeading("Bio") }}
|
||||
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-3">
|
||||
<img
|
||||
@@ -18,11 +16,9 @@
|
||||
{{ content | safe }}
|
||||
</div>
|
||||
</div>
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-12">
|
||||
<h1><a name="contact_me">Contact Me</a></h1>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ sectionHeading("Contact Me") }}
|
||||
|
||||
<div class="row align-items-center">
|
||||
{% for item in contact.items %}
|
||||
<div class="col-md-{{ 12//contact.items.length }} text-center">
|
||||
|
@@ -1,7 +1,10 @@
|
||||
<!doctype html>
|
||||
{% extends "layouts/base.html" %}
|
||||
{% from "macros.html" import sectionHeading %}
|
||||
{% block content %}
|
||||
<div class="container-fluid px-md-6">
|
||||
{{ sectionHeading("Welcome") }}
|
||||
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-12">
|
||||
{{ content | safe }}
|
||||
|
10
src/_includes/macros.html
Normal file
10
src/_includes/macros.html
Normal file
@@ -0,0 +1,10 @@
|
||||
<!doctype html>
|
||||
{% macro sectionHeading(name) %}
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-12">
|
||||
<h1>
|
||||
<a name="{{ name | slugify }}">{{ name }}</a>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
{% endmacro %}
|
@@ -1,6 +1,3 @@
|
||||
<!doctype html>
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-12">
|
||||
<h1><a name="education">Education</a></h1>
|
||||
</div>
|
||||
</div>
|
||||
{% from "macros.html" import sectionHeading %}
|
||||
{{ sectionHeading("Education") }}
|
@@ -1,11 +1,6 @@
|
||||
<!doctype html>
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-12">
|
||||
<h1>
|
||||
<a name="professional_experience">Professional Experience</a>
|
||||
</h1>
|
||||
</div>
|
||||
</div>
|
||||
{% from "macros.html" import sectionHeading %}
|
||||
{{ sectionHeading("Professional Experience") }}
|
||||
|
||||
{% for profExp in collections.professionalExperience %}
|
||||
<div class="row">
|
||||
|
@@ -1,6 +1,3 @@
|
||||
<!doctype html>
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-12">
|
||||
<h1><a name="research">Research</a></h1>
|
||||
</div>
|
||||
</div>
|
||||
{% from "macros.html" import sectionHeading %}
|
||||
{{ sectionHeading("Research") }}
|
@@ -1,9 +1,7 @@
|
||||
<!doctype html>
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-12">
|
||||
<h1><a name="resume">Resume</a></h1>
|
||||
</div>
|
||||
</div>
|
||||
{% from "macros.html" import sectionHeading %}
|
||||
{{ sectionHeading("Resume") }}
|
||||
|
||||
<div class="row align-items-center">
|
||||
<div class="col-md-12">
|
||||
<p>
|
||||
|
@@ -3,8 +3,6 @@ title: Sravan Balaji
|
||||
layout: "layouts/home.html"
|
||||
---
|
||||
|
||||
# Welcome!
|
||||
|
||||
Welcome to my personal website! This started out as a side project to learn about web development and UI design, but it has since expanded into a professional portfolio and blog (sort of). If you are a fan of dark mode, try out the toggle button in the upper right corner!
|
||||
|
||||
On this website, you can find information about my [educational](./portfolio.html#education) and [professional career](./portfolio.html#professional_experience) as well as some of my [personal interests](./personal.html). If you are looking to create your own website and are curious about how I created and hosted this one, please see the [documentation](./documentation.html) page.
|
||||
|
Reference in New Issue
Block a user