Some SEO improvements

- meta description
- empty robots.txt
- changed welcome message on home to h2

- CSS in-line fold pairs
This commit is contained in:
2019-02-09 03:07:58 -05:00
parent 440f138645
commit 7efe961031
9 changed files with 68 additions and 81 deletions

View File

@@ -202,9 +202,7 @@ pre, code {
// }}} general elements // // }}} general elements //
// header {{{ // header {// {{{
header {
a { a {
.path .path:visited { .path .path:visited {
color: #6699cc; color: #6699cc;
@@ -216,21 +214,13 @@ header {
color: #f2f0ec; color: #f2f0ec;
} }
} }
} }// }}}
// }}} header // footer {// {{{
// footer {{{ //
footer {
@include a-color(#747369); @include a-color(#747369);
} }// }}}
// }}} footer // .page-not-found {// {{{
// 404 {{{ //
.page-not-found {
h1 { h1 {
text-align: center; text-align: center;
font-size: 5em; font-size: 5em;
@@ -252,19 +242,13 @@ footer {
font-size: 2em; font-size: 2em;
} }
} }
} }// }}}
// }}} 404 // #homepage {// {{{
// homepage {{{ //
#homepage {
// about {{{ //
#about { #about {
font-size: 1.25rem; font-size: 1.25rem;
h1 { h2 {
margin-top: 1.25rem; margin-top: 1.25rem;
font-size: 2rem; font-size: 2rem;
color: $base-yellow; color: $base-yellow;
@@ -275,8 +259,6 @@ footer {
// } // }
} }
// me-equation {{{ //
.me-equation { .me-equation {
margin-top: 3em; margin-top: 3em;
text-align: center; text-align: center;
@@ -332,20 +314,7 @@ footer {
} }
} }
// media {{{ // // @media (max-width: 800px) {// {{{
// @media (max-width: $phone-width) {
// margin-top: 2em;
// display: block;
// p {
// display: block;
// @include vert-padding-rem(0.1);
// margin-bottom: 0rem;
// }
// }
// @media (max-width: 800px) {
@media (max-width: $phone-width) { @media (max-width: $phone-width) {
// flex-direction: column; // flex-direction: column;
flex-wrap: wrap; flex-wrap: wrap;
@@ -371,8 +340,8 @@ footer {
&#hexatar { &#hexatar {
// max-width: 70%; // max-width: 70%;
// max-width: 33%; max-width: 20%;
max-width: 28%; // max-height: 15vh;
// margin-top: 2rem; // margin-top: 2rem;
margin-top: 1.75rem; margin-top: 1.75rem;
} }
@@ -391,11 +360,18 @@ footer {
} }
} }
} }
// }}} media // // @media (max-width: $phone-width) {
// margin-top: 2em;
// display: block;
// p {
// display: block;
// @include vert-padding-rem(0.1);
// margin-bottom: 0rem;
// }
// }
} }
// }}} me-equation //
@media (max-width: $phone-width) { @media (max-width: $phone-width) {
// font-size: 1.1em; // font-size: 1.1em;
@@ -405,10 +381,8 @@ footer {
// font-size: 1.75rem; // font-size: 1.75rem;
font-size: 1.4rem; font-size: 1.4rem;
} }
} }// }}}
} }
// }}} about //
@media (max-width: $max-page-width) { @media (max-width: $max-page-width) {
margin-bottom: 2rem; margin-bottom: 2rem;
@@ -431,15 +405,13 @@ footer {
.homepage .tag { .homepage .tag {
margin-right: 2em; margin-right: 2em;
} */ } */// }}}
// }}} homepage //
// TODO: converted up to here // TODO: converted up to here
// hero {{{ // // hero {{{ //
h1.site-title { h1.site-title {// {{{
text-align: center; text-align: center;
/* font-size: 3.5em; */ /* font-size: 3.5em; */
font-size: 4.8em; font-size: 4.8em;
@@ -462,13 +434,13 @@ h1.site-title {
// font-size: 2.5em; // font-size: 2.5em;
font-size: 2em; font-size: 2em;
} }
} }// }}}
.hero-logo img { .hero-logo img {
width: 100%; width: 100%;
} }
.nav-bar { .nav-bar {// {{{
margin-left: .5em; margin-left: .5em;
// margin-bottom: 1em; // margin-bottom: 1em;
// margin-top: .75em; // margin-top: .75em;
@@ -478,9 +450,9 @@ h1.site-title {
// font-size: .9em; // font-size: .9em;
font-size: .8em; font-size: .8em;
} }
} }// }}}
.hero-tagline{ .hero-tagline{// {{{
margin-top: .3em; margin-top: .3em;
font-size: .8rem; font-size: .8rem;
// font-style: italic; // font-style: italic;
@@ -489,7 +461,7 @@ h1.site-title {
.icon { .icon {
width: 1.25rem; width: 1.25rem;
} }
} }// }}}
// }}} hero // // }}} hero //

View File

@@ -3,5 +3,10 @@
baseURL = "https://kevinmok.tk/" baseURL = "https://kevinmok.tk/"
# baseURL = "/home/kevin/coding/mf-site/public" # baseURL = "/home/kevin/coding/mf-site/public"
languageCode = "en-us" languageCode = "en-us"
title = "Kevin Mok" title = "Kevin Mok's Website"
# theme = "base16" # theme = "base16"
enableRobotsTXT = "true"
[params]
author = "Kevin Mok"
description = "Hey, I'm Kevin Mok - a CS (Computer Science) student at the University of Toronto. Come check out my personal website!"

View File

@@ -14,21 +14,30 @@
- cd/ls diff. pages - cd/ls diff. pages
# Medium # Medium
- socials in footer
- icons
- email
- tooltip pop-up with email and clipboard button/link
- [Pure CSS Tooltips](https://www.youtube.com/watch?v=hAeQ8CqrGDY)
- use position element
- [Copying Text to Clipboard in HTML & JavaScript](https://www.youtube.com/watch?v=NHg6jQajaMs)
- [Native Browser Copy To Clipboard](https://css-tricks.com/native-browser-copy-clipboard/)
- pages - pages
- fav. apps - fav. apps
- contact
- socials in footer?
- linux config - linux config
- credits - credits
- SEO - contact?
- site stats - site stats
- size - size
- load time - load time
# Tiny # Tiny
- inline fold pairs (CSS) - SEO
- be more specific with robots.txt when have content
- add/redirect aliases
Break> {{{
> }}}
## Archived ## Archived
- about/homepage - about/homepage

View File

@@ -1,9 +1,8 @@
<div id="about"> <div id="about">
<!-- <h1 class="headline">About</h1> --> <h2>Welcome to my site!</h2>
<h1>Hello there!</h1>
<p> <p>
Welcome to my site. I'm Kevin Mok - a 2<sup>nd</sup> year Computer Science I'm Kevin Mok - a 2<sup>nd</sup> year Computer Science
student at the University of Toronto, and I'm interested in all things Linux-related and student at the University of Toronto, and I'm greatly interested in all things Linux and
<a href="https://www.gnu.org/philosophy/floss-and-foss.en.html" <a href="https://www.gnu.org/philosophy/floss-and-foss.en.html"
target="_blank">FOSS/FLOSS</a>. target="_blank">FOSS/FLOSS</a>.
</p> </p>

View File

@@ -18,12 +18,13 @@
{{ $main_sass := resources.Get "sass/main.scss" }} {{ $main_sass := resources.Get "sass/main.scss" }}
{{ $main_style := $main_sass | resources.ToCSS }} {{ $main_style := $main_sass | resources.ToCSS }}
<link rel="stylesheet" href="{{ $main_style.RelPermalink }}" type="text/css"> <link rel="stylesheet" href="{{ $main_style.RelPermalink }}" type="text/css">
<!-- <title> <title>
{{ $isHomePage := eq .Title .Site.Title }} {{ $isHomePage := eq .Title .Site.Title }}
{{ .Title }} {{ .Title }}
{{ if eq $isHomePage false }} - {{ if eq $isHomePage false }} -
{{ .Site.Title }} {{ .Site.Title }}
{{ end }}</title> --> {{ end }}
</title>
<!-- <link rel="shortcut icon" type="image/png" href="imgs/icons/gitlab.png" id="favicon"/> --> <!-- <link rel="shortcut icon" type="image/png" href="imgs/icons/gitlab.png" id="favicon"/> -->
<link rel="apple-touch-icon" sizes="180x180" href="{{ "img/favicon/apple-touch-icon.png" | relURL }}"> <link rel="apple-touch-icon" sizes="180x180" href="{{ "img/favicon/apple-touch-icon.png" | relURL }}">
@@ -34,9 +35,9 @@
<meta name="msapplication-TileColor" content="#2b5797"> <meta name="msapplication-TileColor" content="#2b5797">
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<title> <!-- <title>
{{ .Site.Title }} &nbsp;• &nbsp;~{{ .Page.RelPermalink }} {{ .Site.Title }} &nbsp;• &nbsp;~{{ .Page.RelPermalink }}
</title> </title> -->
</head> </head>
<body> <body>

View File

@@ -34,9 +34,9 @@
</div> </div>
<!-- <div style="text-align: center;"> --> <!-- <div style="text-align: center;"> -->
<!-- <div class="hero-tagline"> <!-- <div class="hero-tagline"> -->
[>“Live, love and Linux.”<] <!-- [> “Live, love and Linux.” <] -->
<p>Live, love and <img src="{{ "/img/linux-icon.svg" | relURL }}" <!-- <p>Live, love and <img src="{{ "/img/linux-icon.svg" | relURL }}" -->
class="icon" <!-- class="icon" -->
alt="linux-icon"/>.</p> <!-- alt="linux-icon"/>.</p> -->
</div> --> <!-- </div> -->

View File

@@ -8,6 +8,7 @@
<div class="equation-part"> <div class="equation-part">
<a href="https://www.wikiwand.com/en/Arch_Linux" target="_blank"> <a href="https://www.wikiwand.com/en/Arch_Linux" target="_blank">
<img src="{{ "img/arch.svg" | relURL }}" alt="linux-logo"> <img src="{{ "img/arch.svg" | relURL }}" alt="linux-logo">
<!-- <img src="{{ "img/larbs.png" | relURL }}" alt="linux-logo"> -->
</a> </a>
<p>+</p> <p>+</p>
</div> </div>

View File

@@ -217,7 +217,7 @@ footer a {
#homepage #about { #homepage #about {
font-size: 1.25rem; } font-size: 1.25rem; }
#homepage #about h1 { #homepage #about h2 {
margin-top: 1.25rem; margin-top: 1.25rem;
font-size: 2rem; font-size: 2rem;
color: #ffcc66; color: #ffcc66;
@@ -263,7 +263,7 @@ footer a {
#homepage #about .me-equation .equation-part img { #homepage #about .me-equation .equation-part img {
flex: 1.5; } flex: 1.5; }
#homepage #about .me-equation .equation-part img#hexatar { #homepage #about .me-equation .equation-part img#hexatar {
max-width: 28%; max-width: 20%;
margin-top: 1.75rem; } margin-top: 1.75rem; }
#homepage #about .me-equation .equation-part p { #homepage #about .me-equation .equation-part p {
font-size: 6vw; font-size: 6vw;

BIN
static/img/larbs.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB