Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions _includes/head-custom-google-analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!-- Google Analytics -->
{% if site.google_analytics %}
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');

</script>
{% endif %}
2 changes: 2 additions & 0 deletions _includes/head-custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<!-- start custom head snippets, customize with your own _includes/head-custom.html file -->
{% include head-custom-google-analytics.html %}
26 changes: 4 additions & 22 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">

<title>{{ site.title }}</title>
{% seo %}

<!-- CSS -->
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
<link rel="stylesheet" href="{{ "/assets/css/main.css?v=" | append: site.github.build_revision | relative_url }}">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Libre+Baskerville:400,400i,700">

<!-- Font Awesome -->
Expand All @@ -14,25 +15,6 @@
<!-- Favicon -->
<link rel="icon" type="image/png" sizes="16x16" href="{{ "/assets/favicon.ico" | relative_url }}">

<!-- Google Analytics -->
{% if site.google_analytics %}
<script>
(function(i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function() {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');

ga('create', '{{ site.google_analytics }}', 'auto');
ga('send', 'pageview');

</script>
{% endif %}
{% include head-custom.html %}

</head>
10 changes: 5 additions & 5 deletions _includes/icons.html → _includes/social.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% if site.social.email %}
<li>
<a href="mailto:{{ site.author.email }}" title="email">
<a href="mailto:{{ site.author.email | default: site.email }}" title="email">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fa fa-envelope fa-stack-1x fa-inverse"></i>
Expand Down Expand Up @@ -64,9 +64,9 @@
</li>
{% endif %}

{% if site.social.github %}
{% if site.social.github or site.github_username %}
<li>
<a href="https://github.com/{{ site.social.github }}" title="{{ site.social.default_txt }} GitHub">
<a href="https://github.com/{{ site.social.github | default: site.github_username }}" title="{{ site.social.default_txt }} GitHub">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fab fa-github fa-stack-1x fa-inverse"></i>
Expand Down Expand Up @@ -196,9 +196,9 @@
</li>
{% endif %}

{% if site.social.twitter %}
{% if site.social.twitter or site.twitter_username %}
<li>
<a href="https://twitter.com/{{ site.social.twitter }}" title="{{ site.social.default_txt }} Twitter" class="type">
<a href="https://twitter.com/{{ site.social.twitter | default: site.twitter_username }}" title="{{ site.social.default_txt }} Twitter" class="type">
<span class="fa-stack fa-lg">
<i class="fa fa-circle fa-stack-2x"></i>
<i class="fab fa-twitter fa-stack-1x fa-inverse"></i>
Expand Down
23 changes: 11 additions & 12 deletions _layouts/about.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
---
layout: base
layout: default
---

<div class="about">
<div class="profile">
<img class="selfie" alt="{{ site.author.name }}" src="{{ site.author.selfie }}" />
<img class="selfie" alt="{{ site.author.name | default: site.author }}" src="{{ site.author.selfie | default: site.github.owner_gravatar_url }}" />
<div class="info">
<div class="title">{{ site.author.name }}</div>
<div class="description">{{ site.author.desc }}</div>
<div class="title">{{ site.author.name | default: site.author }}</div>
<div class="description">{{ site.author.desc | default: site.description | default: site.github.project_tagline }}</div>
</div>
</div>

<div class="content">
<section class="content">
{{ content }}
</br>
<div class="social-layer">
<div class="social-icons">
<ul>
{% include icons.html %}
</ul>
</div>
</section>
<div class="social-layer">
<div class="social-icons">
<ul>
{% include social.html %}
</ul>
</div>
</div>
</div>
29 changes: 0 additions & 29 deletions _layouts/base.html

This file was deleted.

32 changes: 32 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">

{% include head.html %}

<body>

<header class="nav">
<div class="nav-container">
<a href="{{ site.baseurl }}/">
<h1 class="nav-title">{{ site.title | default: site.github.repository_name }}</h1>
</a>
<nav>
<ul>
<li><a href="{{ '/' | prepend: site.baseurl }}">About</a></li>
<li><a href="{{ '/portfolio' | prepend: site.baseurl }}">Portfolio</a></li>
</ul>
</nav>
</div>
</header>

<main>
{{ content }}
</main>

<footer>
<span>
&copy; <time datetime="{{ site.time }}">{{ site.time | date: '%Y' }}</time> {{ site.author.name | default: site.author }}. <a href="https://github.com/kssim/about-portfolio/">A.P</a> theme by kssim.
</span>
</footer>
</body>
</html>
2 changes: 1 addition & 1 deletion _layouts/portfolio.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
layout: base
layout: default
---

<div class="portfolio">
Expand Down
8 changes: 4 additions & 4 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
---
layout: base
layout: default
---

<div class="post">
<section class="post">
<h2 class="post-title">{{ page.title }}</h2>
<div class="post-line"></div>
<hr class="post-line"/>

{{ content }}

</div>
</section>

<div class="pagination">
{% if page.next.url %}
Expand Down