Commit Graph

719 Commits

Author SHA1 Message Date
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
Kazuhiro MUSASHI cfcf7e5f0a Add explanation for the travel section.
```
--- /dev/null
+++ b/content/travel/_index.md
@@ -0,0 +1,7 @@
+---
+title: Travel Page
+date: 2019-04-14
+publishdate: 2019-04-14
+---
+
+旅行関係の記事をここに集めてみました。
```
2019-04-14 16:48:49 +08:00
Kazuhiro MUSASHI 2c1c89d9f6 [WIP] Create the travel section.
This is to create the travel section.
2019-04-14 16:04:17 +08:00
Kazuhiro MUSASHI 9073f99314
Merge pull request #9 from kazu634/separate-section-definitions-to-partial
Separate section definitions to partial
2019-04-14 15:03:27 +07:00
Kazuhiro MUSASHI 545c096087 Modify the header templates to refer to the section partial html. 2019-04-14 16:02:03 +08:00
Kazuhiro MUSASHI 0984e402a4 Add the partial definition for the section definition. 2019-04-14 16:01:23 +08:00
Kazuhiro MUSASHI ac38ed01cc [WIP] Consolidate/separate the section definitions to the partial definition.
This is to consolidate/separate the section definitions on each list.html to the
partial definition.
2019-04-14 15:32:15 +08:00
Kazuhiro MUSASHI 8d0069af4c
Merge pull request #8 from kazu634/create-quote-section
Create quote section
2019-04-14 14:30:27 +07:00
Kazuhiro MUSASHI aa2986d0ce Move some articles under the Quotes category. 2019-04-14 15:28:33 +08:00
Kazuhiro MUSASHI e44c14657a Customize the pagination to be within the Quotes section. 2019-04-14 15:28:20 +08:00
Kazuhiro MUSASHI 8bbe6b7223 Add the explanation for the Quotes section. 2019-04-14 15:28:09 +08:00
Kazuhiro MUSASHI 105c1017b0 Add index page for Quotes section 2019-04-14 15:28:08 +08:00
Kazuhiro MUSASHI f91dd9b965 Add Quotes section for each header files. 2019-04-14 15:28:00 +08:00
Kazuhiro MUSASHI a572fc1f3c [WIP] Create quote section.
This is to create `quote` section.
2019-04-14 00:40:41 +08:00
Kazuhiro MUSASHI aa3caf53e1
Merge pull request #7 from kazu634/shortcode-leafletjs
Add shortcodes for leafletjs
2019-04-13 23:34:45 +07:00
Kazuhiro MUSASHI d6b773f8e8 Modify contents to demonstrate `Leaflet.js` shorcodes. 2019-04-14 00:31:10 +08:00
Kazuhiro MUSASHI c1cc2467e7 Add a shorcode for TopoJSON support. 2019-04-14 00:29:54 +08:00
Kazuhiro MUSASHI 7e1fc240f3 Add `leaflet-circle.html` as a shorcode for map circle. 2019-04-14 00:29:26 +08:00
Kazuhiro MUSASHI 78fd1b8673 Add `leaflet-marker.html` as a shortcode for map marker. 2019-04-14 00:28:58 +08:00
Kazuhiro MUSASHI 9cffb5d267 Add `leaflet-map.html` as a short code for the map. 2019-04-14 00:28:23 +08:00
Kazuhiro MUSASHI 0752b8e267
Merge pull request #6 from kazu634/delete-public-directory-before-generation
Delete public directory before generation
2019-04-13 18:11:55 +07:00