Skip to content

Commit

Permalink
tags & firebase
Browse files Browse the repository at this point in the history
  • Loading branch information
M4R14 committed Jul 17, 2020
1 parent 4375451 commit c7270ce
Show file tree
Hide file tree
Showing 13 changed files with 92 additions and 5 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
15 changes: 13 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
23 changes: 23 additions & 0 deletions _layouts/tag_feed.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
layout: nil
---
<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
<title>Your Title - {{ page.tag }}</title>
<link href="http://example.com{{ page.url }}" rel="self"/>
<link href="http://example.com/tag/{{ page.tag }}.html"/>
<updated>{{ site.time | date_to_xmlschema }}</updated>
<id>http://example.com/tag/{{ page.tag }}.html</id>
<author>
<name>Author Here</name>
</author>
{% for post in page.posts %}
<entry>
<title>{{ post.title }}</title>
<link href="http://example.com{{ post.url }}"/>
<updated>{{ post.date | date_to_xmlschema }}</updated>
<id>http://example.com{{ post.id }}</id>
<content type="html">{{ post.content | xml_escape }}</content>
</entry>
{% endfor %}
</feed>
13 changes: 13 additions & 0 deletions _layouts/tag_page.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
layout: default
---
<h2>{{ page.tag }}</h2>
<ul>
{% for post in page.posts %}
<li><a href="{{ post.url }}">{{ post.title }}</a> ({{ post.date | date_to_string }} | Tags: {{ post | tags }})</li>
{% endfor %}
</ul>

<div id="tag-cloud">
{{ site | tag_cloud }}
</div>
1 change: 1 addition & 0 deletions _plugins/ext.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'jekyll/tagging'
2 changes: 1 addition & 1 deletion _posts/2020-07-12-domain-driven-design.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
1 change: 1 addition & 0 deletions _posts/2020-07-12-laravel-medialibrary.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ layout: post
title: "Review: Laravel Medialibrary - ไม่ต้องสร้าง Culumn เพิ่ม"
date: 2020-07-12 10:18:50 +0700
categories: laravel
tags: laravel
---
<!-- # Review: Laravel-medialibrary -->

Expand Down
1 change: 1 addition & 0 deletions _posts/2020-07-12-mysql-to-laravel-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: post
title: "แปลง MySQL ไปเป็น Laravel Migration"
categories: mysql laravel
tags: laravel mysql
---
<!-- # Mysql to Laravel Migration -->

Expand Down
1 change: 1 addition & 0 deletions _posts/2020-07-12-start-with-laravel-by-docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
layout: post
title: ติดตั้ง Laravel ด้วย Docker สำหรับ Dev
categories: laravel
tags: laravel docker
---
วิธีที่ผมใช้นี้มีแค่ Docker ก็เพียงพอแล้ว สำหรับการเริ่มต้นโปรเจค

Expand Down
2 changes: 1 addition & 1 deletion _posts/2020-07-13-responsive-breakpoints-by-bootstrap.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
---
title: "เขียนเว็บ Responsive แต่จำขนาดไม่ได้ก็ไปดูที่ Bootstrap"
tags: bootstrap
---

การกำหนดขนาดหน้าจอ Responsive 5 ขนาดในแบบ [Botstrap][2] ประกอบด้วย xl lg md sm และ xs จากหัวข้อ [Responsive breakpoints](1) สิ่งที่นำมาใช่อย่างได้ผลมีดังนี้
Expand All @@ -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/
16 changes: 16 additions & 0 deletions firebase.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"hosting": {
"public": "_site",
"ignore": [
"firebase.json",
"**/.*",
"**/node_modules/**",
"firebase.json",
"Gemfile",
"Gemfile.lock",
"Rakefile",
"CNAME",
"README.md"
]
}
}
2 changes: 1 addition & 1 deletion script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

set -e

gem install bundler
gem install -n /usr/local/bin bundler
bundle install

0 comments on commit c7270ce

Please sign in to comment.