Skip to content

Commit 4adfd0c

Browse files
author
dn
committed
20190609
1 parent e151a7d commit 4adfd0c

20 files changed

+488
-40
lines changed

404.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
layout: default
3+
title: 404
4+
---
5+
6+
Error 404: This page does not exist. [Go back]({{ "/" | prepend: site.baseurl | replace: '//', '/' }}).

_config.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,21 @@
66

77
# global settings
88
title: "jsdnhk@github profile"
9-
109
description: "jsdnhk@github profile - 2019"
11-
url: "https://jsdn.hk/"
10+
author:
11+
name: "dn"
12+
13+
url: "https://jsdn.hk"
14+
baseurl: /
15+
source: .
16+
destination: ./_site
17+
1218
github_username: "jsdnhk"
1319
repository: "jsdnhk/jsdnhk.github.io"
1420
theme: "jekyll-theme-midnight"
15-
#analytics_account: "UA-3769691-28" # for google analytics
21+
google_analytics: "UA-141729733-1" # for google analytics
22+
owner : "jsdnhk@github"
23+
year : "2019"
1624

1725
# build settings
1826
#exclude: ["script", "vendor", "bower.json", "Gemfile", "Gemfile.lock", "Rakefile", "readme.md", "package.json", "node_modules"]

_includes/head.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
6+
<meta name="generator" content="Jekyll">
7+
{% seo %}
8+
<title>{%if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>
9+
<link rel="shortcut icon" type="image/x-icon" href="/assets/img/favicon.ico?">
10+
<link rel="stylesheet" type="text/css" href="/assets/css/main.css">
11+
<link rel="stylesheet" type="text/css" href="/assets/css/about.css">
12+
<link rel="stylesheet" type="text/css" href="https://afeld.github.io/emoji-css/emoji.css">
13+
<link href="/atom.xml" type="application/atom+xml" rel="alternate" title="ATOM Feed" />
14+
</head>

_includes/header.html

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
<!DOCTYPE html>
2-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-us">
3-
<head>
4-
<title>{{ page.title }}</title>
5-
<!--metadata-->
6-
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
7-
<meta name="author" content="David Ngai" />
8-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
9-
{% seo %}
10-
<!--ref. links-->
11-
<link rel="shortcut icon" type="image/x-icon" href="/assets/img/favicon.ico?">
12-
<link rel="stylesheet" type="text/css" href="/assets/css/styles.css">
13-
<link rel="stylesheet" type="text/css" href="https://afeld.github.io/emoji-css/emoji.css">
14-
</head>
15-
<body>
1+
<header>
2+
<div>
3+
<a href="{{ "/" | prepend: site.baseurl | replace: '//', '/' }}">
4+
{% assign owner_first_name = site.owner | split: " " %}
5+
<h1>{{ owner_first_name[0] | downcase }}@home:~$</h1>
6+
</a>
7+
<div class="header-links">
8+
{% include links.html %}
9+
</div>
10+
</div>
11+
</header>

_includes/links.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<a href=/archive"><h2 class="header-link">Archive</h2></a>&nbsp;|&nbsp;
2+
<a href="/about"><h2 class="header-link">About</h2></a>&nbsp;|&nbsp;
3+
<a href="/atom.xml"><h2 class="header-link">RSS</h2></a><!--for testing use-->
File renamed without changes.

_sass/_default_colors.scss

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
original: https://github.com/pages-themes/hacker
3+
*/
4+
5+
$apple-blossom: #ac4142;
6+
$alto: #d0d0d0;
7+
$bouquet: #aa759f;
8+
$chelsea-cucumber: #90a959;
9+
$cod-grey: #151515;
10+
$conifer: #b5e853;
11+
$dove-grey: #666;
12+
$gallery: #eaeaea;
13+
$grey: #888;
14+
$gulf-stream: #75b5aa;
15+
$hippie-blue: #6a9fb5;
16+
$potters-clay: #8f5536;
17+
$rajah: #f4bf75;
18+
$raw-sienna: #d28445;
19+
$silver-chalice: #aaa;

_sass/base.scss

Lines changed: 273 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,273 @@
1+
/*
2+
original: https://github.com/pages-themes/hacker
3+
*/
4+
5+
@import "rouge-base16-dark";
6+
@import "default_colors";
7+
8+
$body-background: $cod-grey !default;
9+
$body-foreground: $gallery !default;
10+
$header: $conifer !default;
11+
$blockquote-color: $silver-chalice !default;
12+
$blockquote-border: $dove-grey !default;
13+
14+
body {
15+
margin: 0;
16+
padding: 0;
17+
background: $body-background url("../assets/bkg.png") 0 0;
18+
color: $body-foreground;
19+
font-size: 16px;
20+
line-height: 1.5;
21+
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
22+
}
23+
24+
/* General & 'Reset' Stuff */
25+
26+
.container {
27+
width: 90%;
28+
max-width: 1000px;
29+
margin: 0 auto;
30+
}
31+
32+
33+
section {
34+
display: block;
35+
margin: 0 0 20px 0;
36+
}
37+
38+
h1, h2, h3, h4, h5, h6 {
39+
margin: 0 0 20px;
40+
}
41+
42+
li {
43+
line-height: 1.4 ;
44+
}
45+
46+
/* Header, <header>
47+
header - container
48+
h1 - project name
49+
h2 - project description
50+
*/
51+
52+
header {
53+
background: rgba(0, 0, 0, 0.1);
54+
border-bottom: 1px dashed $conifer; //header;
55+
padding: 20px;
56+
margin: 0 0 40px 0;
57+
}
58+
59+
.header-links {
60+
text-align: center;
61+
}
62+
63+
.header-link {
64+
display: inline;
65+
}
66+
67+
header h1 {
68+
font-size: 24px;
69+
line-height: 1.5;
70+
margin: 0;
71+
text-align: center;
72+
font-weight: bold;
73+
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
74+
color: $conifer;//$header;
75+
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
76+
0 0 5px rgba(181, 232, 83, 0.1),
77+
0 0 10px rgba(181, 232, 83, 0.1);
78+
letter-spacing: -1px;
79+
-webkit-font-smoothing: antialiased;
80+
}
81+
82+
header h2 {
83+
font-size: 18px;
84+
font-weight: 300;
85+
color: #666;
86+
}
87+
88+
/* Main Content
89+
*/
90+
91+
#main_content {
92+
width: 100%;
93+
-webkit-font-smoothing: antialiased;
94+
}
95+
section img {
96+
max-width: 100%
97+
}
98+
99+
h1, h2, h3, h4, h5, h6 {
100+
font-weight: normal;
101+
font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace;
102+
color: $header;
103+
letter-spacing: -0.03em;
104+
text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1),
105+
0 0 5px rgba(181, 232, 83, 0.1),
106+
0 0 10px rgba(181, 232, 83, 0.1);
107+
}
108+
109+
#main_content h1 {
110+
font-size: 30px;
111+
}
112+
113+
#main_content h2 {
114+
font-size: 24px;
115+
}
116+
117+
#main_content h3 {
118+
font-size: 18px;
119+
}
120+
121+
#main_content h4 {
122+
font-size: 14px;
123+
}
124+
125+
#main_content h5 {
126+
font-size: 12px;
127+
text-transform: uppercase;
128+
margin: 0 0 5px 0;
129+
}
130+
131+
#main_content h6 {
132+
font-size: 12px;
133+
text-transform: uppercase;
134+
color: #999;
135+
margin: 0 0 5px 0;
136+
}
137+
138+
dt {
139+
font-style: italic;
140+
font-weight: bold;
141+
}
142+
143+
ul li {
144+
list-style-image:url('../assets/bullet.png');
145+
}
146+
147+
blockquote {
148+
color: $blockquote-color;
149+
padding-left: 10px;
150+
border-left: 1px dotted $blockquote-border;
151+
}
152+
153+
pre {
154+
background: rgba(0, 0, 0, 0.9);
155+
border: 1px solid rgba(255, 255, 255, 0.15);
156+
padding: 10px;
157+
font-size: 16px;
158+
color: #b5e853;
159+
border-radius: 2px;
160+
text-wrap: normal;
161+
overflow: auto;
162+
overflow-y: hidden;
163+
}
164+
165+
code.highlighter-rouge {
166+
background: rgba(0,0,0,0.9);
167+
border: 1px solid rgba(255, 255, 255, 0.15);
168+
padding: 0px 3px;
169+
margin: 0px -3px;
170+
color: #aa759f;
171+
border-radius: 2px;
172+
}
173+
174+
table {
175+
width: 100%;
176+
margin: 0 0 20px 0;
177+
}
178+
179+
th {
180+
text-align: left;
181+
border-bottom: 1px dashed #b5e853;
182+
padding: 5px 10px;
183+
}
184+
185+
td {
186+
padding: 5px 10px;
187+
}
188+
189+
hr {
190+
height: 0;
191+
border: 0;
192+
border-bottom: 1px dashed #b5e853;
193+
color: #b5e853;
194+
}
195+
196+
/* Buttons
197+
*/
198+
199+
.btn {
200+
display: inline-block;
201+
background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.3), rgba(35, 35, 35, 0.3) 50%, rgba(10, 10, 10, 0.3) 50%, rgba(0, 0, 0, 0.3));
202+
padding: 8px 18px;
203+
border-radius: 50px;
204+
border: 2px solid rgba(0, 0, 0, 0.7);
205+
border-bottom: 2px solid rgba(0, 0, 0, 0.7);
206+
border-top: 2px solid rgba(0, 0, 0, 1);
207+
color: rgba(255, 255, 255, 0.8);
208+
font-family: Helvetica, Arial, sans-serif;
209+
font-weight: bold;
210+
font-size: 13px;
211+
text-decoration: none;
212+
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.75);
213+
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
214+
}
215+
216+
.btn:hover {
217+
background: -webkit-linear-gradient(top, rgba(40, 40, 40, 0.6), rgba(35, 35, 35, 0.6) 50%, rgba(10, 10, 10, 0.8) 50%, rgba(0, 0, 0, 0.8));
218+
}
219+
220+
.btn .icon {
221+
display: inline-block;
222+
width: 16px;
223+
height: 16px;
224+
margin: 1px 8px 0 0;
225+
float: left;
226+
}
227+
228+
.btn-github .icon {
229+
opacity: 0.6;
230+
background: url("../images/blacktocat.png") 0 0 no-repeat;
231+
}
232+
233+
/* Links
234+
a, a:hover, a:visited
235+
*/
236+
237+
a {
238+
color: #63c0f5;
239+
text-shadow: 0 0 5px rgba(104, 182, 255, 0.5);
240+
}
241+
242+
a:active, a:focus {
243+
outline: 0;
244+
border: none;
245+
-moz-outline-style: none
246+
}
247+
248+
/* Clearfix */
249+
250+
.cf:before, .cf:after {
251+
content:"";
252+
display:table;
253+
}
254+
255+
.cf:after {
256+
clear:both;
257+
}
258+
259+
.cf {
260+
zoom:1;
261+
}
262+
263+
/* Make footer stick to bottom */
264+
265+
.pagination, footer {
266+
height: 50px;
267+
line-height: 50px;
268+
text-align: center;
269+
}
270+
271+
#wrapper {
272+
min-height: calc(100vh - 100px);
273+
}

_sass/custom.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)