Skip to content

Commit

Permalink
ready
Browse files Browse the repository at this point in the history
  • Loading branch information
knzai committed Jul 5, 2024
1 parent 1b86d74 commit 51712a2
Show file tree
Hide file tree
Showing 9 changed files with 145 additions and 85 deletions.
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ sidebar_links = [
{url = "https://github.com/knzai", name = "GitHub"},
{url = "https://www.linkedin.com/in/knzai/", name = "LinkedIn"},
{url = "mailto:[email protected]", name = "[email protected]"},
{url = "resume.pdf", name = "resume.pdf"},
{url = "Kenzi Connor Resume.pdf", name = "resume.pdf"},
]
sidebar_sticky = true
1 change: 0 additions & 1 deletion content/resume.md → content/_index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
+++
title = "Resume"
template = "embed.html"
class="test"
[extra]
url = "https://docs.google.com/document/d/e/2PACX-1vR8phRROytFLb3Wv6k5mcsxlP0mcK7qirq7z0HMpFY9ik0Tr6rpM7U2vptDdSENkgsqCpBmXw7VT1lo/pub?embedded=true"
+++
Binary file added static/Kenzi Connor Resume (1).pdf
Binary file not shown.
2 changes: 1 addition & 1 deletion templates/404.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "index.html" %}
{% extends "base.html" %}

{% block content %}
<div class="post">
Expand Down
59 changes: 59 additions & 0 deletions templates/base.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="{{ lang }}">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">

<!-- Enable responsiveness on mobile devices-->
<!-- viewport-fit=cover is to support iPhone X rounded corners and notch in landscape-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, viewport-fit=cover">

<title>{% block title %}{{ config.title }}{% endblock title %}</title>

<!-- CSS -->
<link rel="stylesheet" href="{{ get_url(path="print.css", trailing_slash=false) }}" media="print">
<link rel="stylesheet" href="{{ get_url(path="poole.css", trailing_slash=false) }}">
<link rel="stylesheet" href="{{ get_url(path="hyde.css", trailing_slash=false) }}">
<link rel="stylesheet" href="{{ get_url(path="styles.css", trailing_slash=false) }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">

{% if config.generate_feed %}
<link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}">
{% endif %}

{% block extra_head %}
{% endblock extra_head %}
</head>

<body class="{{ config.extra.color_theme }} {% if config.extra.sidebar_reverse %}layout-reverse{% endif %}">
{% block sidebar %}
<div class="sidebar">
<div class="container {% if config.extra.sidebar_sticky %}sidebar-sticky{% endif %}">
<div class="sidebar-about">
{% block sidebar_about %}
<a href="{{ config.base_url }}"><h1>{{ config.title }}</h1></a>
{% if config.description %}
<p class="lead">{{config.description}}</p>
{% endif %}
{% endblock sidebar_about %}
</div>

<ul class="sidebar-nav">
{% block sidebar_nav %}
{% for link in config.extra.sidebar_links %}
<li class="sidebar-nav-item"><a href="{{link.url}}">{{link.name}}</a></li>
{% endfor %}
{% endblock sidebar_nav %}
</ul>
</div>
</div>
{% endblock sidebar %}

<div class="content container">
{% block content %}
{% endblock content %}
</div>

</body>

</html>
5 changes: 2 additions & 3 deletions templates/embed.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{% extends "index.html" %}
{% extends "base.html" %}
{% block extra_head %}
<link rel="stylesheet" href="{{ get_url(path="gdoc.css", trailing_slash=false) }}">
{% endblock content %}

{% block content %}
<div class="post embed">
{{ page.content | safe }}
{% set stripped = load_data(url=page.extra.url) |
{% set stripped = load_data(url=section.extra.url) |
regex_replace(pattern=`<head[\s\S]+?<\/head>`, rep=` `) |
regex_replace(pattern=`<script[\s\S]+?<\/script>`, rep=` `) |
replace(from="<!DOCTYPE html>", to="") |
Expand Down
101 changes: 23 additions & 78 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -1,78 +1,23 @@
<!DOCTYPE html>
<html lang="{{ lang }}">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">

<!-- Enable responsiveness on mobile devices-->
<!-- viewport-fit=cover is to support iPhone X rounded corners and notch in landscape-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, viewport-fit=cover">

<title>{% block title %}{{ config.title }}{% endblock title %}</title>

<!-- CSS -->
<link rel="stylesheet" href="{{ get_url(path="print.css", trailing_slash=false) }}" media="print">
<link rel="stylesheet" href="{{ get_url(path="poole.css", trailing_slash=false) }}">
<link rel="stylesheet" href="{{ get_url(path="hyde.css", trailing_slash=false) }}">
<link rel="stylesheet" href="{{ get_url(path="styles.css", trailing_slash=false) }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">

{% if config.generate_feed %}
<link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}">
{% endif %}

{% block extra_head %}
{% endblock extra_head %}
</head>

<body class="{{ config.extra.color_theme }} {% if config.extra.sidebar_reverse %}layout-reverse{% endif %}">
{% block sidebar %}
<div class="sidebar">
<div class="container {% if config.extra.sidebar_sticky %}sidebar-sticky{% endif %}">
<div class="sidebar-about">
{% block sidebar_about %}
<a href="{{ config.base_url }}"><h1>{{ config.title }}</h1></a>
{% if config.description %}
<p class="lead">{{config.description}}</p>
{% endif %}
{% endblock sidebar_about %}
</div>

<ul class="sidebar-nav">
{% block sidebar_nav %}
{% for link in config.extra.sidebar_links %}
<li class="sidebar-nav-item"><a href="{{link.url}}">{{link.name}}</a></li>
{% endfor %}
{% endblock sidebar_nav %}
</ul>
</div>
</div>
{% endblock sidebar %}

<div class="content container">
{% block content %}
<div class="posts">
{% for page in section.pages | reverse %}
<div class="post">
<h1 class="post-title">
<a href="{{ page.permalink }}">
{{ page.title | safe }}
</a>
</h1>
{% if page.date %}
<span class="post-date">{{ page.date | date(format="%Y-%m-%d") }}</span>
{% endif %}
{{ page.summary | safe }}




</div>
{% endfor %}
</div>
{% endblock content %}
</div>

</body>

</html>
{% extends "base.html" %}

{% block content %}
<div class="posts">
{% for page in section.pages | reverse %}
<div class="post">
<h1 class="post-title">
<a href="{{ page.permalink }}">
{{ page.title | safe }}
</a>
</h1>
{% if page.date %}
<span class="post-date">{{ page.date | date(format="%Y-%m-%d") }}</span>
{% endif %}
{{ page.summary | safe }}




</div>
{% endfor %}
</div>
{% endblock content %}
58 changes: 58 additions & 0 deletions templates/oldindex.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
<!DOCTYPE html>
<html lang="{{ lang }}">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="content-type" content="text/html; charset=utf-8">

<!-- Enable responsiveness on mobile devices-->
<!-- viewport-fit=cover is to support iPhone X rounded corners and notch in landscape-->
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, viewport-fit=cover">

<title>{% block title %}{{ config.title }}{% endblock title %}</title>

<!-- CSS -->
<link rel="stylesheet" href="{{ get_url(path="print.css", trailing_slash=false) }}" media="print">
<link rel="stylesheet" href="{{ get_url(path="poole.css", trailing_slash=false) }}">
<link rel="stylesheet" href="{{ get_url(path="hyde.css", trailing_slash=false) }}">
<link rel="stylesheet" href="{{ get_url(path="styles.css", trailing_slash=false) }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=PT+Sans:400,400italic,700|Abril+Fatface">

{% if config.generate_feed %}
<link rel="alternate" type={% if config.feed_filename == "atom.xml" %}"application/atom+xml"{% else %}"application/rss+xml"{% endif %} title="RSS" href="{{ get_url(path=config.feed_filename) | safe }}">
{% endif %}

{% block extra_head %}
{% endblock extra_head %}
</head>

<body class="{{ config.extra.color_theme }} {% if config.extra.sidebar_reverse %}layout-reverse{% endif %}">
{% block sidebar %}
<div class="sidebar">
<div class="container {% if config.extra.sidebar_sticky %}sidebar-sticky{% endif %}">
<div class="sidebar-about">
{% block sidebar_about %}
<a href="{{ config.base_url }}"><h1>{{ config.title }}</h1></a>
{% if config.description %}
<p class="lead">{{config.description}}</p>
{% endif %}
{% endblock sidebar_about %}
</div>

<ul class="sidebar-nav">
{% block sidebar_nav %}
{% for link in config.extra.sidebar_links %}
<li class="sidebar-nav-item"><a href="{{link.url}}">{{link.name}}</a></li>
{% endfor %}
{% endblock sidebar_nav %}
</ul>
</div>
</div>
{% endblock sidebar %}

<div class="content container">

</div>

</body>

</html>
2 changes: 1 addition & 1 deletion templates/page.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "index.html" %}
{% extends "base.html" %}

{% block content %}
<div class="post">
Expand Down

0 comments on commit 51712a2

Please sign in to comment.