Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dikiaap committed Feb 25, 2019
0 parents commit 6112de5
Show file tree
Hide file tree
Showing 43 changed files with 1,468 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = false

[*.md]
trim_trailing_whitespace = false
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_site
.sass-cache
.jekyll-metadata
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
language: ruby

rvm:
- 2.6

os:
- linux
- osx

dist: xenial

branches:
only:
- gh-pages

before_install:
- gem update --system

install:
- gem install jekyll jekyll-paginate jekyll-sitemap jemoji octopress
- octopress new post "Your post"

script:
- jekyll clean
- jekyll build
15 changes: 15 additions & 0 deletions 404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: 404
title: "404 · Blog Diki Ananta"
author: dikiaap
description: "404 Not Found."
---
<div class="container">
<div class="content">
<p><a href="{{ '/' | relative_url }}"><img src="{{ '/img/404.jpg' | relative_url }}" alt="404"></a></p>
<div class="title">
Oops!<br>
The page you were looking for doesn't exist.
</div>
</div>
</div>
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
blog.dikiaap.id
453 changes: 453 additions & 0 deletions LICENSE.txt

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Diki Ananta's blog site

[![Status Build](https://img.shields.io/travis/com/dikiaap/blog.dikiaap.id/gh-pages.svg)](https://travis-ci.com/dikiaap/blog.dikiaap.id)

## Requirements

- Ruby
- RubyGems

## Build

```shell
gem install jekyll jekyll-paginate jekyll-sitemap jemoji
jekyll build
jekyll serve
```

## License

Licensed under the [MIT License](./LICENSE#L3) for the code and [CC BY-SA 4.0](./LICENSE#L27) for the content.
24 changes: 24 additions & 0 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Site settings.
url: https://blog.dikiaap.id
name: Diki Ananta
title: Blog · Diki Ananta
email: [email protected]
author: dikiaap
timezone: Asia/Jakarta
description: "Hi! I am Diki Ananta and I live in Indonesia. Little more about me. I'm a author, web developer, huge nerd, and <3 science."
social_username: dikiaap

# Build settings.
sass:
style: compressed
markdown: kramdown
paginate: 5
permalink: /post/:title
paginate_path: "/page/:num/"
exclude:
- README.md

# Plugins.
plugins:
- jekyll-paginate
- jemoji
13 changes: 13 additions & 0 deletions _includes/disqus_comments.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{% if page.comments %}
<div class="post-line post-and-comment-separator"></div>
<div id="disqus_thread"></div>
<script>
(function() {
var d = document, s = d.createElement('script');
s.src = 'https://dikiaapblog.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/">comments powered by Disqus.</a></noscript>
{% endif %}
4 changes: 4 additions & 0 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<footer>
&copy; {{ site.time | date: "%Y" }} <a href="https://dikiaap.id" class="home">{{ site.name }}</a><br>
<small>The content for this site is <a href="https://creativecommons.org/licenses/by-sa/4.0/" class="home gray-underline" target="_blank" rel="noopener">CC BY-SA 4.0</a>. The <a href="https://github.com/dikiaap/blog.dikiaap.id" class="home gray-underline" target="_blank" rel="noopener">code</a> for this site is <a href="https://opensource.org/licenses/MIT" class="home gray-underline" target="_blank" rel="noopener">MIT</a>.</small>
</footer>
10 changes: 10 additions & 0 deletions _includes/google_analytics.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script>
if (navigator.doNotTrack != '1') {
(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', 'UA-64731723-1', 'auto');
ga('send', 'pageview');
}
</script>
24 changes: 24 additions & 0 deletions _includes/head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>{% capture description %}{% if page.description %}{{ page.description }}{% elsif page.title %}{{ content | raw_content }}{% else %}{{ site.description }}{% endif %}{% endcapture %}
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
<meta name="author" content="{{ site.name }}">
<meta name="generator" content="Jekyll v{{ jekyll.version }}">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@{{ site.social_username }}">
<meta name="twitter:creator" content="@{{ site.social_username }}">
<meta name="twitter:dnt" content="on">
<meta property="og:url" content="{{ page.url | absolute_url }}">
<meta property="og:type" content="article">
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
<meta property="og:description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
<meta property="og:image" content="{{ '/img/thumbnail.png' | absolute_url }}">
<meta name="theme-color" content="#55bfcf">
<meta name="apple-mobile-web-app-status-bar-style" content="#55bfcf">
<link rel="stylesheet" href="{{ '/css/mangan.min.css' | relative_url }}">
<link rel="canonical" href="{{ page.url | absolute_url }}">
<link rel="icon" href="{{ '/favicon.png' | relative_url }}">
<link rel="alternate" href="{{ '/feed.xml' | absolute_url }}" type="application/rss+xml" title="{{ site.title }}">
</head>
21 changes: 21 additions & 0 deletions _includes/head_404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}</title>{% capture description %}{% if page.description %}{{ page.description }}{% elsif page.title %}{{ content | raw_content }}{% else %}{{ site.description }}{% endif %}{% endcapture %}
<meta http-equiv="x-ua-compatible" content="ie=edge">
<meta name="description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@{{ site.social_username }}">
<meta name="twitter:creator" content="@{{ site.social_username }}">
<meta property="og:url" content="{{ page.url | absolute_url }}">
<meta property="og:type" content="article">
<meta property="og:title" content="{% if page.title %}{{ page.title }}{% else %}{{ site.title }}{% endif %}">
<meta property="og:description" content="{{ description | strip_html | condense_spaces | truncate:150 }}">
<meta property="og:image" content="{{ '/img/thumbnail.png' | absolute_url }}">
<meta name="theme-color" content="#efefef">
<meta name="apple-mobile-web-app-status-bar-style" content="#efefef">
<link rel="stylesheet" href="{{ '/css/404.min.css' | relative_url }}">
<link rel="canonical" href="{{ page.url | absolute_url }}">
<link rel="icon" href="{{ '/favicon.png' | relative_url }}">
<link rel="alternate" href="{{ '/feed.xml' | absolute_url }}" type="application/rss+xml" title="{{ site.title }}">
</head>
3 changes: 3 additions & 0 deletions _includes/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<header class="site-header">
<a href="{{ '/' | relative_url }}"><img src="{{ '/img/icon.png' | relative_url }}" class="logo" alt="Logo"></a>
</header>
30 changes: 30 additions & 0 deletions _includes/nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<nav>
<a href="#" class="menu-icon">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="15" viewBox="0 0 18 15">
<path fill="#53d1ab" d="M18,1.484c0,0.82-0.665,1.484-1.484,1.484H1.484C0.665,2.969,0,2.304,0,1.484l0,0C0,0.665,0.665,0,1.484,0 h15.031C17.335,0,18,0.665,18,1.484L18,1.484z M18,7.516C18,8.335,17.335,9,16.516,9H1.484C0.665,9,0,8.335,0,7.516l0,0c0-0.82,0.665-1.484,1.484-1.484 h15.031C17.335,6.031,18,6.696,18,7.516L18,7.516z M18,13.516C18,14.335,17.335,15,16.516,15H1.484C0.665,15,0,14.335,0,13.516l0,0 c0-0.82,0.665-1.484,1.484-1.484h15.031C17.335,12.031,18,12.696,18,13.516L18,13.516z"></path>
</svg>
</a>
<div class="nav-mobile">
<a href="https://twitter.com/{{ site.social_username }}" class="icon-link" target="_blank" rel="noopener">
<span class="icon">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24">
<path fill="#00aaec" d="M24 4.557c-.883.392-1.832.656-2.828.775 1.017-.609 1.798-1.574 2.165-2.724-.951.564-2.005.974-3.127 1.195-.897-.957-2.178-1.555-3.594-1.555-3.179 0-5.515 2.966-4.797 6.045-4.091-.205-7.719-2.165-10.148-5.144-1.29 2.213-.669 5.108 1.523 6.574-.806-.026-1.566-.247-2.229-.616-.054 2.281 1.581 4.415 3.949 4.89-.693.188-1.452.232-2.224.084.626 1.956 2.444 3.379 4.6 3.419-2.07 1.623-4.678 2.348-7.29 2.04 2.179 1.397 4.768 2.212 7.548 2.212 9.142 0 14.307-7.721 13.995-14.646.962-.695 1.797-1.562 2.457-2.549z"></path>
</svg>
</span>
</a>
<a href="https://www.youtube.com/channel/UCWkPVdu8Lc5nnKOeMEj0Evw" class="icon-link" target="_blank" rel="noopener">
<span class="icon">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24">
<path fill="#ff0000" d="M19.615 3.184c-3.604-.246-11.631-.245-15.23 0-3.897.266-4.356 2.62-4.385 8.816.029 6.185.484 8.549 4.385 8.816 3.6.245 11.626.246 15.23 0 3.897-.266 4.356-2.62 4.385-8.816-.029-6.185-.484-8.549-4.385-8.816zm-10.615 12.816v-8l8 3.993-8 4.007z"></path>
</svg>
</span>
</a>
<a href="https://github.com/{{ site.social_username }}" class="icon-link" target="_blank" rel="noopener">
<span class="icon">
<svg xmlns="http://www.w3.org/2000/svg" width="18" height="18" viewBox="0 0 24 24">
<path fill="#171515" d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"></path>
</svg>
</span>
</a>
</div>
</nav>
8 changes: 8 additions & 0 deletions _layouts/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<!DOCTYPE html>
<html lang="en">
{% include head_404.html %}
<body>
{{ content }}
{% include google_analytics.html %}
</body>
</html>
13 changes: 13 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
{% include head.html %}
<body>
{% include header.html %}
<div class="wrapper">
{{ content }}
</div>
{% include nav.html %}
{% include footer.html %}
{% include google_analytics.html %}
</body>
</html>
28 changes: 28 additions & 0 deletions _layouts/post.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
{% include head.html %}
<body>
{% include header.html %}
<article class="wrapper post">
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
<div class="post-detail">
{{ page.date | date_to_string }}{% if page.author %} • Written by <a href="https://twitter.com/{{ site.social_username }}" target="_blank" rel="noopener">{{ page.author }}</a>{% endif %}
</div>
<div class="post-line"></div>
</header>
{{ content }}
<hr>
<div class="post-new">{% if page.next %}
<a href="{{ page.next.url }}">{{ page.next.title }}</a>{% endif %}
</div>
<div class="post-old">{% if page.previous %}
<a href="{{ page.previous.url }}">{{ page.previous.title }}</a>{% endif %}
</div>
{% include disqus_comments.html %}
</article>
{% include nav.html %}
{% include footer.html %}
{% include google_analytics.html %}
</body>
</html>
15 changes: 15 additions & 0 deletions _posts/2015-11-28-ask-me-anything.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
layout: post
title: "Ask Me Anything"
date: 2015-11-28T08:21:51+07:00
author: dikiaap
description: "Inspired by Sindre Sorhus. I decided to create AMA on GitHub. AMA on GitHub, I used to give an answer for your questions. I think it would be useful way for everyone, because everyone can see the questions and answers."
comments: false
---
Inspired by [Sindre Sorhus](https://github.com/sindresorhus/ama). I decided to create AMA on GitHub. AMA on GitHub, I used to give an answer for your questions. I think it would be useful way for everyone, because everyone can see the questions and answers.
<!--more-->

So, this is [Ask Me Anything](https://github.com/dikiaap/ama). I will read and reply your questions. ASAP! :wink:<br>
Also read [the answered questions](https://github.com/dikiaap/ama/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20sort%3Aupdated-desc%20-label%3Ahidden).

[![AMA](/img/post/ama.png)](https://github.com/dikiaap/ama)
Loading

0 comments on commit 6112de5

Please sign in to comment.