diff --git a/.gitignore b/.gitignore
index d96f072dbe..27a1ba0e9f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,18 @@ Gemfile.lock
.Trashes
ehthumbs.db
Thumbs.db
+
+
+# Created by https://www.toptal.com/developers/gitignore/api/firebase
+# Edit at https://www.toptal.com/developers/gitignore?templates=firebase
+
+### Firebase ###
+.idea
+**/node_modules/*
+**/.firebaserc
+
+### Firebase Patch ###
+.runtimeconfig.json
+.firebase/
+
+# End of https://www.toptal.com/developers/gitignore/api/firebase
diff --git a/Gemfile b/Gemfile
index 46cdbf0279..1a3bbd0cd8 100644
--- a/Gemfile
+++ b/Gemfile
@@ -4,3 +4,8 @@ source "https://rubygems.org"
gemspec
gem "jekyll", ENV["JEKYLL_VERSION"] if ENV["JEKYLL_VERSION"]
+
+group :jekyll_plugins do
+ gem 'jekyll-titles-from-headings'
+ gem 'jekyll-tagging'
+end
\ No newline at end of file
diff --git a/_config.yml b/_config.yml
index 69a4c10487..92b85900cd 100644
--- a/_config.yml
+++ b/_config.yml
@@ -9,13 +9,16 @@ description: > # this means to ignore newlines until "show_excerpts:"
show_excerpts: false # set to true to show excerpts on the homepage
+# disqus:
+# shortname: vachirawit
+
defaults:
- -
- scope:
+ - scope:
path: "" # an empty string here means all files in the project
type: "posts" # previously `post` in Jekyll 2.2.
values:
layout: "post"
+ comments: true
# Minima date format
# refer to https://shopify.github.io/liquid/filters/date/ if you want to customize this
@@ -65,6 +68,14 @@ header_pages:
# Build settings
theme: minima
+tag_page_layout: tag_page
+tag_page_dir: tag
+tag_feed_layout: tag_feed
+tag_feed_dir: tag
+tag_permalink_style: pretty
+tag_page_data:
+ sitemap: false
+
plugins:
- jekyll-feed
- jekyll-seo-tag
diff --git a/_layouts/tag_feed.xml b/_layouts/tag_feed.xml
new file mode 100644
index 0000000000..3b5cd752c9
--- /dev/null
+++ b/_layouts/tag_feed.xml
@@ -0,0 +1,23 @@
+---
+layout: nil
+---
+
+
+ Your Title - {{ page.tag }}
+
+
+ {{ site.time | date_to_xmlschema }}
+ http://example.com/tag/{{ page.tag }}.html
+
+ Author Here
+
+ {% for post in page.posts %}
+
+ {{ post.title }}
+
+ {{ post.date | date_to_xmlschema }}
+ http://example.com{{ post.id }}
+ {{ post.content | xml_escape }}
+
+ {% endfor %}
+
\ No newline at end of file
diff --git a/_layouts/tag_page.html b/_layouts/tag_page.html
new file mode 100644
index 0000000000..30be4c6cf4
--- /dev/null
+++ b/_layouts/tag_page.html
@@ -0,0 +1,13 @@
+---
+layout: default
+---
+
{{ page.tag }}
+
+{% for post in page.posts %}
+ - {{ post.title }} ({{ post.date | date_to_string }} | Tags: {{ post | tags }})
+{% endfor %}
+
+
+
+ {{ site | tag_cloud }}
+
\ No newline at end of file
diff --git a/_plugins/ext.rb b/_plugins/ext.rb
new file mode 100644
index 0000000000..8c6e2a1ace
--- /dev/null
+++ b/_plugins/ext.rb
@@ -0,0 +1 @@
+require 'jekyll/tagging'
\ No newline at end of file
diff --git a/_posts/2020-07-12-domain-driven-design.md b/_posts/2020-07-12-domain-driven-design.md
index 40f386117d..d452318e2d 100644
--- a/_posts/2020-07-12-domain-driven-design.md
+++ b/_posts/2020-07-12-domain-driven-design.md
@@ -1,6 +1,6 @@
---
layout: post
-title: "บทความน่าสนใจเกี่ยวกับ Domain-driven design"
+title: "บทความน่าสนใจเกี่ยวกับ Domain-driven design"
---
- [Domain-driven design](https://en.wikipedia.org/wiki/Domain-driven_design)
diff --git a/_posts/2020-07-12-laravel-medialibrary.md b/_posts/2020-07-12-laravel-medialibrary.md
index 60cc68b0d8..45dff6f6cf 100644
--- a/_posts/2020-07-12-laravel-medialibrary.md
+++ b/_posts/2020-07-12-laravel-medialibrary.md
@@ -3,6 +3,7 @@ layout: post
title: "Review: Laravel Medialibrary - ไม่ต้องสร้าง Culumn เพิ่ม"
date: 2020-07-12 10:18:50 +0700
categories: laravel
+tags: laravel
---
diff --git a/_posts/2020-07-12-mysql-to-laravel-migration.md b/_posts/2020-07-12-mysql-to-laravel-migration.md
index 74505f9a89..a9d85c663a 100644
--- a/_posts/2020-07-12-mysql-to-laravel-migration.md
+++ b/_posts/2020-07-12-mysql-to-laravel-migration.md
@@ -2,6 +2,7 @@
layout: post
title: "แปลง MySQL ไปเป็น Laravel Migration"
categories: mysql laravel
+tags: laravel mysql
---
diff --git a/_posts/2020-07-12-start-with-laravel-by-docker.md b/_posts/2020-07-12-start-with-laravel-by-docker.md
index f89eede840..efa1b87c03 100644
--- a/_posts/2020-07-12-start-with-laravel-by-docker.md
+++ b/_posts/2020-07-12-start-with-laravel-by-docker.md
@@ -2,6 +2,7 @@
layout: post
title: ติดตั้ง Laravel ด้วย Docker สำหรับ Dev
categories: laravel
+tags: laravel docker
---
วิธีที่ผมใช้นี้มีแค่ Docker ก็เพียงพอแล้ว สำหรับการเริ่มต้นโปรเจค
diff --git a/_posts/2020-07-13-responsive-breakpoints-by-bootstrap.md b/_posts/2020-07-13-responsive-breakpoints-by-bootstrap.md
index f5be750a27..6719107b54 100644
--- a/_posts/2020-07-13-responsive-breakpoints-by-bootstrap.md
+++ b/_posts/2020-07-13-responsive-breakpoints-by-bootstrap.md
@@ -1,5 +1,6 @@
---
title: "เขียนเว็บ Responsive แต่จำขนาดไม่ได้ก็ไปดูที่ Bootstrap"
+tags: bootstrap
---
การกำหนดขนาดหน้าจอ Responsive 5 ขนาดในแบบ [Botstrap][2] ประกอบด้วย xl lg md sm และ xs จากหัวข้อ [Responsive breakpoints](1) สิ่งที่นำมาใช่อย่างได้ผลมีดังนี้
@@ -21,6 +22,5 @@ title: "เขียนเว็บ Responsive แต่จำขนาดไ
@media (min-width: 1200px) { ... }
```
-
[1]: https://getbootstrap.com/docs/4.1/layout/overview/#responsive-breakpoints
[2]: https://getbootstrap.com/
diff --git a/firebase.json b/firebase.json
new file mode 100644
index 0000000000..80bc1e9a61
--- /dev/null
+++ b/firebase.json
@@ -0,0 +1,16 @@
+{
+ "hosting": {
+ "public": "_site",
+ "ignore": [
+ "firebase.json",
+ "**/.*",
+ "**/node_modules/**",
+ "firebase.json",
+ "Gemfile",
+ "Gemfile.lock",
+ "Rakefile",
+ "CNAME",
+ "README.md"
+ ]
+ }
+}
diff --git a/script/bootstrap b/script/bootstrap
index 492e5535f1..d649d22a2b 100755
--- a/script/bootstrap
+++ b/script/bootstrap
@@ -2,5 +2,5 @@
set -e
-gem install bundler
+gem install -n /usr/local/bin bundler
bundle install