Skip to content
This repository has been archived by the owner on Jun 6, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
implement basic outline + header
  • Loading branch information
jackyzha0 committed Aug 21, 2020
0 parents commit 74f7460
Show file tree
Hide file tree
Showing 11 changed files with 153 additions and 0 deletions.
4 changes: 4 additions & 0 deletions archetypes/default.md
@@ -0,0 +1,4 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
---
67 changes: 67 additions & 0 deletions assets/style.css
@@ -0,0 +1,67 @@
:root {
--light: #fbfffe;
--lightgray: #f0f0f0;
--gray: #dddddd;
--dark: #284b63;
--secondary: #84a59d;
}

a {
text-decoration: none;
color: var(--dark);
transition: all 0.2s ease;
}

.hover {
color: var(--dark);
text-decoration: none;
display: inline-block;
position: relative;
opacity: 0.6;
z-index: 1;
}

.hover::after {
transition: 300ms;
height: 20px;
content: "";
position: absolute;
background-color: var(--secondary);
opacity: 0.5;
z-index: -1;
width: 0%;
left: 15px;
bottom: 0px;
}

header {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}

header:hover .hover {
opacity: 1.0;
}

header:hover .hover::after {
width: 100%;
}

body {
margin: 0;
background-color: var(--light);
}

h1, h2, h3, h4, nav {
font-family: Roboto Mono;
}

p {
font-family: Roboto;
}

#contentWrapper {
margin: 25px 25vw;
}
11 changes: 11 additions & 0 deletions config.yaml
@@ -0,0 +1,11 @@
baseURL: "https://blog.jzhao.xyz"
languageCode: "en-us"
title: "jacky zhao | blog"
footnoteReturnLinkContents: ""

params:
headline: "jzhao.xyz"
github: "https://github.com/jackyzha0"
twitter: "https://twitter.com/_jzhao"
email: "j.zhao2k19@gmail.com"
author: "jacky"
12 changes: 12 additions & 0 deletions content/posts/example.md
@@ -0,0 +1,12 @@
---
title: "test test test"
date: 2020-07-09T08:51:56-07:00
---

# test

more test

* nice
* cool
* good
5 changes: 5 additions & 0 deletions layouts/404.html
@@ -0,0 +1,5 @@
<main id="main">
<div>
<h1 id="title"><a href="{{ "/" | relURL }}">uh oh</a></h1>
</div>
</main>
15 changes: 15 additions & 0 deletions layouts/index.html
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html>
{{- partial "head.html" . -}}

<body>
<div id="contentWrapper">
{{- partial "header.html" . -}}
<main>
{{- partial "post/list.html" . -}}
</main>
{{- partial "footer.html" . -}}
</div>
</body>

</html>
Empty file added layouts/partials/footer.html
Empty file.
31 changes: 31 additions & 0 deletions layouts/partials/head.html
@@ -0,0 +1,31 @@
<head>
<link rel="preconnect" href="https://www.googletagmanager.com">
<link crossorigin rel="preconnect" href="https://www.google-analytics.com">

<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-148413215-1"></script>
<script>
window.dataLayer = window.dataLayer || [];

function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());

gtag('config', 'UA-148413215-1');
</script>

<!-- Meta tags -->
<meta charset="UTF-8">
<meta name="description"
content="jacky zhao personal portfolio - software developer trying to build solutions to the world’s problems ">
<meta name="viewport" content="width=device-width, initial-scale=1">

<!-- Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Roboto&family=Roboto+Mono:wght@700&display=swap" rel="stylesheet">

<!-- CSS Stylesheets and Fonts -->
{{with resources.Get "style.css" | minify}}
<style>{{ .Content | safeCSS }}</style>
{{end}}
</head>
8 changes: 8 additions & 0 deletions layouts/partials/header.html
@@ -0,0 +1,8 @@
<header>
<h1><a class="hover" href="/">{{ .Site.Params.headline }}</a></h1>
<nav>
<a href="https://jzhao.xyz">[site]</a>
<a href="https://github.com/jackyzha0">[github]</a>
<a href="https://twitter.com/_jzhao">[twitter]</a>
</nav>
</header>
Empty file added layouts/partials/post/list.html
Empty file.
Empty file.

0 comments on commit 74f7460

Please sign in to comment.