initial commit
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
.DS_Store
|
20
LICENSE.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 Josh Johnson
|
||||
|
||||
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.
|
53
README.md
Normal file
|
@ -0,0 +1,53 @@
|
|||
# internet-weblog Theme for Hugo
|
||||
|
||||
internet-weblog is a minimalistic Hugo theme that offers a traditional blog mixed
|
||||
with a microblog and a photoblog. It also offers the ability to do simple link
|
||||
posts that link to a remote page. It was ported from a theme made for Octopress.
|
||||
|
||||
The theme features a customizable bio-section and flickr-based photo stream in
|
||||
it's footer, unique layouts for displaying all posts, and other
|
||||
|
||||
(screenshot)
|
||||
|
||||
## Contents
|
||||
|
||||
- [Installation](#installation)
|
||||
- [Getting started](#getting-started)
|
||||
- [Variables](#variables)
|
||||
- [Contributing](#contributing)
|
||||
- [License](#license)
|
||||
- [Annotations](#annotations)
|
||||
|
||||
## Installation
|
||||
|
||||
Inside the folder of your Hugo site run:
|
||||
|
||||
$ mkdir themes
|
||||
$ cd themes
|
||||
$ git clone https://github.com/jnjosh/internet-weblog
|
||||
|
||||
For more information read the official [setup guide](//gohugo.io/overview/installing/)
|
||||
for Hugo.
|
||||
|
||||
## Getting Started
|
||||
|
||||
TBA
|
||||
|
||||
### Variables
|
||||
|
||||
|
||||
## Contributing
|
||||
|
||||
Did you find a bug or have an ideas for new features? Feel free to use the issue tracker to let me know or make a pull request.
|
||||
|
||||
## License
|
||||
|
||||
This theme is released under MIT. For more information, please see the [License](http://jnjosh.mit-license.org).
|
||||
|
||||
## Contact
|
||||
|
||||
- [Josh Johnson](http://jnjosh.com) [@jnjosh](http://twitter.com/jnjosh)
|
||||
|
||||
---
|
||||
|
||||
_Thanks to Steve Francia for creating Hugo!_
|
4
archetypes/default.md
Normal file
|
@ -0,0 +1,4 @@
|
|||
+++
|
||||
title = ""
|
||||
description = ""
|
||||
+++
|
3
archetypes/microposts.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
+++
|
||||
date = ""
|
||||
+++
|
5
archetypes/photos.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
+++
|
||||
date = ""
|
||||
title = ""
|
||||
location = ""
|
||||
+++
|
11
layouts/404.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
{{ partial "site_header.html" . }}
|
||||
{{ partial "page_header.html" . }}
|
||||
|
||||
<main class="content">
|
||||
<article class="post">
|
||||
{{ partial "not_found.html" . }}
|
||||
</article>
|
||||
</main>
|
||||
|
||||
{{ partial "page_footer.html" . }}
|
||||
{{ partial "site_footer.html" . }}
|
9
layouts/_default/list.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ partial "site_header.html" . }}
|
||||
{{ partial "page_header.html" . }}
|
||||
|
||||
<main class="content">
|
||||
{{ partial "preview_list.html" . }}
|
||||
</main>
|
||||
|
||||
{{ partial "page_footer.html" . }}
|
||||
{{ partial "site_footer.html" . }}
|
13
layouts/_default/single.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
{{ partial "site_header.html" . }}
|
||||
{{ partial "page_header.html" . }}
|
||||
|
||||
<main class="content">
|
||||
<article class="page">
|
||||
<p>
|
||||
{{ .Content }}
|
||||
</p>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
{{ partial "page_footer.html" . }}
|
||||
{{ partial "site_footer.html" . }}
|
9
layouts/index.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ partial "site_header.html" . }}
|
||||
{{ partial "page_header.html" . }}
|
||||
|
||||
<main class="content">
|
||||
{{ partial "preview_list.html" . }}
|
||||
</main>
|
||||
|
||||
{{ partial "page_footer.html" . }}
|
||||
{{ partial "site_footer.html" . }}
|
9
layouts/microposts/single.html
Normal file
|
@ -0,0 +1,9 @@
|
|||
{{ partial "site_header.html" . }}
|
||||
{{ partial "page_header.html" . }}
|
||||
|
||||
<main class="content">
|
||||
{{ partial "preview_micropost.html" . }}
|
||||
</main>
|
||||
|
||||
{{ partial "page_footer.html" . }}
|
||||
{{ partial "site_footer.html" . }}
|
2
layouts/partials/bio.html
Normal file
|
@ -0,0 +1,2 @@
|
|||
Here you can place a short bio about yourself. Place a `bio.html` file in your
|
||||
project directory under `layout/partials`. That will override this message.
|
11
layouts/partials/custom_image_handler.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<script type="text/javascript">
|
||||
|
||||
// @summary: jquery implementation
|
||||
$(function() {
|
||||
// @summary: Use the author's flickr ID to load images from the public flickr feed
|
||||
$.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id={{ .Site.Author.FlickrID }}&format=json&jsoncallback=?", function(data) {
|
||||
iweblog.application.displayImages(data, 8);
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
1
layouts/partials/custom_javascript.html
Normal file
|
@ -0,0 +1 @@
|
|||
<!-- Create your own layouts/partials/custom_javascript.html to add javascript -->
|
1
layouts/partials/custom_stylesheets.html
Normal file
|
@ -0,0 +1 @@
|
|||
<!-- Create your own layouts/partials/custom_stylesheets.html to add custom styles -->
|
3
layouts/partials/not_found.html
Normal file
|
@ -0,0 +1,3 @@
|
|||
404. Not Found. Try again.
|
||||
|
||||
If you don't like this, create a partial called `not_found.html`.
|
22
layouts/partials/page_footer.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<footer>
|
||||
<div class="footer_text">
|
||||
<div>
|
||||
<h3>Hi, <a href="{{ .Site.Author.AboutPage }}">I'm {{ .Site.Author.FirstName }}</a></h3>
|
||||
<p>
|
||||
{{ partial "bio.html" . }}
|
||||
</p>
|
||||
</div>
|
||||
<div>
|
||||
<h3><a href="https://www.flickr.com/photos/{{ .Site.Author.FlickrID }}/">Photo Stream</a></h3>
|
||||
<div id="photos"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{{ if .Site.Params.ShowCopyright }}
|
||||
<div class="footer_copyright">
|
||||
© {{ .Now.Format "2006" }} <a href="{{ .Site.Author.AboutPage }}">{{ .Site.Author.FirstName }} {{ .Site.Author.LastName }}</a>
|
||||
{{ with .Site.Author.Location }} - Made in {{ . }}{{ end }}
|
||||
</div>
|
||||
{{ end }}
|
||||
</footer>
|
19
layouts/partials/page_header.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<header>
|
||||
<nav>
|
||||
<h1><a href="/">@{{ .Site.Author.Handle }}</a>’s {{ .Site.Title }}.</h1>
|
||||
<div class="menu">
|
||||
{{ $.Scratch.Add "sections" .Site.Params.RSSSections }}
|
||||
<ul>
|
||||
{{ range .Site.Menus.main }}
|
||||
<li>
|
||||
<a href="{{ .URL }}">{{ .Name }}</a>
|
||||
{{ if in ($.Scratch.Get "sections") .Name }}
|
||||
<a href="{{ .URL }}index.xml"><img src="/img/rss.svg" class="rss-icon" /></a>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ with .Site.Author.AboutPage }}<li><a href="{{ . }}">About</a></li>{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
13
layouts/partials/pagination.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<div class="pagination">
|
||||
{{ if .Paginator.HasPrev }}
|
||||
<a href="{{ .Paginator.Prev.URL }}">« Newer</a>
|
||||
{{ end }}
|
||||
|
||||
{{ if and .Paginator.HasNext .Paginator.HasPrev }}
|
||||
<span>|</span>
|
||||
{{ end }}
|
||||
|
||||
{{ if .Paginator.HasNext }}
|
||||
<a href="{{ .Paginator.Next.URL }}">Older »</a>
|
||||
{{ end }}
|
||||
</div>
|
19
layouts/partials/preview_list.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
{{ $paginator := .Paginate (where .Data.Pages "Type" "!=" "page") }}
|
||||
{{ range .Paginator.Pages }}
|
||||
{{ $url := replace .Permalink .Site.BaseURL "" }}
|
||||
|
||||
{{ if or (eq .Type "microposts") (eq .Type "micropost") }}
|
||||
{{ partial "preview_micropost.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if or (eq .Type "photos") (eq .Type "photo") }}
|
||||
{{ partial "preview_photo_post.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ if or (eq .Type "posts") (eq .Type "post") }}
|
||||
{{ partial "preview_post.html" . }}
|
||||
{{ end }}
|
||||
|
||||
{{ end }}
|
||||
|
||||
{{ partial "pagination.html" . }}
|
4
layouts/partials/preview_micropost.html
Normal file
|
@ -0,0 +1,4 @@
|
|||
<article class="micropost">
|
||||
{{ .Content }}
|
||||
<a href='{{ .Permalink }}'><aside class="dates">→ {{ .Date.Format "2006/01/02 3:04 PM" }}</aside></a>
|
||||
</article>
|
12
layouts/partials/preview_photo_post.html
Normal file
|
@ -0,0 +1,12 @@
|
|||
<article class="photo">
|
||||
|
||||
<div class="preview">
|
||||
<div class="title">
|
||||
<span><a href="{{ .Permalink }}">{{ .Title }}</a></span>
|
||||
</div>
|
||||
<div class="content">
|
||||
<a href="{{ .Permalink }}">{{ .Summary }}</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</article>
|
32
layouts/partials/preview_post.html
Normal file
|
@ -0,0 +1,32 @@
|
|||
<article class="post">
|
||||
{{ if (not (isset .Params "externalurl")) }}
|
||||
<h2><a rel="full-article" href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
{{ else }}
|
||||
<h2><a rel="remote-article" href="{{ .Params.externalurl }}">→ {{ .Title }}</a> <a href="{{ .Permalink }}">∞</a></h2>
|
||||
{{ end }}
|
||||
|
||||
<div class="postmeta">Posted on <time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2, 2006" }}</time>
|
||||
{{ if (isset .Params "categories") }}
|
||||
in
|
||||
<span class="categories">
|
||||
{{ range $i, $v := .Params.categories }}
|
||||
<a class="category" href="/categories/{{ $v | urlize }}">{{ $v }}</a>{{ if ne (len $.Params.categories) (add $i 1) }}, {{ end }}
|
||||
{{ end }}
|
||||
</span>
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
<p>
|
||||
{{ if (not (isset .Params "externalurl")) }}
|
||||
{{ .Summary }}
|
||||
{{ else }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
</p>
|
||||
|
||||
{{ if .Truncated }}
|
||||
{{ if (not (isset .Params "externalurl")) }}
|
||||
<a class="continue" rel="full-article" href="{{ .Permalink }}">Continue Reading »</a>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</article>
|
8
layouts/partials/site_footer.html
Normal file
|
@ -0,0 +1,8 @@
|
|||
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/2.2.0/jquery.min.js"></script>
|
||||
<script src="/js/lightgallery-all.min.js"></script>
|
||||
<script src="/js/weblog.js" charset="utf-8"></script>
|
||||
{{ partial "custom_javascript.html" . }}
|
||||
{{ partial "custom_image_handler.html" . }}
|
||||
{{ template "_internal/google_analytics.html" . }}
|
||||
</body>
|
||||
</html>
|
22
layouts/partials/site_header.html
Normal file
|
@ -0,0 +1,22 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="{{ with .Site.LanguageCode }}{{ . }}{{ else }}en-US{{ end }}">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="author" content="{{ with .Site.Author.FirstName }}{{ . }}{{ end }}">
|
||||
<meta name="description" content="{{ with .Site.Params.Description }}{{ . }}{{ end }}">
|
||||
{{ .Hugo.Generator }}
|
||||
|
||||
{{ $.Scratch.Add "title" .Site.Title }}
|
||||
<title>{{ with .Title }}{{ if ne . ($.Scratch.Get "title") }}{{ . }} · {{ end }}{{ end }}{{ .Site.Title }}</title>
|
||||
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/weblog.css" media="screen" charset="utf-8" />
|
||||
<link rel="stylesheet" href="{{ .Site.BaseURL }}css/lightgallery.min.css" type="text/css" />
|
||||
{{ partial "custom_stylesheets.html" . }}
|
||||
|
||||
{{ if .Site.Params.RSSEnabled }}
|
||||
<link href="{{ .Site.RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
|
||||
{{ end }}
|
||||
</head>
|
||||
<body class="site">
|
21
layouts/photos/single.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
{{ partial "site_header.html" . }}
|
||||
{{ partial "page_header.html" . }}
|
||||
|
||||
<main class="content">
|
||||
<article class="post">
|
||||
<h2><a rel="full-article" href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
|
||||
<div class="postmeta">
|
||||
{{ with .Params.location }}Photos taken in {{ . }} on {{ end }}
|
||||
<time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2, 2006" }}</time>
|
||||
{{ with .Params.camera }} with {{ . }}{{ end }}
|
||||
</div>
|
||||
|
||||
<p>
|
||||
{{ .Content }}
|
||||
</p>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
{{ partial "page_footer.html" . }}
|
||||
{{ partial "site_footer.html" . }}
|
30
layouts/posts/single.html
Normal file
|
@ -0,0 +1,30 @@
|
|||
{{ partial "site_header.html" . }}
|
||||
{{ partial "page_header.html" . }}
|
||||
|
||||
<main class="content">
|
||||
|
||||
<article class="post">
|
||||
{{ if (not (isset .Params "externalurl")) }}
|
||||
<h2><a rel="full-article" href="{{ .Permalink }}">{{ .Title }}</a></h2>
|
||||
{{ else }}
|
||||
<h2><a rel="remote-article" href="{{ .Params.externalurl }}">→ {{ .Title }}</a> <a href="{{ .Permalink }}">∞</a></h2>
|
||||
{{ end }}
|
||||
|
||||
<div class="postmeta">Posted on <time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2, 2006" }}</time> in
|
||||
<span class="categories">
|
||||
{{ range $i, $v := .Params.categories }}
|
||||
<a class="category" href="/categories/{{ $v | urlize }}">{{ $v }}</a>{{ if ne (len $.Params.categories) (add $i 1) }}, {{ end }}
|
||||
{{ end }}
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<p>
|
||||
{{ .Content }}
|
||||
</p>
|
||||
</article>
|
||||
|
||||
|
||||
</main>
|
||||
|
||||
{{ partial "page_footer.html" . }}
|
||||
{{ partial "site_footer.html" . }}
|
24
layouts/rss.xml
Normal file
|
@ -0,0 +1,24 @@
|
|||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
|
||||
<channel>
|
||||
<title>{{ .Site.Title }}{{ with .Title }} - {{ .}}{{ end }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<description>All entries {{ with .Title }}in {{.}} {{ end }}on {{ .Site.Title }}</description>
|
||||
<generator>Hugo -- gohugo.io</generator>
|
||||
{{ with .Site.LanguageCode }}<language>{{.}}</language>{{end}}
|
||||
{{ with .Site.Copyright }}<copyright>{{.}}</copyright>{{end}}
|
||||
{{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
|
||||
<atom:link href="{{.URL}}" rel="self" type="application/rss+xml" />
|
||||
{{ range .Data.Pages }}
|
||||
{{ if ne .Type "page" }}
|
||||
<item>
|
||||
<title>{{ .Title }}</title>
|
||||
<link>{{ .Permalink }}</link>
|
||||
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
|
||||
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
|
||||
<guid>{{ .Permalink }}</guid>
|
||||
<description>{{ .Content | html }}</description>
|
||||
</item>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</channel>
|
||||
</rss>
|
31
layouts/section/posts.html
Normal file
|
@ -0,0 +1,31 @@
|
|||
{{ partial "site_header.html" . }}
|
||||
{{ partial "page_header.html" . }}
|
||||
|
||||
<main class="content">
|
||||
<article class="post-groups">
|
||||
<div class="post-group">
|
||||
{{ range .Data.Pages.GroupByDate "2006" }}
|
||||
<div class="post-group-item">
|
||||
<h3>{{ .Key }}</h3>
|
||||
<ul>
|
||||
{{ range .Pages }}
|
||||
<li>
|
||||
{{ if (not (isset .Params "externalurl")) }}
|
||||
<a rel="full-article" href="{{ .Permalink }}">{{ .Title }}</a>
|
||||
on <time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2" }}</time>
|
||||
{{ else }}
|
||||
<a rel="remote-article" href="{{ .Params.externalurl }}">{{ .Title }} →</a>
|
||||
on
|
||||
<a href="{{ .Permalink }}"><time datetime="{{ .Date }}" pubdate="">{{ .Date.Format "January 2" }}</time></a>
|
||||
{{ end }}
|
||||
</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
{{ end }}
|
||||
</div>
|
||||
</article>
|
||||
</main>
|
||||
|
||||
{{ partial "page_footer.html" . }}
|
||||
{{ partial "site_footer.html" . }}
|
1
static/css/lightgallery.min.css
vendored
Executable file
337
static/css/weblog.css
Normal file
|
@ -0,0 +1,337 @@
|
|||
|
||||
/* Page */
|
||||
|
||||
body {
|
||||
font: 16px/24px "Avenir Next", "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
line-height: 24px;
|
||||
}
|
||||
|
||||
a[href] {
|
||||
color: #476286;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4 {
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.site {
|
||||
display: flex;
|
||||
min-height: 100vh;
|
||||
flex-direction: column;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.content {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
/* Header */
|
||||
|
||||
header {
|
||||
padding: 40px 0 0 0;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
text-align: left;
|
||||
vertical-align: middle;
|
||||
font-size: 30px;
|
||||
line-height: 32px;
|
||||
margin: 0 auto;
|
||||
padding: 10px 10px 0 10px;
|
||||
max-width: 720px;
|
||||
color: #5B636E;
|
||||
}
|
||||
|
||||
/* Navigation */
|
||||
|
||||
nav {
|
||||
margin: auto;
|
||||
max-width: 720px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
list-style-type: none;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
nav ul > li {
|
||||
background-color: #fafafa;
|
||||
display: inline;
|
||||
float: left;
|
||||
padding: 10px;
|
||||
text-align: center;
|
||||
text-transform: uppercase;
|
||||
font-size: 9pt;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.rss-icon {
|
||||
height: 14px;
|
||||
padding-left: 5px;
|
||||
}
|
||||
|
||||
.pagination {
|
||||
text-align: center;
|
||||
margin: 30px auto;
|
||||
}
|
||||
|
||||
.pagination span {
|
||||
color: #dddddd;
|
||||
}
|
||||
|
||||
/* Articles */
|
||||
|
||||
.micropost {
|
||||
background-color: #F0F2F5;
|
||||
margin: 40px auto;
|
||||
padding: 10px;
|
||||
max-width: 780px;
|
||||
}
|
||||
|
||||
.post, .page, .post-groups {
|
||||
margin: 40px auto;
|
||||
max-width: 780px;
|
||||
}
|
||||
|
||||
.micropost > p, .post > p, .page > p {
|
||||
color: #666666;
|
||||
font-size: 18px;
|
||||
line-height: 28px;
|
||||
margin: 0;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
.post > p {
|
||||
margin: 20px auto;
|
||||
}
|
||||
|
||||
.micropost > a {
|
||||
font-size: 12px;
|
||||
color: #888888;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.post h2 {
|
||||
margin: 0;
|
||||
line-height: 32px;
|
||||
}
|
||||
|
||||
article.photo {
|
||||
border-radius: 5px;
|
||||
margin: 40px auto;
|
||||
max-width: 780px;
|
||||
overflow: hidden;
|
||||
height: 300px;
|
||||
}
|
||||
|
||||
article.photo div {
|
||||
color: #ffffff;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
text-align: left;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
article.photo .title {
|
||||
background-color: #476286;
|
||||
font-size: 18pt;
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
article.photo a {
|
||||
color: #ffffff;
|
||||
display: block;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
article.photo p {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
article.photo img {
|
||||
-webkit-transition: -webkit-transform 4s ease 0s;
|
||||
-moz-transition: -moz-transform 4s ease 0s;
|
||||
-o-transition: -o-transform 4s ease 0s;
|
||||
transition: transform 4s ease 0s;
|
||||
-webkit-transform: scale3d(1, 1, 1);
|
||||
transform: scale3d(1, 1, 1);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
article.photo img:hover {
|
||||
-webkit-transform: scale3d(1.1, 1.1, 1.1) rotate(-2deg);
|
||||
transform: scale3d(1.1, 1.1, 1.1) rotate(-2deg);
|
||||
}
|
||||
|
||||
article .postmeta {
|
||||
line-height: 22px;
|
||||
color: #999999;
|
||||
margin: 0 auto;
|
||||
padding: 5px 0 0 0;
|
||||
}
|
||||
|
||||
.post-group {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.post-group-item {
|
||||
flex: auto;
|
||||
width: 40%;
|
||||
margin: 5px;
|
||||
font-size: 10pt;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.post-group-item:hover {
|
||||
background-color: #f6f6f6;
|
||||
}
|
||||
|
||||
.post-group-item h3 {
|
||||
color: #999999;
|
||||
font-size: 16pt;
|
||||
margin: 0;
|
||||
padding: 6px 0 0 6px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
.post-group-item ul {
|
||||
list-style-type: none;
|
||||
margin: 0;
|
||||
padding: 0 0 0 6px;
|
||||
}
|
||||
|
||||
/* Footer */
|
||||
|
||||
footer {
|
||||
background-color: #545454;
|
||||
color: #ffffff;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.footer_text {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
margin: auto;
|
||||
width: 720px;
|
||||
}
|
||||
|
||||
.footer_text h3 {
|
||||
color: #cccccc;
|
||||
}
|
||||
|
||||
.footer_text a {
|
||||
color: #cccccc;
|
||||
}
|
||||
|
||||
.footer_text > div {
|
||||
flex: 1;
|
||||
margin: 10px;
|
||||
}
|
||||
|
||||
#photos {
|
||||
display: flex;
|
||||
flex-flow: row wrap;
|
||||
}
|
||||
|
||||
.photo-item {
|
||||
display: block;
|
||||
height: 75px;
|
||||
margin: 1px;
|
||||
overflow: hidden;
|
||||
padding: 0;
|
||||
width: 75px;
|
||||
}
|
||||
|
||||
.photo-item img {
|
||||
flex: auto;
|
||||
-webkit-transition: -webkit-transform 0.15s ease 0s;
|
||||
-moz-transition: -moz-transform 0.15s ease 0s;
|
||||
-o-transition: -o-transform 0.15s ease 0s;
|
||||
transition: transform 0.15s ease 0s;
|
||||
-webkit-transform: scale3d(1, 1, 1);
|
||||
transform: scale3d(1, 1, 1);
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
opacity: 0.6;
|
||||
}
|
||||
|
||||
.photo-item img:hover {
|
||||
-webkit-transform: scale3d(1.05, 1.05, 1.05);
|
||||
transform: scale3d(1.05, 1.05, 1.05);
|
||||
opacity: 1.0;
|
||||
}
|
||||
|
||||
.footer_copyright {
|
||||
color: #999999;
|
||||
font: 12px/20px "Avenir Next", "Helvetica Neue", Arial, Helvetica, sans-serif;
|
||||
margin: auto;
|
||||
padding: 10px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.footer_copyright a {
|
||||
color: #cccccc;
|
||||
}
|
||||
|
||||
@media screen
|
||||
and (max-width: 780px) {
|
||||
|
||||
.footer_text {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.footer_text > div {
|
||||
flex: auto;
|
||||
width: 100%;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
#photos {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
article {
|
||||
margin: 0;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
header {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
header h1 {
|
||||
font-size: 22px;
|
||||
line-height: 30px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
nav ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
nav ul > li {
|
||||
background-color: #fafafa;
|
||||
display:list-item;
|
||||
float: none;
|
||||
margin: 0;
|
||||
padding: 10px;
|
||||
border-bottom: #f2f2f2 1px solid;
|
||||
}
|
||||
|
||||
nav ul:first-child {
|
||||
border-top: #f2f2f2 1px solid;
|
||||
}
|
||||
|
||||
.post-group-item {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
BIN
static/fonts/lg.eot
Executable file
41
static/fonts/lg.svg
Executable file
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" >
|
||||
<svg xmlns="http://www.w3.org/2000/svg">
|
||||
<metadata>
|
||||
<json>
|
||||
<![CDATA[
|
||||
{
|
||||
"fontFamily": "lg",
|
||||
"majorVersion": 1,
|
||||
"minorVersion": 0,
|
||||
"fontURL": "https://github.com/sachinchoolur/lightGallery",
|
||||
"copyright": "sachin",
|
||||
"license": "MLT",
|
||||
"licenseURL": "http://opensource.org/licenses/MIT",
|
||||
"version": "Version 1.0",
|
||||
"fontId": "lg",
|
||||
"psName": "lg",
|
||||
"subFamily": "Regular",
|
||||
"fullName": "lg",
|
||||
"description": "Font generated by IcoMoon."
|
||||
}
|
||||
]]>
|
||||
</json>
|
||||
</metadata>
|
||||
<defs>
|
||||
<font id="lg" horiz-adv-x="1024">
|
||||
<font-face units-per-em="1024" ascent="960" descent="-64" />
|
||||
<missing-glyph horiz-adv-x="1024" />
|
||||
<glyph unicode=" " horiz-adv-x="512" d="" />
|
||||
<glyph unicode="" glyph-name="pause_circle_outline" data-tags="pause_circle_outline" d="M554 256.667v340h86v-340h-86zM512 84.667q140 0 241 101t101 241-101 241-241 101-241-101-101-241 101-241 241-101zM512 852.667q176 0 301-125t125-301-125-301-301-125-301 125-125 301 125 301 301 125zM384 256.667v340h86v-340h-86z" />
|
||||
<glyph unicode="" glyph-name="play_circle_outline" data-tags="play_circle_outline" d="M512 84.667q140 0 241 101t101 241-101 241-241 101-241-101-101-241 101-241 241-101zM512 852.667q176 0 301-125t125-301-125-301-301-125-301 125-125 301 125 301 301 125zM426 234.667v384l256-192z" />
|
||||
<glyph unicode="" glyph-name="clear" data-tags="clear" d="M810 664.667l-238-238 238-238-60-60-238 238-238-238-60 60 238 238-238 238 60 60 238-238 238 238z" />
|
||||
<glyph unicode="" glyph-name="arrow-left" data-tags="arrow-left" d="M426.667 768q17.667 0 30.167-12.5t12.5-30.167q0-18-12.667-30.333l-225.667-225.667h665q17.667 0 30.167-12.5t12.5-30.167-12.5-30.167-30.167-12.5h-665l225.667-225.667q12.667-12.333 12.667-30.333 0-17.667-12.5-30.167t-30.167-12.5q-18 0-30.333 12.333l-298.667 298.667q-12.333 13-12.333 30.333t12.333 30.333l298.667 298.667q12.667 12.333 30.333 12.333z" />
|
||||
<glyph unicode="" glyph-name="arrow-right" data-tags="arrow-right" d="M597.333 768q18 0 30.333-12.333l298.667-298.667q12.333-12.333 12.333-30.333t-12.333-30.333l-298.667-298.667q-12.333-12.333-30.333-12.333-18.333 0-30.5 12.167t-12.167 30.5q0 18 12.333 30.333l226 225.667h-665q-17.667 0-30.167 12.5t-12.5 30.167 12.5 30.167 30.167 12.5h665l-226 225.667q-12.333 12.333-12.333 30.333 0 18.333 12.167 30.5t30.5 12.167z" />
|
||||
<glyph unicode="" glyph-name="vertical_align_bottom" data-tags="vertical_align_bottom" d="M170 128.667h684v-86h-684v86zM682 384.667l-170-172-170 172h128v426h84v-426h128z" />
|
||||
<glyph unicode="" glyph-name="apps" data-tags="apps" d="M682 84.667v172h172v-172h-172zM682 340.667v172h172v-172h-172zM426 596.667v172h172v-172h-172zM682 768.667h172v-172h-172v172zM426 340.667v172h172v-172h-172zM170 340.667v172h172v-172h-172zM170 84.667v172h172v-172h-172zM426 84.667v172h172v-172h-172zM170 596.667v172h172v-172h-172z" />
|
||||
<glyph unicode="" glyph-name="fullscreen" data-tags="fullscreen" d="M598 724.667h212v-212h-84v128h-128v84zM726 212.667v128h84v-212h-212v84h128zM214 512.667v212h212v-84h-128v-128h-84zM298 340.667v-128h128v-84h-212v212h84z" />
|
||||
<glyph unicode="" glyph-name="fullscreen_exit" data-tags="fullscreen_exit" d="M682 596.667h128v-84h-212v212h84v-128zM598 128.667v212h212v-84h-128v-128h-84zM342 596.667v128h84v-212h-212v84h128zM214 256.667v84h212v-212h-84v128h-128z" />
|
||||
<glyph unicode="" glyph-name="zoom_in" data-tags="zoom_in" d="M512 512.667h-86v-86h-42v86h-86v42h86v86h42v-86h86v-42zM406 340.667q80 0 136 56t56 136-56 136-136 56-136-56-56-136 56-136 136-56zM662 340.667l212-212-64-64-212 212v34l-12 12q-76-66-180-66-116 0-197 80t-81 196 81 197 197 81 196-81 80-197q0-104-66-180l12-12h34z" />
|
||||
<glyph unicode="" glyph-name="zoom_out" data-tags="zoom_out" d="M298 554.667h214v-42h-214v42zM406 340.667q80 0 136 56t56 136-56 136-136 56-136-56-56-136 56-136 136-56zM662 340.667l212-212-64-64-212 212v34l-12 12q-76-66-180-66-116 0-197 80t-81 196 81 197 197 81 196-81 80-197q0-104-66-180l12-12h34z" />
|
||||
</font></defs></svg>
|
After Width: | Height: | Size: 4 KiB |
BIN
static/fonts/lg.ttf
Executable file
BIN
static/fonts/lg.woff
Executable file
BIN
static/img/loading.gif
Executable file
After Width: | Height: | Size: 4.1 KiB |
BIN
static/img/location.png
Normal file
After Width: | Height: | Size: 976 B |
BIN
static/img/rss.png
Normal file
After Width: | Height: | Size: 1.9 KiB |
15
static/img/rss.svg
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<svg width="72px" height="40px" viewBox="0 0 72 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">
|
||||
<!-- Generator: Sketch 3.4.4 (17249) - http://www.bohemiancoding.com/sketch -->
|
||||
<title>Artboard 1</title>
|
||||
<desc>Created with Sketch.</desc>
|
||||
<defs></defs>
|
||||
<g id="Page-2" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
|
||||
<g id="Artboard-1" sketch:type="MSArtboardGroup" fill="#CF8100">
|
||||
<g id="RSS-Icon" sketch:type="MSLayerGroup">
|
||||
<path d="M62.405,0.405 L9.713,0.405 C4.402,0.405 0.096,4.712 0.096,10.023 L0.096,30.062 C0.096,35.374 4.402,39.681 9.713,39.681 L62.405,39.681 C67.716,39.681 72.022,35.374 72.022,30.062 L72.022,10.023 C72.022,4.712 67.716,0.405 62.405,0.405 L62.405,0.405 Z M23.908,30.698 C23.327,28.854 22.71,26.586 22.226,24.484 C21.869,22.931 20.965,22.152 19.574,22.152 C18.732,22.152 18.377,22.186 17.21,22.252 L17.21,30.698 L12.874,30.698 L12.874,9.53 C15.011,9.337 17.276,9.208 20.058,9.208 C24.621,9.208 27.501,11.797 27.501,14.743 C27.501,17.266 25.787,18.982 23.618,19.889 L23.618,19.951 C25.14,20.729 25.852,21.506 26.628,24.484 C27.21,26.781 27.825,28.691 28.538,30.698 L23.908,30.698 L23.908,30.698 Z M35.592,31.021 C33.878,31.021 31.676,30.762 30.092,30.276 L30.577,26.718 C32.324,27.234 33.718,27.461 35.788,27.461 C37.794,27.461 38.894,26.426 38.894,25 C38.894,23.835 38.31,22.931 35.983,21.765 C32,19.758 30.092,18.01 30.092,14.968 C30.092,11.538 32.745,9.208 37.438,9.208 C39.056,9.208 40.868,9.466 42.13,9.985 L41.644,13.544 C40.253,13.026 38.636,12.77 37.211,12.77 C35.692,12.77 34.752,13.578 34.752,14.58 C34.752,15.973 35.204,16.523 37.923,17.881 C41.905,19.889 43.554,21.895 43.554,24.645 C43.554,28.592 39.962,31.021 35.592,31.021 L35.592,31.021 Z M51.32,31.021 C49.604,31.021 47.403,30.762 45.82,30.276 L46.307,26.718 C48.053,27.234 49.446,27.461 51.517,27.461 C53.522,27.461 54.622,26.426 54.622,25 C54.622,23.835 54.041,22.931 51.712,21.765 C47.729,19.758 45.82,18.01 45.82,14.968 C45.82,11.538 48.474,9.208 53.165,9.208 C54.786,9.208 56.595,9.466 57.859,9.985 L57.373,13.544 C55.979,13.026 54.362,12.77 52.938,12.77 C51.418,12.77 50.479,13.578 50.479,14.58 C50.479,15.973 50.933,16.523 53.653,17.881 C57.632,19.889 59.283,21.895 59.283,24.645 C59.283,28.592 55.69,31.021 51.32,31.021 L51.32,31.021 Z" id="Fill-419" sketch:type="MSShapeGroup"></path>
|
||||
<path d="M19.669,12.77 C18.861,12.77 18.184,12.799 17.21,12.863 L17.21,18.69 C18.148,18.754 18.569,18.786 19.507,18.786 C21.611,18.786 22.843,17.525 22.843,15.647 C22.843,13.771 21.774,12.77 19.669,12.77" id="Fill-420" sketch:type="MSShapeGroup"></path>
|
||||
</g>
|
||||
</g>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 2.8 KiB |
BIN
static/img/rss@2x.png
Normal file
After Width: | Height: | Size: 2.1 KiB |
BIN
static/img/zoom.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
5
static/js/lightgallery-all.min.js
vendored
Executable file
27
static/js/weblog.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
var iweblog = {};
|
||||
iweblog.application = function() {
|
||||
|
||||
// @sumamary: format flickr results for display
|
||||
function _display_images(data, count) {
|
||||
var htmlString = "", cnt = 0;
|
||||
|
||||
$.each(data.items, function(i,item){
|
||||
if (cnt == count) return;
|
||||
|
||||
var image = item.media.m;
|
||||
var smallImage = image.replace("_m.jpg", "_s.jpg");
|
||||
var largeImage = image.replace("_m.jpg", ".jpg");
|
||||
htmlString += "<a class=\"photo-item\" href=\"" + largeImage + "\">";
|
||||
htmlString += "<img src=\"" + smallImage + "\" />";
|
||||
htmlString += "</a>";
|
||||
cnt++;
|
||||
});
|
||||
|
||||
$('#photos').html(htmlString);
|
||||
$('#photos').lightGallery();
|
||||
}
|
||||
|
||||
return {
|
||||
displayImages: function(data, count) { _display_images(data, count); }
|
||||
}
|
||||
}();
|
13
theme.toml
Normal file
|
@ -0,0 +1,13 @@
|
|||
name = "Internet Weblog"
|
||||
license = "MIT"
|
||||
licenselink = "https://github.com/jnjosh/internet-weblog/blob/master/LICENSE.md"
|
||||
description = "A personal, minimal blog theme for Hugo."
|
||||
homepage = "http://jnjosh.com"
|
||||
tags = ["blog", "personal", "minimal", "microblog", "photoblog", "linkblog"]
|
||||
features = ["Microblog", "Photoblog", "Blog", "Flickr Photo Stream", "Personal Blog", "Link Blog"]
|
||||
version = 1.0
|
||||
min_version = 0.14
|
||||
|
||||
[author]
|
||||
name = "Josh Johnson"
|
||||
homepage = "http://jnjosh.com"
|