Setup menu
- split hero into title, nav. bar and logo - put top-level pages directly in layout dir. vs. individ. sections - converted toml config to yaml - modified meta description
This commit is contained in:
@@ -446,6 +446,19 @@ h1.site-title {// {{{
|
|||||||
// margin-top: .75em;
|
// margin-top: .75em;
|
||||||
@include vert-padding-rem(1);
|
@include vert-padding-rem(1);
|
||||||
|
|
||||||
|
.caret {
|
||||||
|
color: #f2f0ec;
|
||||||
|
margin-right: .75rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
.nav-bar-links {
|
||||||
|
display: inline;
|
||||||
|
|
||||||
|
.nav-bar-link {
|
||||||
|
padding-right: .5em;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@media (max-width: $phone-width) {
|
@media (max-width: $phone-width) {
|
||||||
// font-size: .9em;
|
// font-size: .9em;
|
||||||
font-size: .8em;
|
font-size: .8em;
|
||||||
|
|||||||
@@ -8,4 +8,4 @@ enableRobotsTXT = "true"
|
|||||||
|
|
||||||
[params]
|
[params]
|
||||||
author = "Kevin Mok"
|
author = "Kevin Mok"
|
||||||
description = "I'm Kevin Mok - a CS (Computer Science) student at the University of Toronto. Come check out my personal website!"
|
description = "I'm a Computer Science (CS) student at the University of Toronto and an avid Linux/FOSS user. Come check out my personal site!"
|
||||||
23
config.yaml
Normal file
23
config.yaml
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
# baseURL: http://localhost:1313/
|
||||||
|
baseURL: https://kevin-mok.com/
|
||||||
|
# baseURL: /home/kevin/coding/mf-site/public
|
||||||
|
languageCode: en-us
|
||||||
|
title: Kevin Mok's Website
|
||||||
|
# theme: base16
|
||||||
|
enableRobotsTXT: true
|
||||||
|
|
||||||
|
params:
|
||||||
|
author: Kevin Mok
|
||||||
|
description: I'm a Computer Science (CS) student at the University of Toronto and an avid Linux/FOSS user. Come check out my personal site!
|
||||||
|
|
||||||
|
menu:
|
||||||
|
main:
|
||||||
|
- name: resume
|
||||||
|
url: /resume
|
||||||
|
weight: 5
|
||||||
|
# - name: credits
|
||||||
|
# url: /credits
|
||||||
|
# weight: 10
|
||||||
|
# - name: config
|
||||||
|
# url: /config
|
||||||
|
|
||||||
6
content/credits.md
Normal file
6
content/credits.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "Credits"
|
||||||
|
date: 2019-02-11T03:10:25-05:00
|
||||||
|
draft: true
|
||||||
|
layout: single
|
||||||
|
---
|
||||||
@@ -1,13 +0,0 @@
|
|||||||
---
|
|
||||||
title: "Credits"
|
|
||||||
date: 2019-01-31T03:10:25-05:00
|
|
||||||
draft: false
|
|
||||||
layout: single
|
|
||||||
---
|
|
||||||
<span>
|
|
||||||
Icons made by <a href="https://www.freepik.com/"
|
|
||||||
title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/"
|
|
||||||
title="Flaticon">www.flaticon.com</a> is licensed by <a
|
|
||||||
href="http://creativecommons.org/licenses/by/3.0/"
|
|
||||||
title="Creative Commons BY 3.0" target="_blank">CC 3.0 BY</a>
|
|
||||||
</span>
|
|
||||||
5
content/resume.md
Normal file
5
content/resume.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
title: "Resume"
|
||||||
|
date: 2019-02-11T07:50:51-05:00
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
2
ideas.md
2
ideas.md
@@ -33,8 +33,8 @@
|
|||||||
|
|
||||||
# Tiny
|
# Tiny
|
||||||
- SEO
|
- SEO
|
||||||
- be more specific with robots.txt when have content
|
|
||||||
- add/redirect aliases
|
- add/redirect aliases
|
||||||
|
- be more specific with robots.txt when have content
|
||||||
|
|
||||||
Break> {{{
|
Break> {{{
|
||||||
> }}}
|
> }}}
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
|
|
||||||
{{ partial "hero.html" . }}
|
{{ partial "site-title.html" . }}
|
||||||
|
|
||||||
|
{{ partial "nav-bar.html" . }}
|
||||||
|
|
||||||
|
{{ partial "base16-logo.html" . }}
|
||||||
|
|
||||||
{{ block "main" . }}
|
{{ block "main" . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{{ partial "header.html" . }}
|
|
||||||
|
|
||||||
<!-- {{ partial "homepage.html" . }} -->
|
|
||||||
|
|
||||||
{{ partial "footer.html" . }}
|
|
||||||
3
layouts/partials/base16-logo.html
Normal file
3
layouts/partials/base16-logo.html
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<div class="hero-logo">
|
||||||
|
<img src="{{ "img/base16-eighties.svg" | relURL }}" alt="base16-colors">
|
||||||
|
</div>
|
||||||
@@ -1,42 +1,7 @@
|
|||||||
{{ $baseurl := .Site.BaseURL }}
|
{{ $baseurl := .Site.BaseURL }}
|
||||||
<h1 class="site-title">
|
|
||||||
<!-- <span class="base05">[</span><span class="base08">K</span><span
|
|
||||||
class="base09">e</span><span class="base0a">v</span><span
|
|
||||||
class="base0b">i</span><span class="base0c">n</span><span
|
|
||||||
class="base05">]</span> <span class="base05"># _</span> -->
|
|
||||||
[<a href="{{ .Site.BaseURL }}"><span class="base08">K</span><span
|
|
||||||
class="base0f">e</span><span class="base09">v</span><span
|
|
||||||
class="base0a">i</span><span class="base0b">n </span><span
|
|
||||||
class="base0c">M</span><span class="base0d">o</span><span
|
|
||||||
class="base0e">k</span></a>] # _
|
|
||||||
|
|
||||||
</h1>
|
{{ partial "site-title.html" . }}
|
||||||
|
|
||||||
<div class="container clearfix nav-bar">
|
{{ partial "nav-bar.html" . }}
|
||||||
[ <a href="{{ .Site.BaseURL }}">~</a> /
|
|
||||||
<a href="{{ .Page.Permalink }}">{{ .Page.Dir }}</a>
|
|
||||||
|
|
||||||
]
|
{{ partial "base16-logo.html" . }}
|
||||||
<span class="caret"># _</span>
|
|
||||||
<div class="right">
|
|
||||||
{{ range $i, $page := (where .Site.Pages "Section" "pages") }}
|
|
||||||
{{ if not (eq $i 0) }}|{{ end }}
|
|
||||||
<a class="path" href="{{ $page.RelPermalink }}">{{ $page.Title }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="hero-logo">
|
|
||||||
<img src="{{ "img/base16-eighties.svg" | relURL }}" alt="base16-colors">
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<!-- <div style="text-align: center;"> -->
|
|
||||||
<!-- <div class="hero-tagline"> -->
|
|
||||||
<!-- [> “Live, love and Linux.” <] -->
|
|
||||||
<!-- <p>Live, love and <img src="{{ "/img/linux-icon.svg" | relURL }}" -->
|
|
||||||
<!-- class="icon" -->
|
|
||||||
<!-- alt="linux-icon"/>.</p> -->
|
|
||||||
<!-- </div> -->
|
|
||||||
|
|||||||
12
layouts/partials/nav-bar.html
Normal file
12
layouts/partials/nav-bar.html
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
<div class="container clearfix nav-bar">
|
||||||
|
[ <a href="{{ .Site.BaseURL }}">~</a> /
|
||||||
|
<a href="{{ .Page.Permalink }}">{{ .Page.Dir }}</a>
|
||||||
|
|
||||||
|
]
|
||||||
|
<span class="caret"># _</span>
|
||||||
|
<div class="nav-bar-links">
|
||||||
|
{{ range .Site.Menus.main }}
|
||||||
|
<a href="{{ .URL }}" class="nav-bar-link">{{ .Name }}</a>
|
||||||
|
{{ end }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
7
layouts/partials/site-title.html
Normal file
7
layouts/partials/site-title.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<h1 class="site-title">
|
||||||
|
[<a href="{{ .Site.BaseURL }}"><span class="base08">K</span><span
|
||||||
|
class="base0f">e</span><span class="base09">v</span><span
|
||||||
|
class="base0a">i</span><span class="base0b">n </span><span
|
||||||
|
class="base0c">M</span><span class="base0d">o</span><span
|
||||||
|
class="base0e">k</span></a>] # _
|
||||||
|
</h1>
|
||||||
7
layouts/partials/tagline.html
Normal file
7
layouts/partials/tagline.html
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<div style="text-align: center;">
|
||||||
|
<div class="hero-tagline">
|
||||||
|
<!-- [> “Live, love and Linux.” <] -->
|
||||||
|
<p>Live, love and <img src="{{ "/img/linux-icon.svg" | relURL }}"
|
||||||
|
class="icon"
|
||||||
|
alt="linux-icon"/>.</p>
|
||||||
|
</div>
|
||||||
@@ -325,6 +325,13 @@ h1.site-title {
|
|||||||
margin-left: .5em;
|
margin-left: .5em;
|
||||||
padding-top: 1rem;
|
padding-top: 1rem;
|
||||||
padding-bottom: 1rem; }
|
padding-bottom: 1rem; }
|
||||||
|
.nav-bar .caret {
|
||||||
|
color: #f2f0ec;
|
||||||
|
margin-right: .75rem; }
|
||||||
|
.nav-bar .nav-bar-links {
|
||||||
|
display: inline; }
|
||||||
|
.nav-bar .nav-bar-links .nav-bar-link {
|
||||||
|
padding-right: .5em; }
|
||||||
@media (max-width: 800px) {
|
@media (max-width: 800px) {
|
||||||
.nav-bar {
|
.nav-bar {
|
||||||
font-size: .8em; } }
|
font-size: .8em; } }
|
||||||
|
|||||||
Reference in New Issue
Block a user