Commit Graph

589 Commits

Author SHA1 Message Date
Kazuhiro MUSASHI b3adc85aaa Create an article template:
```
--- /dev/null
+++ b/content/post/2019/04/21/2019-04-21-huen-muai-jai-in-chiang-mai.md
@@ -0,0 +1,11 @@
++++
+title = "2019 04 21 Huen Muai Jai in Chiang Mai"
+date = 2019-04-21T17:38:34+08:00
+Description = ""
+Tags = []
+Categories = []
+image=""
++++
+
+<div class="mermaid">
+</div>
```
2019-04-21 17:41:34 +08:00
Kazuhiro MUSASHI cd21b98d0b [WIP] Add article about Huen muai Jai in Chiang Mai.
This is to add an article about Huen Muai Jai in Chiang Mai.
2019-04-21 17:40:22 +08:00
Kazuhiro MUSASHI 2cabdca8e2
Merge pull request #19 from kazu634/Add-quote-article-on-Seikei-Izumo-no-Logistics
Add quote article on seikei izumo no logistics
2019-04-20 22:44:14 +07:00
Kazuhiro MUSASHI 71a7e0e3df Add link to Amazon. 2019-04-20 23:42:31 +08:00
Kazuhiro MUSASHI bf537e9cb8 Pointing to the HTTPs image file. 2019-04-20 23:42:06 +08:00
Kazuhiro MUSASHI 089c2cbf8f
Merge pull request #18 from kazu634/Add-quote-article-on-Seikei-Izumo-no-Logistics
Add amazon link.
2019-04-20 22:38:24 +07:00
Kazuhiro MUSASHI 5134f417fd Add amazon link. 2019-04-20 23:36:46 +08:00
Kazuhiro MUSASHI 7cba556f77 Add outline 2019-04-20 14:07:34 +07:00
Kazuhiro MUSASHI 5b0ecb2f8c Initial commit 2019-04-20 14:05:40 +07:00
Kazuhiro MUSASHI c30d40b72a
Merge pull request #17 from kazu634/Modify-lego-article
Modify lego article
2019-04-20 13:47:25 +07:00
Kazuhiro MUSASHI 2720aadfd6
Merge pull request #16 from kazu634/change-rake-task
Change rake task
2019-04-20 13:40:10 +07:00
Kazuhiro MUSASHI 5b797ab092 Delete `test.rake` file. 2019-04-20 14:38:39 +08:00
Kazuhiro MUSASHI 82dffcdc73 Create the new artcle markdown to be generated under content directory
```
--- a/tasks/new.rake
+++ b/tasks/new.rake
@@ -6,7 +6,7 @@ task :new do
   day = Time.now
   title = ARGV.last.downcase

-  postname =  "post/#{day.year}-#{day.strftime("%m")}-#{day.strftime("%d")}-#{title}.md"
+  postname = "#{day.year}-#{day.strftime("%m")}-#{day.strftime("%d")}-#{title}.md"

   # generate the post md file:
   sh "hugo new #{postname}"
```
2019-04-20 14:38:32 +08:00
Kazuhiro MUSASHI 4d0a0b1add Change the grep option/arguments to list up all the markdown files. 2019-04-20 14:36:03 +08:00
Kazuhiro MUSASHI 01900a8002 [WIP] Change the rake tasks, based on the current content structure
This is to change the rake tasks, based on the current content
structure, because I have changed a lot the content directory structure.
2019-04-20 14:18:14 +08:00
Kazuhiro MUSASHI faee7a2335 2nd draft 2019-04-20 13:03:48 +07:00
Kazuhiro MUSASHI 747469d4ad 1st draft 2019-04-17 07:30:14 +07:00
Kazuhiro MUSASHI 49b4abdda9 Modify Initial Commit 2019-04-17 06:56:05 +07:00
Kazuhiro MUSASHI 507ea600d9 Modify Initial Commit 2019-04-17 06:55:49 +07:00
Kazuhiro MUSASHI 875663544a Initial Commit 2019-04-17 06:54:22 +07:00
Kazuhiro MUSASHI fd5bf1053a Add more detailed information 2019-04-16 17:48:15 +07:00
Kazuhiro MUSASHI 2d41a15bc6 Add more detailed work flow 2019-04-16 17:43:17 +07:00
Kazuhiro MUSASHI 9a96adf136 Add explanations 2019-04-16 17:29:56 +07:00
Kazuhiro MUSASHI e669b8f8de Add work flow of using Route 53 2019-04-16 17:26:38 +07:00
Kazuhiro MUSASHI 24803ebe5d Add link to "Route 53" 2019-04-16 17:21:21 +07:00
Kazuhiro MUSASHI 934dab3a0a Change the explanation position 2019-04-16 17:04:52 +07:00
Kazuhiro MUSASHI 93fbd4785b Add some explanation to the wrap-up 2019-04-16 17:03:27 +07:00
Kazuhiro MUSASHI ffb7d05e71 Modify the terminal output 2019-04-16 16:56:53 +07:00
Kazuhiro MUSASHI 2aa76f940a Add link to "Route 53" 2019-04-16 16:54:04 +07:00
Kazuhiro MUSASHI a0b15c86a2 Add link to "Let's Encrypt". 2019-04-16 16:50:08 +07:00
Kazuhiro MUSASHI 8667d02499 Add link to "Lego" 2019-04-16 16:47:05 +07:00
Kazuhiro MUSASHI 31e097494b
Merge pull request #15 from kazu634/change-post-list-page
List up the post category article only within post list page.
2019-04-16 15:13:18 +07:00
Kazuhiro MUSASHI 80eb317187 List up the post category article only within post list page.
This is to change the post list page behaviour to list up the articles
belonging to the post category,  not all the posts regardless of the
categories.
2019-04-16 16:10:58 +08:00
Kazuhiro MUSASHI e475d05e28 [WIP] List up the post category article only within post list page.
This is to change the post list page behaviour to list up the articles
belonging to the post category,  not all the posts regardless of the
categories.
2019-04-16 15:09:15 +08:00
Kazuhiro MUSASHI 96eeecfca0
Merge pull request #14 from kazu634/add-lego-article
Add lego article
2019-04-16 14:08:13 +07:00
Kazuhiro MUSASHI 3253d1c286 Add an article about `Lego`. 2019-04-16 15:05:35 +08:00
Kazuhiro MUSASHI fd0cc3809e [WIP] Add an article about Lego 2019-04-15 00:52:33 +08:00
Kazuhiro MUSASHI 7e9c60da19
Merge pull request #13 from kazu634/improve-labs-section-list-page-pagination
Improve labs section list page pagination
2019-04-14 23:03:42 +07:00
Kazuhiro MUSASHI da156b535f Introduce the pagination to the Labs's section list page:
```
--- a/layouts/labs/list.html
+++ b/layouts/labs/list.html
@@ -6,14 +6,34 @@
     <div class="article-header light-gray"><h1>{{ .Title }}</h1></div>
     {{.Content}}
     <br>
-    {{ range .Data.Pages }}
+    {{ $paginator := .Paginate (where .Data.Pages  "Type" "labs") }}
+    {{ range $paginator.Pages }}
     <div class="summary">
       <h2><a href="{{ .Permalink }}">{{ .Title }} {{ if .Draft }}:: DRAFT{{end}}</a></h2>
       <div class="meta">
-        {{ .Date.Format "Jan 2, 2006" }}: {{.Description}}
+        {{ .Date.Format "Jan 2, 2006" }} &nbsp;
+        {{ range .Params.categories }}
+          #<a href="/categories/{{ . | urlize }}">{{ . }}</a>&nbsp;
+        {{ end }}
+        {{ range .Params.tags }}
+          #<a href="/tags/{{ . | urlize }}">{{ . }}</a>&nbsp;
+        {{ end }}: {{ .Description }}
       </div>
     </div>
     {{ end }}
   </main>

+<!-- Paginator Section Layout
+–––––––––––––––––––––––––––––––––––––––––––––––––– -->
+<nav>
+  {{ $paginator := .Paginate (where .Data.Pages "Type" "labs") }}
+  {{ if .Paginator.HasPrev }}
+  <a href="{{ .Paginator.Prev.URL }}">Prev</a>
+  {{ end }}
+  <span class="">Page {{ .Paginator.PageNumber }} of {{ .Paginator.TotalPages }}</span>
+  {{ if .Paginator.HasNext }}
+  <a href="{{ .Paginator.Next.URL }}">Next</a>
+  {{ end }}
+</nav>
+
 {{ partial "footer.html" . }}
```
2019-04-15 00:02:06 +08:00
Kazuhiro MUSASHI 6a6660144f [WIP] Improve the Labs' seciton list page's pagination.
Introduce the pagination to the Labs' section list page.
2019-04-14 23:55:37 +08:00
Kazuhiro MUSASHI 90d8a30ae4
Merge pull request #12 from kazu634/sort-the-articles-out
Sort the articles out
2019-04-14 22:53:03 +07:00
Kazuhiro MUSASHI bdfc1d260c Discard the unnecessary articles & change the category of some posts. 2019-04-14 23:51:03 +08:00
Kazuhiro MUSASHI c4564f1f07 [WIP] Discard the unnecessary articles.
Since there are so many articles, I decide to discard the unnecessary
articles.
2019-04-14 18:59:36 +08:00
Kazuhiro MUSASHI 939d713be7
Merge pull request #11 from kazu634/modify-labs-section-pagination
Modify labs section pagination
2019-04-14 17:58:11 +07:00
Kazuhiro MUSASHI 746c5079d0 Change the Labs section's pagination to be within the section:
```
--- a/layouts/labs/single.html
+++ b/layouts/labs/single.html
@@ -21,11 +21,11 @@
   </main>

   <nav class="pagination">
-    {{ if .Next }}
-      <span class="previous">&larr; <a href="{{ .Next.Permalink }}" rel="prev">{{ .Next.Title }}</a></span>
+    {{ with .PrevInSection }}
+    <span class="previous">&larr; <a href="{{ .Permalink }}" rel="prev">{{ .Title }}</a></span>
     {{ end }}
-    {{ if .Prev }}
-      <span class="next"><a href="{{ .Prev.Permalink }}" rel="next">{{ .Prev.Title }}</a> &rarr;</span>
+    {{ with .NextInSection }}
+    <span class="next"><a href="{{ .Permalink }}" rel="next">{{ .Title }}</a> &rarr;</span>
     {{ end }}
   </nav>
```
2019-04-14 18:56:42 +08:00
Kazuhiro MUSASHI e7f7fa7efd [WIP] Modify the Labs section pagination. 2019-04-14 18:46:19 +08:00
Kazuhiro MUSASHI fb17034375
Merge pull request #10 from kazu634/create-travel-section
Create travel section
2019-04-14 15:52:01 +07:00
Kazuhiro MUSASHI b26a764425 Move some articles under the travel section. 2019-04-14 16:50:53 +08:00
Kazuhiro MUSASHI 306627f732 Add the travel section to the section definition.
```
--- a/layouts/partials/sections-definition.html
+++ b/layouts/partials/sections-definition.html
@@ -1,2 +1,3 @@
           <li><a href="https://blog.kazu634.com/labs/">Labs</a></li>
           <li><a href="https://blog.kazu634.com/quotes/">Quotes</a></li>
+          <li><a href="https://blog.kazu634.com/travel/">Travel</a></li>
```
2019-04-14 16:50:23 +08:00
Kazuhiro MUSASHI 0982980ea5 Display the travel section explanation. 2019-04-14 16:49:56 +08:00