Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 6efc1fa0096996ef6c705495d3418b378bcb52aa @yoshiharuyamashita committed Jan 17, 2016
@@ -0,0 +1,20 @@
+The MIT License (MIT)
+
+Copyright (c) 2016 YOUR_NAME_HERE
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of
+this software and associated documentation files (the "Software"), to deal in
+the Software without restriction, including without limitation the rights to
+use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
+the Software, and to permit persons to whom the Software is furnished to do so,
+subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
+FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
+COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
+IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,7 @@
++++
+draft = true
+tags = []
+topics = []
+sidemenu = ""
+description = ""
++++
No changes.
@@ -0,0 +1 @@
+<li>{{ .Date.Format "02 Jan 2006" }} - <a href="{{ .Permalink }}">{{ .Title }}</a></li>
@@ -0,0 +1,11 @@
+{{ partial "header.html" . }}
+
+<div class="header">
+ <h1>{{ .Title }}</h1>
+ <h2>{{ .Description }}</h2>
+</div>
+<div class="content">
+ {{ .Content }}
+</div>
+
+{{ partial "footer.html" . }}
@@ -0,0 +1,16 @@
+<article>
+ <header>
+ <h2><a href="{{ .Permalink }}">{{ .Title }}</a></h2>
+ <time><i class="fa fa-calendar fa-fw"></i>&nbsp;{{ .Date.Format "02 Jan 2006, 15:04" }}</time>
+ </header>
+
+ <p>
+ {{ .Summary }}
+ </p>
+
+ {{ if .Truncated }}
+ <footer>
+ <a href="{{ .RelPermalink }}">Read more →</a>
+ </footer>
+ {{ end }}
+</article>
@@ -0,0 +1,14 @@
+{{ partial "header.html" . }}
+
+<div class="header">
+ <h1>{{ .Title }}</h1>
+ <h2>{{ .Description }}</h2>
+</div>
+
+<div class="content">
+ {{ range .Paginator.Pages }}
+ {{ .Render "summary"}}
+ {{ end }}
+</div>
+
+{{ partial "footer.html" . }}
@@ -0,0 +1,17 @@
+{{ partial "header.html" . }}
+
+<div class="header">
+ <h1>{{ .Title }}</h1>
+</div>
+<div class="content">
+ {{ range .Data.Pages.GroupByDate "2006" }}
+ <h2>{{ .Key }}</h2>
+ <ul>
+ {{ range .Pages }}
+ {{ .Render "li"}}
+ {{ end }}
+ </ul>
+ {{ end }}
+</div>
+
+{{ partial "footer.html" . }}
@@ -0,0 +1,17 @@
+<div id="disqus_thread"></div>
+<script type="text/javascript">
+
+(function() {
+ // Don't ever inject Disqus on localhost--it creates unwanted
+ // discussions from 'localhost:1313' on your Disqus account...
+ if (window.location.hostname == "localhost")
+ return;
+
+ var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
+ var disqus_shortname = '{{ .Site.Params.disqusShortname }}';
+ dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
+ (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
+})();
+</script>
+<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript">comments powered by Disqus.</a></noscript>
+<a href="http://disqus.com/" class="dsq-brlink">comments powered by <span class="logo-disqus">Disqus</span></a>
@@ -0,0 +1,8 @@
+</div>
+</div>
+<script src="{{ .Site.BaseURL }}/js/ui.js"></script>
+
+{{ partial "google_analytics.html" . }}
+
+</body>
+</html>
@@ -0,0 +1,12 @@
+{{ with .Site.Params.googleAnalytics }}
+<script>
+ (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', '{{ . }}', 'auto');
+ ga('send', 'pageview');
+
+</script>
+{{ end }}
@@ -0,0 +1,33 @@
+<head>
+ <meta http-equiv="content-type" content="text/html; charset=utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="description" content="{{ if .IsNode }}{{ with .Site.Params.description }}{{ . }}{{ end }}{{ else }}{{ with .Description }}{{ . }}{{ end }}{{ end }}">
+ {{.Hugo.Generator}}
+
+ <title>{{ .Title }} &middot; {{ .Site.Title }}</title>
+
+ <!-- CSS -->
+ <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/pure-min.css">
+
+ <!--[if lte IE 8]>
+ <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-old-ie-min.css">
+ <![endif]-->
+ <!--[if gt IE 8]><!-->
+ <link rel="stylesheet" href="http://yui.yahooapis.com/pure/0.6.0/grids-responsive-min.css">
+ <!--<![endif]-->
+
+ <!--[if lte IE 8]>
+ <link rel="stylesheet" href="/css/side-menu-old-ie.css">
+ <![endif]-->
+ <!--[if gt IE 8]><!-->
+ <link rel="stylesheet" href="/css/side-menu.css">
+ <!--<![endif]-->
+
+ <link rel="stylesheet" href="/css/blackburn.css">
+
+ <!-- Icons -->
+ <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet">
+
+ <!-- RSS -->
+ <link rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" href="{{ .Site.BaseURL }}/index.xml" />
+</head>
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="en">
+
+{{ partial "head.html" . }}
+
+<body>
+<div id="layout">
+
+ {{ partial "sidemenu.html" . }}
+
+ <div id="main">
@@ -0,0 +1,21 @@
+<div class="post-meta">
+ <time><i class="fa fa-calendar fa-fw"></i>&nbsp;{{ .Date.Format "02 Jan 2006, 15:04" }}</time>
+
+ {{ $baseUrl := .Site.BaseURL }}
+
+ {{ if isset .Params "topics" }}
+ <br>
+ <i class="fa fa-folder fa-fw"></i>
+ {{ range .Params.topics }}
+ <a href="{{ $baseUrl }}/topics/{{ . | urlize }}">{{ . }}</a>
+ {{ end }}
+ {{ end }}
+
+ {{ if isset .Params "tags" }}
+ <br>
+ <i class="fa fa-tags fa-fw"></i>
+ {{ range .Params.tags }}
+ <a href="{{ $baseUrl }}/tags/{{ . | urlize }}">{{ . }}</a>
+ {{ end }}
+ {{ end }}
+</div>
@@ -0,0 +1,51 @@
+<!-- Menu toggle -->
+<a href="#menu" id="menuLink" class="menu-link">
+ <!-- Hamburger icon -->
+ <span></span>
+</a>
+<div id="menu">
+ <div class="pure-menu">
+ <ul class="pure-menu-list">
+ <li class="pure-menu-item">
+ <a class="pure-menu-link" href="/">Home</a>
+ </li>
+ <li class="pure-menu-item">
+ <a class="pure-menu-link" href="/post">Posts</a>
+ </li>
+
+ {{ range .Site.Pages.ByWeight }}
+ {{ if isset .Params "sidemenu" }}
+ <li class="pure-menu-item">
+ <a class="pure-menu-link" href="{{ .Permalink }}">{{ .Title }}</a>
+ </li>
+ {{ end }}
+ {{ end }}
+ </ul>
+ </div>
+ <div class="pure-menu">
+ <ul class="pure-menu-list">
+ <li class="pure-menu-item">
+ <a class="pure-menu-link" href="{{ .Site.BaseURL }}/index.xml"><i class="fa fa-rss fa-fw"></i>&nbsp;RSS</a>
+ </li>
+ {{ with .Site.Params.githubName }}
+ <li class="pure-menu-item">
+ <a class="pure-menu-link" href="https://github.com/{{ . }}"><i class="fa fa-github-alt fa-fw"></i>&nbsp;Github</a>
+ </li>
+ {{ end }}
+ {{ with .Site.Params.twitterName }}
+ <li class="pure-menu-item">
+ <a class="pure-menu-link" href="https://twitter.com/{{ . }}"><i class="fa fa-twitter fa-fw"></i>&nbsp;Twitter</a>
+ </li>
+ {{ end }}
+ </ul>
+ </div>
+ <div class="pure-g">
+ <div class="small-print pure-u-1 pure-u-md-1-1">
+ <small>{{ .Site.Copyright }}</small>
+ </div>
+ <div class="small-print pure-u-1 pure-u-md-1-1">
+ <small>Built with&nbsp;<a href="http://hugo.spf13.com/" target="_blank">Hugo</a></small>
+ <small>Theme&nbsp;<a href="https://github.com/yoshiharuyamashita" target="_blank">Blackburn</a></small>
+ </div>
+ </div>
+</div>
@@ -0,0 +1,31 @@
+{{ partial "header.html" . }}
+
+<div class="header">
+ <h1>{{ .Title }}</h1>
+ <h2>{{ .Description }}</h2>
+</div>
+<div class="content">
+
+ {{ partial "post_meta.html" . }}
+
+ {{ .Content }}
+
+ <div class="pagination pure-g">
+ <div class="pure-u-1 pure-u-md-1-2">
+ <nav>
+ {{ if .Prev }}
+ <a href="{{ .Prev.Permalink }}"><i class="fa fa-arrow-circle-left fa-fw fa-lg"></i>&nbsp;{{ .Prev.Title }}</a>
+ {{ end }}
+ </nav>
+ </div>
+ <div class="pure-u-1 pure-u-md-1-2">
+ <nav>
+ {{ if .Next }}
+ <a href="{{ .Next.Permalink }}">{{ .Next.Title }}&nbsp;<i class="fa fa-arrow-circle-right fa-fw fa-lg"></i></a>
+ {{ end }}
+ </nav>
+ </div>
+ </div>
+</div>
+
+{{ partial "footer.html" . }}
@@ -0,0 +1,13 @@
+{{ partial "header.html" . }}
+
+<div class="header">
+ <h1>{{ .Title }}</h1>
+</div>
+
+<div class="content">
+ {{ range .Data.Pages }}
+ {{ .Render "summary"}}
+ {{ end }}
+</div>
+
+{{ partial "footer.html" . }}
@@ -0,0 +1,13 @@
+{{ partial "header.html" . }}
+
+<div class="header">
+ <h1>{{ .Title }}</h1>
+</div>
+
+<div class="content">
+ {{ range .Data.Pages }}
+ {{ .Render "summary"}}
+ {{ end }}
+</div>
+
+{{ partial "footer.html" . }}
@@ -0,0 +1,30 @@
+a {
+ color: #3b8bba;
+ text-decoration: none;
+}
+a:hover,
+a:focus {
+ text-decoration: underline;
+}
+a:visited {
+ color: #265778;
+}
+
+.small-print {
+ font-size: 0.8em;
+ margin: 0.6em;
+}
+
+.post-meta {
+ margin: 1em 0;
+ font-size: 90%;
+}
+
+article > footer {
+ text-align: right;
+}
+
+.pagination {
+ border-top: 1px solid #eee;
+ margin-top: 2em;
+}
Oops, something went wrong.

0 comments on commit 6efc1fa

Please sign in to comment.