Switch back to theme submodule

instant.page is not enough incentive to fork and make updating the theme
a chore.

This reverts commit ead9a4ee18.
This commit is contained in:
Harsh Shandilya 2019-05-30 03:51:27 +05:30
parent ead9a4ee18
commit e8dfa28f90
65 changed files with 4 additions and 4413 deletions

3
.gitmodules vendored Normal file
View File

@ -0,0 +1,3 @@
[submodule "themes/hugo-coder-portfolio"]
path = themes/hugo-coder-portfolio
url = https://github.com/naro143/hugo-coder-portfolio

@ -0,0 +1 @@
Subproject commit 2395d309a491a33f1b7bb72c6872cb7a6ac8bd12

View File

@ -1,29 +0,0 @@
# http://editorconfig.org
# this file is the top-most editorconfig file
root = true
# all files
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
# markdown files
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
# configuration files
[*.toml]
indent_size = 2
# web files
[*.{html,css,less}]
indent_size = 2
[Makefile]
indent_style = tab

View File

@ -1,2 +0,0 @@
**/themes/
demo/

View File

@ -1,20 +0,0 @@
The MIT License (MIT)
Copyright (c) 2018 Yusuke Ishimi
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.

View File

@ -1,36 +0,0 @@
# LESS params
LESS_DIR = ./static/less
LESS_FILE = style.less
LESS_RTL_FILE = style-rtl.less
# CSS params
CSS_DIR = ./static/css
CSS_FILE = style.min.css
CSS_RTL_FILE = style-rtl.min.css
CSS_TMP_FILE = tmp.css
define build_less
lessc $(LESS_DIR)/$(1) > $(CSS_DIR)/$(CSS_TMP_FILE)
uglifycss $(CSS_DIR)/$(CSS_TMP_FILE) > $(CSS_DIR)/$(2)
rm -f $(CSS_DIR)/$(CSS_TMP_FILE)
endef
.PHONY: clean demo build build-ltr build-rtl
build: clean build-ltr build-rtl
build-ltr:
$(call build_less,$(LESS_FILE),$(CSS_FILE))
build-rtl:
$(call build_less,$(LESS_RTL_FILE),$(CSS_RTL_FILE))
demo: build
mkdir -p demo/themes/coder-portfolio
rsync -av exampleSite/* demo
rsync -av --exclude='demo' --exclude='exampleSite' --exclude='.git' . demo/themes/coder-portfolio
cd demo && hugo serve -D
clean:
rm -f $(CSS_DIR)/*.css
rm -rf demo

View File

@ -1,208 +0,0 @@
---------------------------
This theme is created based on [hugo-coder](https://github.com/luizdepra/hugo-coder).
I made it possible to tell yourself more by my change.
Please see [FeaturesOfCoderPortfolio](https://github.com/naro143/hugo-coder-portfolio/blob/master/exampleSite/content/posts/FeaturesOfCoderPortfolio.md) in the post about the change.
Have questions or suggestions? Feel free to [open an issue on GitHub](https://github.com/naro143/hugo-coder-portfolio/issues/new) or [ask me on Twitter](https://twitter.com/naro143).
---------------------------
A simple and clean blog theme for Hugo.
![](https://github.com/naro143/hugo-coder-portfolio/blob/master/images/screenshot.png)
## How to use this theme
To use `hugo-coder-portfolio` go through the following steps.
### Download
Clone this repository into your Hugo project.
```
git clone https://github.com/naro143/hugo-coder-portfolio themes/coder-portfolio
```
### Configuration
Add the following lines to your `config.toml`.
```toml
baseurl = "http://www.example.com" # Hostname (and path) to the root.
title = "Yusuke Ishimi" # Site title.
theme = "coder-portfolio" # Set the theme.
languagecode = "en" # The sites language code used to generate RSS.
defaultcontentlanguage = "en" # The default content language.
paginate = 20 # Default number of pages per page in pagination.
pygmentsstyle = "b2" # Color-theme or style for syntax highlighting.
pygmentscodefences = true # Enable code fence background highlighting.
pygmentscodefencesguesssyntax = true # Enable syntax guessing for code fences without specified language.
pygmentsUseClasses = true # new add
disqusShortname = "yourdiscussshortname" # Enable or disable Disqus.
[params] # theme parameters
author = "Yusuke Ishimi" # Author's name.
info = "WEB AND APPS ENGINEER" # Author's job title or info.
description = "Yusuke Ishimi's personal website" # Site description.
keywords = "blog,developer,personal" # Site keywords.
avatarurl = "images/avatar.jpg" # Contain the path of the optionnal avatar in the static folder.
footercontent = "Enter a text here." # Add footer content
fixedbarContent = "Do you want to know me more private?→" # Add fixedbar content
fixedbarContentAfter = "Thank You! Please share it if you like it→" # Add fixedbar content after click
# Whether you want to hide copyright and credits in the footer.
hideCredits = false
hideCopyright = false
# Custom CSS
custom_css = []
# Alignment of Mobile Menu items
itemscentered = true
# RTL support
rtl = false
snsShare = true # new add
thumbnail = "images/tn.png" # default sns thumbnail
# Multilanguage mode
langseparator = "|" # Separates menus from language selectors when site is multilingual.
# Social links
[[params.social]]
name = "Github"
weight = 1
url = "https://github.com/naro143/"
[[params.social]]
name = "Twitter"
weight = 2
url = "https://twitter.com/naro143/"
[[params.social]]
name = "LinkedIn"
weight = 3
url = "https://www.linkedin.com/in/naro143/"
# Menu links
[[menu.main]]
name = "Blog"
weight = 1
url = "posts"
[[menu.main]]
name = "About"
weight = 2
url = "about"
```
You can look at full working [`config.toml`](https://github.com/naro143/hugo-coder-portfolio/blob/master/exampleSite/config.toml) inside the [exampleSite](https://github.com/naro143/hugo-coder-portfolio/tree/master/exampleSite) folder.
#### Multilingual mode
To use multilingual mode, the configuration above needs to be extended by parameters for the specific languages.
Each `language` section overrides default site's parameters when that language is chosen.
```toml
[params]
langseparator = "|" # separates menus from language selectors.
[languages]
[languages.en]
languagename = "English" # The language name to be displayed in the selector.
title = "Yusuke Ishimi"
# You can configure the theme parameter for each language.
[languages.en.params]
author = "Yusuke Ishimi"
info = "WEB AND APPS ENGINEER"
description = "Yusuke Ishimi's personal website"
keywords = "blog,developer,personal"
[languages.en.menu] # It is possible to change the menu too.
[[languages.en.menu.main]]
name = "About"
weight = 1.0
url = "about"
[[languages.en.menu.main]]
name = "Blog"
weight = 2.0
url = "posts"
[languages.ja]
languagename = "Japanese"
title = "石見 優丞"
[languages.ja.params]
author = "石見 優丞"
description = "石見 優丞のサイト"
keywords = "blog,developer, ブログ, エンジニア"
info = "WEBとアプリのエンジニア"
[languages.ja.menu]
[[languages.ja.menu.main]]
name = "石見とは"
weight = 1.0
url = "ja/about"
[[languages.ja.menu.main]]
name = "ブログ"
weight = 2.0
url = "ja/posts"
```
It is possible to force Hugo to render all default language content under the language code with `defaultContentLanguageInSubdir = true`.
In this case, remember to update your menus URLs (i.e. `/en/about/`).
### Build & Test
It is necessary to have `less` and `uglifycss` installed to build and run the demo.
Assuming that already have NodeJS/NPM installed, run `npm install -g less uglifycss`.
To update or generate the minified CSS file:
```
make build
```
To build your site and test, run:
```
hugo server
```
To preview the exampleSite, run
```
make demo
```
The above command copies current state of the theme to exampleSite/themes and starts hugo with hugo serve -D (Go does not support Symlink directories)
### Disqus
Add the following line to your config, ```disqusShortname = "yourdiscussshortname"``` When this is set, all posts are disqus enabled
You can disable comments for a post by adding the following to your page meta data: ```disable_comments: true```.
## License
Coder is licensed under the [MIT license](https://github.com/naro143/hugo-coder-portfolio/blob/master/LICENSE.md).
## Author
[Yusuke Ishimi](https://github.com/naro143)
## Contributors
## Special Thanks
- All contributors, for every PR and Issue reported.

View File

@ -1,8 +0,0 @@
+++
draft = true
date = {{ .Date }}
title = ""
slug = ""
thumbnail = "{{ .Site.Params.thumbnail }}"
description = ""
+++

View File

@ -1,10 +0,0 @@
+++
draft = true
date = {{ .Date }}
title = ""
slug = ""
tags = []
categories = []
thumbnail = "{{ .Site.Params.thumbnail }}"
description = ""
+++

View File

@ -1,120 +0,0 @@
baseurl = "http://www.example.com"
title = "Yusuke Ishimi"
theme = "coder-portfolio"
DefaultContentLanguage = "en"
paginate = 20
pygmentsstyle = "b2"
pygmentscodefences = true
pygmentscodefencesguesssyntax = true
pygmentsUseClasses = true
disqusShortname = "yourdiscussshortname"
[params]
author = "Yusuke Ishimi"
description = "Yusuke Ishimi's personal website"
keywords = "blog,developer,personal"
info = "WEB AND APPS ENGINEER"
avatarurl = "images/avatar.jpg"
footercontent = "Enter a text here."
fixedbarContent = "Do you want to know me more private?→"
fixedbarContentAfter = "Thank You! Please share it if you like it→"
hideCredits = false
hideCopyright = false
snsShare = true
thumbnail = "images/tn.png"
# Custom CSS
custom_css = []
# Alignment of Mobile Menu items
itemscentered = true
# RTL support
rtl = false
langseparator = "|"
[[params.social]]
name = "Github"
weight = 1
url = "https://github.com/naro143/"
[[params.social]]
name = "Twitter"
weight = 2
url = "https://twitter.com/naro143/"
[[params.social]]
name = "LinkedIn"
weight = 3
url = "https://www.linkedin.com/in/naro143/"
[languages]
[languages.en]
languagecode = "en"
languagename = "English" # The language name to be displayed in the selector.
title = "Yusuke Ishimi"
# You can configure the theme parameter for each language.
[languages.en.params]
author = "Yusuke Ishimi"
info = "WEB AND APPS ENGINEER"
description = "Yusuke Ishimi's personal website"
keywords = "blog,developer,personal"
[languages.en.menu] # It is possible to change the menu too.
[[languages.en.menu.main]]
name = "About"
weight = 1.0
url = "about"
[[languages.en.menu.main]]
name = "Blog"
weight = 2.0
url = "posts"
[[languages.en.menu.main]]
name = "Projects"
weight = 3
url = "projects"
[[languages.en.menu.main]]
name = "Contact me"
weight = 5
url = "contact"
[languages.ja]
languagecode = "ja"
languagename = "Japanese"
title = "石見 優丞"
[languages.ja.params]
author = "石見 優丞"
description = "石見のサイト"
keywords = "blog,developer,strona domowa"
info = "WEBとアプリのエンジニア"
[languages.ja.menu]
[[languages.ja.menu.main]]
name = "テーマについて"
weight = 1.0
url = "ja/about"
[[languages.ja.menu.main]]
name = "ブログ"
weight = 2.0
url = "ja/posts"
[[languages.ja.menu.main]]
name = "プロジェクト"
weight = 3
url = "ja/projects"
[[languages.ja.menu.main]]
name = "お問い合わせ"
weight = 5
url = "ja/contact"

View File

@ -1,43 +0,0 @@
+++
title = "About Hugo"
slug = "about"
thumbnail = "images/tn.png"
description = "about"
+++
---------------------------
このテーマは[hugo-coder](https://github.com/luizdepra/hugo-coder)を元に作成をしています。
一見綺麗なポートフォリをサイトですが、より個人的なことも伝えられるようにしました。
変更点の詳細はブログから、"FeaturesOfCoderPortfolio"を見てください。
それ以外のDEMOのコンテンツに関してはhugo-coderのものです。
質問や、報告がありましたら、下記からお願いいたします。
* [open an issue on GitHub](https://github.com/naro143/hugo-coder-portfolio/issues/new)
* [ask me on Twitter](https://twitter.com/naro143)
---------------------------
Hugo is a static site engine written in Go.
It makes use of a variety of open source projects including:
* [Cobra](https://github.com/spf13/cobra)
* [Viper](https://github.com/spf13/viper)
* [J Walter Weatherman](https://github.com/spf13/jWalterWeatherman)
* [Cast](https://github.com/spf13/cast)
Learn more and contribute on [GitHub](https://github.com/spf13).
## Setup
Some fun facts about [Hugo](http://gohugo.io/):
* Built in [Go](http://golang.org/)
* Loosely inspired by [Jekyll](http://jekyllrb.com/)
* Primarily developed by [spf13](http://spf13.com/) on the train while commuting to and from Manhattan.
* Coded in [Vim](http://vim.org) using [spf13-vim](http://vim.spf13.com/)
Have questions or suggestions? Feel free to [open an issue on GitHub](https://github.com/spf13/hugo/issues/new) or [ask me on Twitter](https://twitter.com/spf13).
Thanks for reading!

View File

@ -1,40 +0,0 @@
+++
title = "About Hugo"
slug = "about"
thumbnail = "images/tn.png"
description = "about"
+++
---------------------------
This theme is created based on [hugo-coder](https://github.com/luizdepra/hugo-coder).
I made it possible to tell yourself more by my change.
Please see "FeaturesOfCoderPortfolio" in the post about the change.
Regarding other demo contents, it is hugo-coder's thing.
Have questions or suggestions? Feel free to [open an issue on GitHub](https://github.com/naro143/hugo-coder-portfolio/issues/new) or [ask me on Twitter](https://twitter.com/naro143).
---------------------------
Hugo is a static site engine written in Go.
It makes use of a variety of open source projects including:
* [Cobra](https://github.com/spf13/cobra)
* [Viper](https://github.com/spf13/viper)
* [J Walter Weatherman](https://github.com/spf13/jWalterWeatherman)
* [Cast](https://github.com/spf13/cast)
Learn more and contribute on [GitHub](https://github.com/spf13).
## Setup
Some fun facts about [Hugo](http://gohugo.io/):
* Built in [Go](http://golang.org/)
* Loosely inspired by [Jekyll](http://jekyllrb.com/)
* Primarily developed by [spf13](http://spf13.com/) on the train while commuting to and from Manhattan.
* Coded in [Vim](http://vim.org) using [spf13-vim](http://vim.spf13.com/)
Have questions or suggestions? Feel free to [open an issue on GitHub](https://github.com/spf13/hugo/issues/new) or [ask me on Twitter](https://twitter.com/spf13).
Thanks for reading!

View File

@ -1,13 +0,0 @@
+++
title = "Contact"
slug = "contact"
thumbnail = "images/tn.png"
description = "contact"
+++
## 連絡をとりたいですか?
質問や報告などの連絡は下記からお願いします。
* [open an issue on GitHub](https://github.com/naro143/hugo-coder-portfolio/issues/new)
* [ask me on Twitter](https://twitter.com/naro143)

View File

@ -1,10 +0,0 @@
+++
title = "Contact"
slug = "contact"
thumbnail = "images/tn.png"
description = "contact"
+++
## Want Contact?
Have questions or suggestions? Feel free to [open an issue on GitHub](https://github.com/naro143/hugo-coder-portfolio/issues/new) or [ask me on Twitter](https://twitter.com/naro143).

View File

@ -1,35 +0,0 @@
+++
date = "2018-08-03"
title = "CoderPortfolioの特徴"
math = "true"
+++
## 変更点
### ShortCode "private content"を追加しました
綺麗なサイトを崩さずに、あなたの個人的なコンテンツ(趣味や感情)を簡単に伝えることができます。
実際の動きについては、"テーマデモ"をご覧ください。
### リンクに赤い下線のアニメーションを追加しました
サイトがよりカラフルに美しくなりました。
### SNSシェアのボタンを追加しました
あなたの記事がより影響力を持つようになりました。
### コードのハイライトを変更しました
日本のサービス [Qiita](https://qiita.com/) のハイライトを参照しました。
とても優しく美しいハイライトです。
### ヘッダーに影を追加しました
より境界線がはっきりしました。
### ShortCode "portfolio"を追加しました
あなたの作品を綺麗に表示できるようになりました。
実際の動きについては、"テーマデモ"をご覧ください。

View File

@ -1,37 +0,0 @@
+++
date = "2018-08-03"
title = "Features Of CoderPortfolio"
math = "true"
+++
## Change Point
### "private content" short code added.
It is now possible to communicate your personal hobby and your own content.
You can use it easily.
Please see "theme-demo" for details and demo.
### An animation of red underline was added to Anchor.
The site became a little fun and colorful.
### The button of the SNS share was added.
It became to have an influence when writing articles more.
### Changed the color scheme of code highlight.
I am referring to the color scheme of service [Qiita](https://qiita.com/) in Japan.
This color scheme is gentle and wonderful.
### I shadowed Navigation.
I made the boundary clearer.
### "portfolio" short code added.
It is now possible to communicate your portfolio.
You can use it easily.
Please see "theme-demo" for details and demo.

View File

@ -1,343 +0,0 @@
+++
date = "2014-04-02"
title = "(Hu)go Template Primer"
slug = "hugo-template-primer"
tags = [
"go",
"golang",
"templates",
"themes",
"development",
]
categories = [
"Development",
"golang",
]
+++
Hugo uses the excellent [go][] [html/template][gohtmltemplate] library for
its template engine. It is an extremely lightweight engine that provides a very
small amount of logic. In our experience that it is just the right amount of
logic to be able to create a good static website. If you have used other
template systems from different languages or frameworks you will find a lot of
similarities in go templates.
This document is a brief primer on using go templates. The [go docs][gohtmltemplate]
provide more details.
## Introduction to Go Templates
Go templates provide an extremely simple template language. It adheres to the
belief that only the most basic of logic belongs in the template or view layer.
One consequence of this simplicity is that go templates parse very quickly.
A unique characteristic of go templates is they are content aware. Variables and
content will be sanitized depending on the context of where they are used. More
details can be found in the [go docs][gohtmltemplate].
## Basic Syntax
Go lang templates are html files with the addition of variables and
functions.
**Go variables and functions are accessible within {{ }}**
Accessing a predefined variable "foo":
{{ foo }}
**Parameters are separated using spaces**
Calling the add function with input of 1, 2:
{{ add 1 2 }}
**Methods and fields are accessed via dot notation**
Accessing the Page Parameter "bar"
{{ .Params.bar }}
**Parentheses can be used to group items together**
{{ if or (isset .Params "alt") (isset .Params "caption") }} Caption {{ end }}
## Variables
Each go template has a struct (object) made available to it. In hugo each
template is passed either a page or a node struct depending on which type of
page you are rendering. More details are available on the
[variables](/layout/variables) page.
A variable is accessed by referencing the variable name.
<title>{{ .Title }}</title>
Variables can also be defined and referenced.
{{ $address := "123 Main St."}}
{{ $address }}
## Functions
Go template ship with a few functions which provide basic functionality. The go
template system also provides a mechanism for applications to extend the
available functions with their own. [Hugo template
functions](/layout/functions) provide some additional functionality we believe
are useful for building websites. Functions are called by using their name
followed by the required parameters separated by spaces. Template
functions cannot be added without recompiling hugo.
**Example:**
{{ add 1 2 }}
## Includes
When including another template you will pass to it the data it will be
able to access. To pass along the current context please remember to
include a trailing dot. The templates location will always be starting at
the /layout/ directory within Hugo.
**Example:**
{{ template "chrome/header.html" . }}
## Logic
Go templates provide the most basic iteration and conditional logic.
### Iteration
Just like in go, the go templates make heavy use of range to iterate over
a map, array or slice. The following are different examples of how to use
range.
**Example 1: Using Context**
{{ range array }}
{{ . }}
{{ end }}
**Example 2: Declaring value variable name**
{{range $element := array}}
{{ $element }}
{{ end }}
**Example 2: Declaring key and value variable name**
{{range $index, $element := array}}
{{ $index }}
{{ $element }}
{{ end }}
### Conditionals
If, else, with, or, & and provide the framework for handling conditional
logic in Go Templates. Like range, each statement is closed with `end`.
Go Templates treat the following values as false:
* false
* 0
* any array, slice, map, or string of length zero
**Example 1: If**
{{ if isset .Params "title" }}<h4>{{ index .Params "title" }}</h4>{{ end }}
**Example 2: If -> Else**
{{ if isset .Params "alt" }}
{{ index .Params "alt" }}
{{else}}
{{ index .Params "caption" }}
{{ end }}
**Example 3: And & Or**
{{ if and (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}
**Example 4: With**
An alternative way of writing "if" and then referencing the same value
is to use "with" instead. With rebinds the context `.` within its scope,
and skips the block if the variable is absent.
The first example above could be simplified as:
{{ with .Params.title }}<h4>{{ . }}</h4>{{ end }}
**Example 5: If -> Else If**
{{ if isset .Params "alt" }}
{{ index .Params "alt" }}
{{ else if isset .Params "caption" }}
{{ index .Params "caption" }}
{{ end }}
## Pipes
One of the most powerful components of go templates is the ability to
stack actions one after another. This is done by using pipes. Borrowed
from unix pipes, the concept is simple, each pipeline's output becomes the
input of the following pipe.
Because of the very simple syntax of go templates, the pipe is essential
to being able to chain together function calls. One limitation of the
pipes is that they only can work with a single value and that value
becomes the last parameter of the next pipeline.
A few simple examples should help convey how to use the pipe.
**Example 1 :**
{{ if eq 1 1 }} Same {{ end }}
is the same as
{{ eq 1 1 | if }} Same {{ end }}
It does look odd to place the if at the end, but it does provide a good
illustration of how to use the pipes.
**Example 2 :**
{{ index .Params "disqus_url" | html }}
Access the page parameter called "disqus_url" and escape the HTML.
**Example 3 :**
{{ if or (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}
Stuff Here
{{ end }}
Could be rewritten as
{{ isset .Params "caption" | or isset .Params "title" | or isset .Params "attr" | if }}
Stuff Here
{{ end }}
## Context (aka. the dot)
The most easily overlooked concept to understand about go templates is that {{ . }}
always refers to the current context. In the top level of your template this
will be the data set made available to it. Inside of a iteration it will have
the value of the current item. When inside of a loop the context has changed. .
will no longer refer to the data available to the entire page. If you need to
access this from within the loop you will likely want to set it to a variable
instead of depending on the context.
**Example:**
{{ $title := .Site.Title }}
{{ range .Params.tags }}
<li> <a href="{{ $baseurl }}/tags/{{ . | urlize }}">{{ . }}</a> - {{ $title }} </li>
{{ end }}
Notice how once we have entered the loop the value of {{ . }} has changed. We
have defined a variable outside of the loop so we have access to it from within
the loop.
# Hugo Parameters
Hugo provides the option of passing values to the template language
through the site configuration (for sitewide values), or through the meta
data of each specific piece of content. You can define any values of any
type (supported by your front matter/config format) and use them however
you want to inside of your templates.
## Using Content (page) Parameters
In each piece of content you can provide variables to be used by the
templates. This happens in the [front matter](/content/front-matter).
An example of this is used in this documentation site. Most of the pages
benefit from having the table of contents provided. Sometimes the TOC just
doesn't make a lot of sense. We've defined a variable in our front matter
of some pages to turn off the TOC from being displayed.
Here is the example front matter:
```
---
title: "Permalinks"
date: "2013-11-18"
aliases:
- "/doc/permalinks/"
groups: ["extras"]
groups_weight: 30
notoc: true
---
```
Here is the corresponding code inside of the template:
{{ if not .Params.notoc }}
<div id="toc" class="well col-md-4 col-sm-6">
{{ .TableOfContents }}
</div>
{{ end }}
## Using Site (config) Parameters
In your top-level configuration file (eg, `config.yaml`) you can define site
parameters, which are values which will be available to you in chrome.
For instance, you might declare:
```yaml
params:
CopyrightHTML: "Copyright &#xA9; 2013 John Doe. All Rights Reserved."
TwitterUser: "spf13"
SidebarRecentLimit: 5
```
Within a footer layout, you might then declare a `<footer>` which is only
provided if the `CopyrightHTML` parameter is provided, and if it is given,
you would declare it to be HTML-safe, so that the HTML entity is not escaped
again. This would let you easily update just your top-level config file each
January 1st, instead of hunting through your templates.
```
{{if .Site.Params.CopyrightHTML}}<footer>
<div class="text-center">{{.Site.Params.CopyrightHTML | safeHtml}}</div>
</footer>{{end}}
```
An alternative way of writing the "if" and then referencing the same value
is to use "with" instead. With rebinds the context `.` within its scope,
and skips the block if the variable is absent:
```
{{with .Site.Params.TwitterUser}}<span class="twitter">
<a href="https://twitter.com/{{.}}" rel="author">
<img src="/images/twitter.png" width="48" height="48" title="Twitter: {{.}}"
alt="Twitter"></a>
</span>{{end}}
```
Finally, if you want to pull "magic constants" out of your layouts, you can do
so, such as in this example:
```
<nav class="recent">
<h1>Recent Posts</h1>
<ul>{{range first .Site.Params.SidebarRecentLimit .Site.Recent}}
<li><a href="{{.RelPermalink}}">{{.Title}}</a></li>
{{end}}</ul>
</nav>
```
[go]: <http://golang.org/>
[gohtmltemplate]: <http://golang.org/pkg/html/template/>

View File

@ -1,87 +0,0 @@
+++
date = "2014-04-02"
title = "Getting Started with Hugo"
tags = [
"go",
"golang",
"hugo",
"development",
]
categories = [
"Development",
"golang",
]
+++
## Step 1. Install Hugo
Goto [hugo releases](https://github.com/spf13/hugo/releases) and download the
appropriate version for your os and architecture.
Save it somewhere specific as we will be using it in the next step.
More complete instructions are available at [installing hugo](/overview/installing/)
## Step 2. Build the Docs
Hugo has its own example site which happens to also be the documentation site
you are reading right now.
Follow the following steps:
1. Clone the [hugo repository](http://github.com/spf13/hugo)
2. Go into the repo
3. Run hugo in server mode and build the docs
4. Open your browser to http://localhost:1313
Corresponding pseudo commands:
git clone https://github.com/spf13/hugo
cd hugo
/path/to/where/you/installed/hugo server --source=./docs
> 29 pages created
> 0 tags index created
> in 27 ms
> Web Server is available at http://localhost:1313
> Press ctrl+c to stop
Once you've gotten here, follow along the rest of this page on your local build.
## Step 3. Change the docs site
Stop the Hugo process by hitting ctrl+c.
Now we are going to run hugo again, but this time with hugo in watch mode.
/path/to/hugo/from/step/1/hugo server --source=./docs --watch
> 29 pages created
> 0 tags index created
> in 27 ms
> Web Server is available at http://localhost:1313
> Watching for changes in /Users/spf13/Code/hugo/docs/content
> Press ctrl+c to stop
Open your [favorite editor](http://vim.spf13.com) and change one of the source
content pages. How about changing this very file to *fix the typo*. How about changing this very file to *fix the typo*.
Content files are found in `docs/content/`. Unless otherwise specified, files
are located at the same relative location as the url, in our case
`docs/content/overview/quickstart.md`.
Change and save this file.. Notice what happened in your terminal.
> Change detected, rebuilding site
> 29 pages created
> 0 tags index created
> in 26 ms
Refresh the browser and observe that the typo is now fixed.
Notice how quick that was. Try to refresh the site before it's finished building.. I double dare you.
Having nearly instant feedback enables you to have your creativity flow without waiting for long builds.
## Step 4. Have fun
The best way to learn something is to play with it.

View File

@ -1,150 +0,0 @@
+++
date = "2014-03-10"
title = "Migrate to Hugo from Jekyll"
+++
## Move static content to `static`
Jekyll has a rule that any directory not starting with `_` will be copied as-is to the `_site` output. Hugo keeps all static content under `static`. You should therefore move it all there.
With Jekyll, something that looked like
<root>/
▾ images/
logo.png
should become
<root>/
▾ static/
▾ images/
logo.png
Additionally, you'll want any files that should reside at the root (such as `CNAME`) to be moved to `static`.
## Create your Hugo configuration file
Hugo can read your configuration as JSON, YAML or TOML. Hugo supports parameters custom configuration too. Refer to the [Hugo configuration documentation](/overview/configuration/) for details.
## Set your configuration publish folder to `_site`
The default is for Jekyll to publish to `_site` and for Hugo to publish to `public`. If, like me, you have [`_site` mapped to a git submodule on the `gh-pages` branch](http://blog.blindgaenger.net/generate_github_pages_in_a_submodule.html), you'll want to do one of two alternatives:
1. Change your submodule to point to map `gh-pages` to public instead of `_site` (recommended).
git submodule deinit _site
git rm _site
git submodule add -b gh-pages git@github.com:your-username/your-repo.git public
2. Or, change the Hugo configuration to use `_site` instead of `public`.
{
..
"publishdir": "_site",
..
}
## Convert Jekyll templates to Hugo templates
That's the bulk of the work right here. The documentation is your friend. You should refer to [Jekyll's template documentation](http://jekyllrb.com/docs/templates/) if you need to refresh your memory on how you built your blog and [Hugo's template](/layout/templates/) to learn Hugo's way.
As a single reference data point, converting my templates for [heyitsalex.net](http://heyitsalex.net/) took me no more than a few hours.
## Convert Jekyll plugins to Hugo shortcodes
Jekyll has [plugins](http://jekyllrb.com/docs/plugins/); Hugo has [shortcodes](/doc/shortcodes/). It's fairly trivial to do a port.
### Implementation
As an example, I was using a custom [`image_tag`](https://github.com/alexandre-normand/alexandre-normand/blob/74bb12036a71334fdb7dba84e073382fc06908ec/_plugins/image_tag.rb) plugin to generate figures with caption when running Jekyll. As I read about shortcodes, I found Hugo had a nice built-in shortcode that does exactly the same thing.
Jekyll's plugin:
module Jekyll
class ImageTag < Liquid::Tag
@url = nil
@caption = nil
@class = nil
@link = nil
// Patterns
IMAGE_URL_WITH_CLASS_AND_CAPTION =
IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK = /(\w+)(\s+)((https?:\/\/|\/)(\S+))(\s+)"(.*?)"(\s+)->((https?:\/\/|\/)(\S+))(\s*)/i
IMAGE_URL_WITH_CAPTION = /((https?:\/\/|\/)(\S+))(\s+)"(.*?)"/i
IMAGE_URL_WITH_CLASS = /(\w+)(\s+)((https?:\/\/|\/)(\S+))/i
IMAGE_URL = /((https?:\/\/|\/)(\S+))/i
def initialize(tag_name, markup, tokens)
super
if markup =~ IMAGE_URL_WITH_CLASS_AND_CAPTION_AND_LINK
@class = $1
@url = $3
@caption = $7
@link = $9
elsif markup =~ IMAGE_URL_WITH_CLASS_AND_CAPTION
@class = $1
@url = $3
@caption = $7
elsif markup =~ IMAGE_URL_WITH_CAPTION
@url = $1
@caption = $5
elsif markup =~ IMAGE_URL_WITH_CLASS
@class = $1
@url = $3
elsif markup =~ IMAGE_URL
@url = $1
end
end
def render(context)
if @class
source = "<figure class='#{@class}'>"
else
source = "<figure>"
end
if @link
source += "<a href=\"#{@link}\">"
end
source += "<img src=\"#{@url}\">"
if @link
source += "</a>"
end
source += "<figcaption>#{@caption}</figcaption>" if @caption
source += "</figure>"
source
end
end
end
Liquid::Template.register_tag('image', Jekyll::ImageTag)
is written as this Hugo shortcode:
<!-- image -->
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
{{ with .Get "link"}}<a href="{{.}}">{{ end }}
<img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }} />
{{ if .Get "link"}}</a>{{ end }}
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
<figcaption>{{ if isset .Params "title" }}
{{ .Get "title" }}{{ end }}
{{ if or (.Get "caption") (.Get "attr")}}<p>
{{ .Get "caption" }}
{{ with .Get "attrlink"}}<a href="{{.}}"> {{ end }}
{{ .Get "attr" }}
{{ if .Get "attrlink"}}</a> {{ end }}
</p> {{ end }}
</figcaption>
{{ end }}
</figure>
<!-- image -->
### Usage
I simply changed:
{% image full http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg "One of my favorite touristy-type photos. I secretly waited for the good light while we were "having fun" and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." ->http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/ %}
to this (this example uses a slightly extended version named `fig`, different than the built-in `figure`):
{{%/* fig class="full" src="http://farm5.staticflickr.com/4136/4829260124_57712e570a_o_d.jpg" title="One of my favorite touristy-type photos. I secretly waited for the good light while we were having fun and took this. Only regret: a stupid pole in the top-left corner of the frame I had to clumsily get rid of at post-processing." link="http://www.flickr.com/photos/alexnormand/4829260124/in/set-72157624547713078/" */%}}
As a bonus, the shortcode named parameters are, arguably, more readable.
## Finishing touches
### Fix content
Depending on the amount of customization that was done with each post with Jekyll, this step will require more or less effort. There are no hard and fast rules here except that `hugo server --watch` is your friend. Test your changes and fix errors as needed.
### Clean up
You'll want to remove the Jekyll configuration at this point. If you have anything else that isn't used, delete it.
## A practical example in a diff
[Hey, it's Alex](http://heyitsalex.net/) was migrated in less than a _father-with-kids day_ from Jekyll to Hugo. You can see all the changes (and screw-ups) by looking at this [diff](https://github.com/alexandre-normand/alexandre-normand/compare/869d69435bd2665c3fbf5b5c78d4c22759d7613a...b7f6605b1265e83b4b81495423294208cc74d610).

View File

@ -1,112 +0,0 @@
+++
date = "2018-08-03"
title = "テーマデモ"
math = "true"
+++
## Style Demo
# h1 Heading
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
---
**This is bold text**
__This is bold text__
*This is italic text*
_This is italic text_
~~Deleted text~~
This is text with inline math $\sum_{n=1}^{\infty} 2^{-n} = 1$ and with math blocks:
$$
\sum_{n=1}^{\infty} 2^{-n} = 1
$$
| Heading | Another heading |
| :----: | :-------------: |
| text | text |
| text | text |
| text | text |
> Block quotes are
> written like so.
>
> They can span multiple paragraphs,
> if you like.
Some text, and some `code` and then a nice plain [link with title](https://github.com/davidhampgonsalves/davidhampgonsalves.com-hugo "title text!").
and then
+ Create a list by starting a line with `+`, `-`, or `*`
+ Sub-lists are made by indenting 2 spaces:
- Marker character change forces new list start:
* Ac tristique libero volutpat at
+ Very easy!
vs.
1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
3. Integer molestie lorem at massa
## Code
Inline `code`
``` js
var foo = function (bar) {
return bar++;
};
console.log(foo(5));
```
## Private Content
プライベートな内容をこのShortCodeで作成できます。
```
{% private %}
ここにプライベートな内容を書きます。
{% /private %}
```
実際に使用するときには、ShortCodeをさらに{}で囲ってください。
## Private Content Demo
下付きのバーの'Click'をクリックしてください。
プライベートな内容が下に表示されます。
{{% private %}}
## Private Content
プライベートな内容です。
{{% /private %}}
## Portfolio Content
ポートフォリオをこのShortCodeで作成できます。
```
{% portfolio image="/images/tn.png" alt="Coder Portfolio" %}
作品の説明。
{% /portfolio %}
```
実際に使用するときには、ShortCodeをさらに{}で囲ってください。
## Portfolio Content Demo
"プロジェクト"を見てください。

View File

@ -1,112 +0,0 @@
+++
date = "2018-08-03"
title = "Theme Demo"
math = "true"
+++
## Style Demo
# h1 Heading
## h2 Heading
### h3 Heading
#### h4 Heading
##### h5 Heading
###### h6 Heading
---
**This is bold text**
__This is bold text__
*This is italic text*
_This is italic text_
~~Deleted text~~
This is text with inline math $\sum_{n=1}^{\infty} 2^{-n} = 1$ and with math blocks:
$$
\sum_{n=1}^{\infty} 2^{-n} = 1
$$
| Heading | Another heading |
| :----: | :-------------: |
| text | text |
| text | text |
| text | text |
> Block quotes are
> written like so.
>
> They can span multiple paragraphs,
> if you like.
Some text, and some `code` and then a nice plain [link with title](https://github.com/davidhampgonsalves/davidhampgonsalves.com-hugo "title text!").
and then
+ Create a list by starting a line with `+`, `-`, or `*`
+ Sub-lists are made by indenting 2 spaces:
- Marker character change forces new list start:
* Ac tristique libero volutpat at
+ Very easy!
vs.
1. Lorem ipsum dolor sit amet
2. Consectetur adipiscing elit
3. Integer molestie lorem at massa
## Code
Inline `code`
``` js
var foo = function (bar) {
return bar++;
};
console.log(foo(5));
```
## Private Content
You can create private content with this short code
```
{% private %}
Write private content here
{% /private %}
```
When using for inspection, please add "{}" so that you can see the notation of shortcode
## Private Content Demo
Please click on fixed bottom bar 'Click'
private content is displayed here
{{% private %}}
## Private Content
This is private content
{{% /private %}}
## Portfolio Content
You can create portfolio content with this short code
```
{% portfolio image="/images/tn.png" alt="Coder Portfolio" %}
Write portfolio content here
{% /portfolio %}
```
When using for inspection, please add "{}" so that you can see the notation of shortcode
## Portfolio Content Demo
Please see "projects" for demo.

View File

@ -1,16 +0,0 @@
+++
title = "Projects"
slug = "projects"
thumbnail = "images/tn.png"
description = "projects"
+++
## Portfolio Demo
{{% portfolio image="/images/tn.png" alt="Coder Portfolio" %}}
## Coder Portfolio
hugo-coderを元に作成しました。
より自分を伝えられるようにしました。
{{% /portfolio %}}

View File

@ -1,16 +0,0 @@
+++
title = "Projects"
slug = "projects"
thumbnail = "images/tn.png"
description = "projects"
+++
## Portfolio Demo
{{% portfolio image="/images/tn.png" alt="Coder Portfolio" %}}
## Coder Portfolio
This theme is created based on hugo-coder.
I made it possible to tell yourself more by my change.
{{% /portfolio %}}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 B

View File

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="32px" height="32px" viewBox="0 0 32 32" enable-background="new 0 0 32 32" xml:space="preserve">
<g>
<rect x="4.686" y="4.686" transform="matrix(0.7071 0.7071 -0.7071 0.7071 16 -6.6274)" fill="#000000" width="22.627" height="22.627"/>
<polygon fill="#FFFFFF" points="29.403,16 21.874,23.529 21.874,20.472 26.346,16 21.874,11.528 21.874,8.471 "/>
<polygon fill="#FFFFFF" points="19.811,9.464 19.811,14.71 12.166,14.71 12.166,9.488 16,5.654 "/>
<polygon fill="#FFFFFF" points="19.811,16.492 19.811,22.535 16,26.346 12.166,22.512 12.166,16.492 "/>
<polygon fill="#FFFFFF" points="10.126,11.528 5.654,16 10.126,20.472 10.126,23.529 2.597,16 10.126,8.471 "/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 38 KiB

View File

@ -1,9 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="1000px" height="1000px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
<path d="M500,167.46L167.46,500L500,832.54L832.54,500L500,167.46z M500,712.33l-78.95-78.95V518.41h157.91v114.96L500,712.33z
M578.96,481.59H421.05V366.62L500,287.67l78.96,78.96V481.59z M378.91,345.12v63.64L287.67,500l91.24,91.24v63.64L224.029,500
L378.91,345.12z M621.59,590.74L712.33,500l-90.74-90.74v-63.64L775.97,500L621.59,654.38V590.74z"/>
</svg>

Before

Width:  |  Height:  |  Size: 830 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1,43 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="1000px" height="1000px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
<path d="M163.797,388.66L52.457,500l111.34,111.34L275.137,500L163.797,388.66z M123.254,469.451L92.705,500l30.549,30.549v21.308
L71.396,500l51.857-51.856V469.451z M190.234,544.654l-26.438,26.438l-26.436-26.435v-38.493h52.873V544.654z M190.234,493.836
h-52.873v-38.493l26.436-26.435l26.438,26.438V493.836z M204.506,530.381L234.889,500l-30.383-30.381v-21.308L256.197,500
l-51.691,51.689V530.381z"/>
<g>
<g>
<path d="M321.498,458.552v28.811h30.41v-28.811h13.125v71.919h-13.125v-31.691h-30.41v31.691h-13.125v-71.919H321.498z"/>
<path d="M393.096,458.552v41.935c0,14.085,5.869,20.595,14.727,20.595c9.496,0,15.152-6.51,15.152-20.595v-41.935h13.123v41.081
c0,22.194-11.416,32.012-28.703,32.012c-16.646,0-27.422-9.283-27.422-31.905v-41.188H393.096z"/>
<path d="M508.766,527.163c-4.588,1.707-13.551,4.055-23.154,4.055c-12.166,0-21.342-3.095-28.17-9.604
c-6.402-6.082-10.139-15.579-10.031-26.463c0-22.729,16.219-37.347,40.016-37.347c8.855,0,15.791,1.813,19.1,3.415l-2.881,10.563
c-3.947-1.708-8.75-3.095-16.326-3.095c-15.365,0-26.143,9.07-26.143,25.822c0,16.326,10.029,26.036,24.969,26.036
c4.695,0,8.217-0.64,9.924-1.493v-17.927h-12.697v-10.351h25.395V527.163z"/>
<path d="M586.021,493.765c0,24.115-14.619,37.88-34.467,37.88c-20.273,0-33.078-15.473-33.078-36.6
c0-22.088,13.871-37.667,34.146-37.667C573.643,457.378,586.021,473.276,586.021,493.765z M532.348,494.831
c0,14.619,7.363,26.25,19.955,26.25c12.697,0,19.846-11.738,19.846-26.783c0-13.552-6.723-26.355-19.846-26.355
C539.283,467.942,532.348,479.999,532.348,494.831z"/>
<path d="M621.555,497.499v9.07h-27.211v-9.07H621.555z"/>
<path d="M685.254,528.337c-3.094,1.601-9.924,3.201-18.566,3.201c-22.834,0-36.705-14.299-36.705-36.174
c0-23.688,16.432-37.986,38.412-37.986c8.645,0,14.832,1.814,17.5,3.201l-2.881,10.457c-3.414-1.494-8.109-2.774-14.084-2.774
c-14.619,0-25.184,9.177-25.184,26.463c0,15.792,9.283,25.93,25.076,25.93c5.336,0,10.883-1.067,14.299-2.668L685.254,528.337z"/>
<path d="M757.498,493.765c0,24.115-14.619,37.88-34.467,37.88c-20.273,0-33.078-15.473-33.078-36.6
c0-22.088,13.871-37.667,34.146-37.667C745.119,457.378,757.498,473.276,757.498,493.765z M703.824,494.831
c0,14.619,7.363,26.25,19.955,26.25c12.697,0,19.846-11.738,19.846-26.783c0-13.552-6.723-26.355-19.846-26.355
C710.76,467.942,703.824,479.999,703.824,494.831z"/>
<path d="M768.809,459.513c5.762-0.961,13.125-1.494,20.914-1.494c13.445,0,22.729,2.773,29.344,8.322
c6.936,5.656,11.205,14.191,11.205,26.463c0,12.805-4.375,22.408-11.205,28.597c-7.148,6.51-18.566,9.817-32.545,9.817
c-7.682,0-13.445-0.427-17.713-0.961V459.513z M781.934,520.44c1.814,0.32,4.588,0.32,7.256,0.32
c17.072,0.106,27.209-9.283,27.209-27.529c0.107-15.9-9.068-24.97-25.502-24.97c-4.162,0-7.148,0.32-8.963,0.747V520.44z"/>
<path d="M881.918,498.565h-27.102v21.128h30.303v10.777h-43.428v-71.919h41.828v10.777h-28.703v18.566h27.102V498.565z"/>
<path d="M896.645,459.513c4.908-0.854,12.271-1.494,19.848-1.494c10.35,0,17.393,1.707,22.195,5.762
c3.947,3.308,6.188,8.322,6.188,14.405c0,9.283-6.295,15.579-13.018,18.032v0.32c5.121,1.922,8.217,6.937,10.029,13.872
c2.242,8.963,4.162,17.286,5.656,20.061h-13.551c-1.068-2.134-2.775-8.003-4.803-16.966c-2.027-9.391-5.441-12.378-12.91-12.592
h-6.617v29.558h-13.018V459.513z M909.662,491.31h7.791c8.855,0,14.404-4.694,14.404-11.844c0-7.896-5.549-11.523-14.086-11.523
c-4.16,0-6.828,0.319-8.109,0.64V491.31z"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

View File

@ -1,44 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 15.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
width="1000px" height="1000px" viewBox="0 0 1000 1000" enable-background="new 0 0 1000 1000" xml:space="preserve">
<path d="M500,209.999L285.653,424.347L500,638.692l214.347-214.346L500,209.999z M500,561.208l-50.89-50.889v-74.105h101.785v74.1
L500,561.208z M550.896,412.479H449.11v-74.105L500,287.483l50.896,50.896V412.479z M421.948,324.515v41.021l-58.811,58.811
l58.811,58.811v41.021l-99.832-99.832L421.948,324.515z M578.374,482.835l58.488-58.488l-58.488-58.488v-41.021l99.509,99.51
l-99.509,99.51V482.835z"/>
<g>
<g>
<path d="M160.496,709.028v31.916h33.688v-31.916h14.542v79.674h-14.542v-35.109h-33.688v35.109h-14.541v-79.674H160.496z"/>
<path d="M239.816,709.028v46.455c0,15.605,6.501,22.818,16.313,22.818c10.521,0,16.786-7.213,16.786-22.818v-46.455h14.537v45.512
c0,24.586-12.646,35.461-31.797,35.461c-18.442,0-30.379-10.281-30.379-35.344v-45.629H239.816z"/>
<path d="M367.957,785.036c-5.081,1.893-15.012,4.494-25.651,4.494c-13.477,0-23.643-3.43-31.206-10.639
c-7.093-6.738-11.233-17.26-11.113-29.318c0-25.178,17.968-41.373,44.328-41.373c9.813,0,17.495,2.012,21.161,3.783l-3.191,11.703
c-4.376-1.891-9.693-3.43-18.088-3.43c-17.021,0-28.96,10.051-28.96,28.607c0,18.088,11.109,28.844,27.661,28.844
c5.2,0,9.1-0.709,10.992-1.654v-19.861h-14.066v-11.467h28.134V785.036z"/>
<path d="M453.54,748.038c0,26.717-16.194,41.963-38.179,41.963c-22.463,0-36.646-17.139-36.646-40.547
c0-24.467,15.366-41.725,37.827-41.725C439.828,707.729,453.54,725.343,453.54,748.038z M394.082,749.22
c0,16.195,8.154,29.082,22.105,29.082c14.064,0,21.987-13.008,21.987-29.672c0-15.016-7.448-29.199-21.987-29.199
C401.765,719.431,394.082,732.79,394.082,749.22z"/>
<path d="M492.905,752.175v10.047h-30.144v-10.047H492.905z"/>
<path d="M563.474,786.339c-3.429,1.773-10.992,3.547-20.565,3.547c-25.301,0-40.666-15.844-40.666-40.076
c0-26.24,18.203-42.08,42.557-42.08c9.571,0,16.43,2.008,19.387,3.545l-3.192,11.584c-3.785-1.654-8.985-3.074-15.604-3.074
c-16.197,0-27.896,10.168-27.896,29.316c0,17.496,10.283,28.727,27.776,28.727c5.914,0,12.061-1.184,15.841-2.957L563.474,786.339
z"/>
<path d="M643.507,748.038c0,26.717-16.196,41.963-38.182,41.963c-22.461,0-36.644-17.139-36.644-40.547
c0-24.467,15.366-41.725,37.827-41.725C629.795,707.729,643.507,725.343,643.507,748.038z M584.048,749.22
c0,16.195,8.155,29.082,22.104,29.082c14.066,0,21.986-13.008,21.986-29.672c0-15.016-7.447-29.199-21.986-29.199
C591.73,719.431,584.048,732.79,584.048,749.22z"/>
<path d="M656.039,710.091c6.382-1.063,14.539-1.652,23.17-1.652c14.892,0,25.179,3.072,32.505,9.221
c7.685,6.264,12.413,15.721,12.413,29.313c0,14.188-4.848,24.826-12.413,31.68c-7.92,7.213-20.565,10.879-36.054,10.879
c-8.512,0-14.893-0.475-19.621-1.068V710.091z M670.578,777.589c2.008,0.357,5.082,0.357,8.039,0.357
c18.912,0.115,30.143-10.285,30.143-30.5c0.119-17.613-10.049-27.662-28.252-27.662c-4.61,0-7.922,0.355-9.93,0.828V777.589z"/>
<path d="M781.344,753.356H751.32v23.406h33.57v11.939h-48.113v-79.674h46.338v11.938H751.32v20.57h30.023V753.356z"/>
<path d="M797.658,710.091c5.438-0.943,13.593-1.652,21.986-1.652c11.467,0,19.268,1.889,24.588,6.383
c4.373,3.662,6.857,9.219,6.857,15.959c0,10.281-6.978,17.258-14.422,19.977v0.354c5.673,2.129,9.102,7.686,11.11,15.367
c2.482,9.932,4.61,19.152,6.267,22.225h-15.014c-1.182-2.363-3.072-8.867-5.319-18.797c-2.245-10.402-6.029-13.713-14.304-13.947
h-7.328v32.744h-14.422V710.091z M812.08,745.317h8.629c9.811,0,15.959-5.199,15.959-13.121c0-8.748-6.148-12.766-15.604-12.766
c-4.61,0-7.567,0.354-8.983,0.709V745.317z"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

View File

@ -1,3 +0,0 @@
{{ define "content" }}
{{ partial "404.html" . }}
{{ end }}

View File

@ -1,81 +0,0 @@
<!DOCTYPE html>
<html lang="{{ .Site.LanguageCode }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
{{ with .Site.Params.author }}<meta name="author" content="{{ . }}">{{ end }}
<meta name="description" content="{{ if .IsPage }}{{ .Site.BaseURL }}{{ else }}{{ .Site.Params.description }}{{ end }}">
{{ with .Site.Params.keywords }}<meta name="keywords" content="{{ . }}">{{ end }}
<meta property="og:site_name" content="{{ .Site.Title }}">
<meta property="og:title" content="{{ block "og-title" . }}{{ .Site.Title }}{{ end }}">
<meta property="og:description" content="{{ if .IsPage }}{{ .Params.description }}{{ else }}{{ .Site.Params.description }}{{ end }}">
<meta property="og:type" content="website">
<meta property="og:url" content="{{ .Permalink }}">
<meta property="og:image" content="{{ if .IsPage }}{{ .Site.BaseURL }}{{ .Params.thumbnail }}{{ else }}{{ .Site.BaseURL }}{{ .Site.Params.thumbnail }}{{ end }}">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="{{ .Permalink }}">
<meta name="twitter:image" content="{{ if .IsPage }}{{ .Site.BaseURL }}{{ .Params.thumbnail }}{{ else }}{{ .Site.BaseURL }}{{ .Site.Params.thumbnail }}{{ end }}">
<base href="{{ .Site.BaseURL }}">
<title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title>
<link rel="canonical" href="{{ .Permalink }}">
{{ if .Site.Params.snsShare }}
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
{{ end }}
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Fira+Mono:400,700">
<link rel="stylesheet" href="{{ "css/normalize.css" | absURL}}">
<link rel="stylesheet" href="{{ "css/style.min.css" | absURL }}">
{{ if .Site.Params.rtl}}
<link rel="stylesheet" href="{{ "css/style-rtl.min.css" | absURL }}">
{{ end }}
{{ range .Site.Params.custom_css }}
<link rel="stylesheet" href="{{ . | absURL }}">
{{ end }}
<link rel="icon" type="image/png" href="{{ "/images/favicon-32x32.png" | absURL }}" sizes="32x32">
<link rel="icon" type="image/png" href="{{ "/images/favicon-16x16.png" | absURL }}" sizes="16x16">
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
{{ .Hugo.Generator }}
<script src="//instant.page/1.2.2" type="module" integrity="sha384-2xV8M5griQmzyiY3CDqh1dn4z3llDVqZDqzjzcY+jCBCk/a5fXJmuZ/40JJAPeoU"></script>
</head>
<body class="{{ if .Site.Params.rtl }}rtl{{ end }}">
<main class="wrapper">
{{ partial "header.html" . }}
<div class="content">
{{ block "content" . }}{{ end }}
</div>
{{ if or (.Site.Params.fixedbarContent) (.Site.Params.snsShare)}}
{{ partial "footer.html" . }}
{{ end }}
</main>
{{ template "_internal/google_analytics.html" . }}
<script src="{{ "js/app.js" | absURL }}"></script>
{{ with .Site.Params.fixedbarContentAfter }}
<script>
(function($) {
$(function() {
$('#privateTrigger').on('click', function() {
$('.private').slideToggle();
$('#privateTriggerText').text("{{ . }}");
});
});
})(jQuery);
</script>
{{ end }}
</body>
</html>

View File

@ -1,9 +0,0 @@
{{ define "og-title" }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}
{{ define "title" }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}
{{ define "content" }}
{{ partial "list.html" . }}
{{ end }}

View File

@ -1,9 +0,0 @@
{{ define "og-title" }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}
{{ define "title" }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}
{{ define "content" }}
{{ partial "page.html" . }}
{{ end }}

View File

@ -1,3 +0,0 @@
{{ define "content" }}
{{ partial "home.html" . }}
{{ end }}

View File

@ -1,7 +0,0 @@
<section class="container centered">
<div class="error">
<h1>404</h1>
<h2>Page Not Found</h2>
<p>Sorry, this page does not exist.<br />You can head back to <a href="{{ .Site.BaseURL }}">homepage</a>.</p>
</div>
</section>

View File

@ -1,32 +0,0 @@
<footer class="footer">
<section class="container">
{{ if .Site.Params.snsShare }}
<div class="sns-shares sp-sns-shares">
<a class="sns-share twitter-share" href="https://twitter.com/intent/tweet?original_referer={{ .Permalink }}&ref_src=twsrc%5Etfw&text={{ .Title }} {{ .Site.Title }}&tw_p=tweetbutton&url={{ .Permalink }}"><i class="fab fa-twitter"></i></a>
<a class="fb btn sns-share fb-share" href="http://www.facebook.com/share.php?u={{ .Permalink }}" onclick="window.open(this.href, 'FBwindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fab fa-facebook-f"></i></a>
<a class="sns-share hatena-share" href="http://b.hatena.ne.jp/entry/{{ .Permalink }}" data-hatena-bookmark-layout="touch" data-hatena-bookmark-width="40" data-hatena-bookmark-height="40" title="このエントリーをはてなブックマークに追加"><i class="fas fa-bookmark"></i></a>
<a class="sns-share line-share" href="https://social-plugins.line.me/lineit/share?url={{ .Permalink }}"><i class="fab fa-line"></i></a>
</div>
{{ end }}
{{ with .Site.Params.footercontent }}
<p>{{.}}</p>
{{ end }}
{{ if not .Site.Params.hideCopyright }} © {{ .Site.LastChange.Format "2006" }} {{ end }} {{ if not .Site.Params.hideCredits}} {{ if not .Site.Params.hideCopyright }} · {{ end }} Powered by <a href="https://gohugo.io/">Hugo</a> & <a href="https://github.com/naro143/hugo-coder-portfolio">CoderPortfolio</a>. {{ end }}
</section>
</footer>
<div class="fixed-bar">
<section class="container">
{{ with .Site.Params.fixedbarContent }}
<p id="privateTriggerText">{{.}}<a id="privateTrigger">Click!</a></p>
{{ end }}
{{ if .Site.Params.snsShare }}
<div class="sns-shares pc-sns-shares">
<a class="sns-share twitter-share" href="https://twitter.com/intent/tweet?original_referer={{ .Permalink }}&ref_src=twsrc%5Etfw&text={{ .Title }} {{ .Site.Title }}&tw_p=tweetbutton&url={{ .Permalink }}"><i class="fab fa-twitter"></i></a>
<a class="fb btn sns-share fb-share" href="http://www.facebook.com/share.php?u={{ .Permalink }}" onclick="window.open(this.href, 'FBwindow', 'width=650, height=450, menubar=no, toolbar=no, scrollbars=yes'); return false;"><i class="fab fa-facebook-f"></i></a>
<a class="sns-share hatena-share" href="http://b.hatena.ne.jp/entry/{{ .Permalink }}" data-hatena-bookmark-layout="touch" data-hatena-bookmark-width="40" data-hatena-bookmark-height="40" title="このエントリーをはてなブックマークに追加"><i class="fas fa-bookmark"></i></a>
<a class="sns-share line-share" href="https://social-plugins.line.me/lineit/share?url={{ .Permalink }}"><i class="fab fa-line"></i></a>
</div>
{{ end }}
</section>
</div>

View File

@ -1,42 +0,0 @@
<nav class="navigation">
<section class="container">
<a class="navigation-title" href="{{ print "/" | relLangURL }}">{{ .Site.Title }}</a>
<input type="checkbox" id="menu-control"/>
<label class="menu-mobile {{ if $.Site.Params.rtl }} float-left {{ else }} float-right {{ end }}" for="menu-control">
<span class="btn-mobile {{ if $.Site.Params.rtl }} float-left {{ else }} float-right {{ end }}">&#9776;</span>
<ul class="navigation-list">
{{ with .Site.Menus.main}}
{{ range sort . }}
<li class="navigation-item {{ if $.Site.Params.itemscentered }} align-center {{ else }} {{ if $.Site.Params.rtl }} align-right {{ else }} align-left {{ end }} {{ end }}">
<a class="navigation-link" href="{{ .URL | absLangURL }}">{{ .Name }}</a>
</li>
{{ end }}
{{ end }}
{{ if .Site.IsMultiLingual }}
{{ $node := . }}
{{ .Scratch.Set "separator" true }}
{{ with .Site.Params.LangSeparator }}
<li class= "{{ if $.Site.Params.itemscentered }} mobile-menu-lang-separator-centered {{ else }} mobile-menu-lang-separator-full {{ end }}">
<hr />
</li>
{{ end }}
{{ range .Site.Home.AllTranslations }}
{{ if ne $.Site.Language .Language }}
{{ if $node.Scratch.Get "separator" }}
{{ with .Site.Params.LangSeparator }}
<li class="multilingual-separator">
<p>{{ . }}</p>
</li>
{{ end }}
{{ $node.Scratch.Set "separator" false }}
{{ end }}
<li class="navigation-item {{ if $.Site.Params.itemscentered }} align-center {{ else }} {{ if $.Site.Params.rtl }} align-right {{ else }} align-left {{ end }} {{ end }}">
<a href="{{ .Permalink }}">{{ .Language.LanguageName }}</a>
</li>
{{ end }}
{{ end }}
{{ end }}
</ul>
</label>
</section>
</nav>

View File

@ -1,16 +0,0 @@
<section class="container centered">
<div class="about">
{{ with .Site.Params.avatarurl }}
<div class="avatar"><img src="{{.}}" alt="avatar"></div>
{{ end }}
<h1>{{ .Site.Params.author }}</h1>
<h2>{{ .Site.Params.info }}</h2>
{{ with .Site.Params.social }}
<ul>
{{ range sort .}}
<li><a href="{{ .url }}">{{ .name }}</a></li>
{{ end }}
</ul>
{{ end }}
</div>
</section>

View File

@ -1,11 +0,0 @@
<section class="container list">
<h1 class="title">{{ .Title }}</h1>
<ul>
{{ range .Paginator.Pages }}
<li>
<span>{{ .Date.Format "January 2, 2006" }}</span><a href="{{ .URL }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
{{ partial "pagination.html" . }}
</section>

View File

@ -1,9 +0,0 @@
<section class="container page">
<article>
<header>
<h1>{{ .Title }}</h1>
</header>
{{ .Content }}
</article>
</section>

View File

@ -1,48 +0,0 @@
{{ $paginator := .Paginator }}
{{ $adjacent_links := 2 }}
{{ $max_links := (add (mul $adjacent_links 2) 1) }}
{{ $lower_limit := (add $adjacent_links 1) }}
{{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }}
{{ if gt $paginator.TotalPages 1 }}
<ul class="pagination">
{{ if $paginator.HasPrev }}
{{ if ne $paginator.PageNumber 1 }}
<li><a href="{{ $paginator.First.URL }}">&laquo;</a></li>
{{ end }}
<li class="hidden"><a href="{{ $paginator.Prev.URL }}">&lsaquo;</a></li>
{{ end }}
{{ range $paginator.Pagers }}
{{ $.Scratch.Set "page_number_flag" false }}
{{ if gt $paginator.TotalPages $max_links }}
{{ if le $paginator.PageNumber $lower_limit }}
{{ if le .PageNumber $max_links }}
{{ $.Scratch.Set "page_number_flag" true }}
{{ end }}
{{ else if ge $paginator.PageNumber $upper_limit }}
{{ if gt .PageNumber (sub $paginator.TotalPages $max_links) }}
{{ $.Scratch.Set "page_number_flag" true }}
{{ end }}
{{ else }}
{{ if and ( ge .PageNumber (sub $paginator.PageNumber $adjacent_links) ) ( le .PageNumber (add $paginator.PageNumber $adjacent_links) ) }}
{{ $.Scratch.Set "page_number_flag" true }}
{{ end }}
{{ end }}
{{ else }}
{{ $.Scratch.Set "page_number_flag" true }}
{{ end }}
{{ if eq ($.Scratch.Get "page_number_flag") true }}
{{ if eq . $paginator }}
<li>{{ .PageNumber }}</li>
{{ else }}
<li><a href="{{ .URL }}">{{ .PageNumber }}</a></li>
{{ end }}
{{ end }}
{{ end }}
{{ if $paginator.HasNext }}
<li class="hidden"><a href="{{ $paginator.Next.URL }}">&rsaquo;</a></li>
{{ if ne $paginator.PageNumber $paginator.TotalPages }}
<li><a href="{{ $paginator.Last.URL }}">&raquo;</a></li>
{{ end }}
{{ end }}
</ul>
{{ end }}

View File

@ -1,42 +0,0 @@
<section class="container post">
<article>
<header>
<h1 class="title">{{ .Title }}</h1>
<h2 class="date">{{ .Date.Format "January 2, 2006" }}</h2>
{{ if eq .Params.math "true" }}
<script type="text/javascript" async
src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS-MML_HTMLorMML-full">
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$']],
displayMath: [['$$','$$']],
processEscapes: true,
processEnvironments: true,
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre'],
TeX: { extensions: ["AMSmath.js", "AMSsymbols.js"] }
}
});
MathJax.Hub.Queue(function() {
// Fix <code> tags after MathJax finishes running. This is a
// hack to overcome a shortcoming of Markdown. Discussion at
// https://github.com/mojombo/jekyll/issues/199
var all = MathJax.Hub.getAllJax(), i;
for(i = 0; i < all.length; i += 1) {
all[i].SourceElement().parentNode.className += ' has-jax';
}
});
</script>
{{ end }}
</header>
{{ .Content }}
</article>
<br/>
{{ if and (not (eq .Site.DisqusShortname "" )) (eq (.Params.disable_comments | default false) false)}}
{{ template "_internal/disqus.html" . }}
{{ end }}
</section>

View File

@ -1,9 +0,0 @@
{{ define "og-title" }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}
{{ define "title" }}
{{ .Title }} - {{ .Site.Title }}
{{ end }}
{{ define "content" }}
{{ partial "post.html" . }}
{{ end }}

View File

@ -1,19 +0,0 @@
{{ if .IsNamedParams }}
{{ $.Scratch.Add "image" ( .Get "image") }}
{{ $.Scratch.Add "alt" ( .Get "alt") }}
{{ else }}
{{ $.Scratch.Add "image" "" }}
{{ $.Scratch.Add "alt" "" }}
{{ end }}
{{ $image := $.Scratch.Get "image" }}
{{ $alt := $.Scratch.Get "alt" }}
<div class="portfolio">
<div class="portfolio-inner">
<div class="portfolio-image"><img src="{{ $image }}" alt="{{ $alt }}"></div>
<div class="portfolio-content">
{{ .Inner }}
</div>
</div>
</div>

View File

@ -1,5 +0,0 @@
<div class="private">
<div class="private-inner">
{{ .Inner }}
</div>
</div>

View File

@ -1,349 +0,0 @@
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
========================================================================== */
/**
* 1. Correct the line height in all browsers.
* 2. Prevent adjustments of font size after orientation changes in iOS.
*/
html {
line-height: 1.15; /* 1 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
========================================================================== */
/**
* Remove the margin in all browsers.
*/
body {
margin: 0;
}
/**
* Render the `main` element consistently in IE.
*/
main {
display: block;
}
/**
* Correct the font size and margin on `h1` elements within `section` and
* `article` contexts in Chrome, Firefox, and Safari.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/* Grouping content
========================================================================== */
/**
* 1. Add the correct box sizing in Firefox.
* 2. Show the overflow in Edge and IE.
*/
hr {
box-sizing: content-box; /* 1 */
height: 0; /* 1 */
overflow: visible; /* 2 */
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
pre {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/* Text-level semantics
========================================================================== */
/**
* Remove the gray background on active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* 1. Remove the bottom border in Chrome 57-
* 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
*/
abbr[title] {
border-bottom: none; /* 1 */
text-decoration: underline; /* 2 */
text-decoration: underline dotted; /* 2 */
}
/**
* Add the correct font weight in Chrome, Edge, and Safari.
*/
b,
strong {
font-weight: bolder;
}
/**
* 1. Correct the inheritance and scaling of font size in all browsers.
* 2. Correct the odd `em` font sizing in all browsers.
*/
code,
kbd,
samp {
font-family: monospace, monospace; /* 1 */
font-size: 1em; /* 2 */
}
/**
* Add the correct font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` elements from affecting the line height in
* all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;
}
/* Embedded content
========================================================================== */
/**
* Remove the border on images inside links in IE 10.
*/
img {
border-style: none;
}
/* Forms
========================================================================== */
/**
* 1. Change the font styles in all browsers.
* 2. Remove the margin in Firefox and Safari.
*/
button,
input,
optgroup,
select,
textarea {
font-family: inherit; /* 1 */
font-size: 100%; /* 1 */
line-height: 1.15; /* 1 */
margin: 0; /* 2 */
}
/**
* Show the overflow in IE.
* 1. Show the overflow in Edge.
*/
button,
input { /* 1 */
overflow: visible;
}
/**
* Remove the inheritance of text transform in Edge, Firefox, and IE.
* 1. Remove the inheritance of text transform in Firefox.
*/
button,
select { /* 1 */
text-transform: none;
}
/**
* Correct the inability to style clickable types in iOS and Safari.
*/
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
/**
* Remove the inner border and padding in Firefox.
*/
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
border-style: none;
padding: 0;
}
/**
* Restore the focus styles unset by the previous rule.
*/
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
outline: 1px dotted ButtonText;
}
/**
* Correct the padding in Firefox.
*/
fieldset {
padding: 0.35em 0.75em 0.625em;
}
/**
* 1. Correct the text wrapping in Edge and IE.
* 2. Correct the color inheritance from `fieldset` elements in IE.
* 3. Remove the padding so developers are not caught out when they zero out
* `fieldset` elements in all browsers.
*/
legend {
box-sizing: border-box; /* 1 */
color: inherit; /* 2 */
display: table; /* 1 */
max-width: 100%; /* 1 */
padding: 0; /* 3 */
white-space: normal; /* 1 */
}
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
progress {
vertical-align: baseline;
}
/**
* Remove the default vertical scrollbar in IE 10+.
*/
textarea {
overflow: auto;
}
/**
* 1. Add the correct box sizing in IE 10.
* 2. Remove the padding in IE 10.
*/
[type="checkbox"],
[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Correct the cursor style of increment and decrement buttons in Chrome.
*/
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Correct the odd appearance in Chrome and Safari.
* 2. Correct the outline style in Safari.
*/
[type="search"] {
-webkit-appearance: textfield; /* 1 */
outline-offset: -2px; /* 2 */
}
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* 1. Correct the inability to style clickable types in iOS and Safari.
* 2. Change font properties to `inherit` in Safari.
*/
::-webkit-file-upload-button {
-webkit-appearance: button; /* 1 */
font: inherit; /* 2 */
}
/* Interactive
========================================================================== */
/*
* Add the correct display in Edge, IE 10+, and Firefox.
*/
details {
display: block;
}
/*
* Add the correct display in all browsers.
*/
summary {
display: list-item;
}
/* Misc
========================================================================== */
/**
* Add the correct display in IE 10+.
*/
template {
display: none;
}
/**
* Add the correct display in IE 10.
*/
[hidden] {
display: none;
}

View File

@ -1 +0,0 @@
body.rtl{direction:rtl}body.rtl blockquote{border-right:2px solid #dcdcdc;padding-right:1.6rem}body.rtl table tr td:first-child,body.rtl table tr th:first-child{border-right:0}body.rtl table tr td:last-child,body.rtl table tr th:last-child{border-left:0}body.rtl .navigation ul li{float:right}body.rtl .list ul li span{text-align:left;margin-left:3rem}@media only screen and (min-device-width:320px) and (max-device-width:480px){body.rtl .list ul li span{text-align:right}}

File diff suppressed because one or more lines are too long

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 398 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 559 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 69 KiB

File diff suppressed because one or more lines are too long

View File

@ -1,5 +0,0 @@
@bg-color: #fefefe;
@fg-color: #323232;
@darker-bg-color: #dcdcdc;
@darker-fg-color: #000;
@link-color: #3366CC;

View File

@ -1,41 +0,0 @@
@import "colors.less";
body.rtl {
direction: rtl;
blockquote {
border-right: 2px solid @darker-bg-color;
padding-right: 1.6rem;
}
table tr td:first-child,
table tr th:first-child {
border-right: 0;
}
table tr td:last-child,
table tr th:last-child {
border-left: 0;
}
.navigation {
ul {
li {
float: right;
}
}
}
.list {
ul {
li {
span {
text-align: left;
margin-left: 3.0rem;
@media only screen and (min-device-width : 320px) and (max-device-width : 480px) {
text-align: right;
}
}
}
}
}
}

View File

@ -1,919 +0,0 @@
@import "colors.less";
*,
*:after,
*:before {
box-sizing: inherit;
}
html {
box-sizing: border-box;
font-size: 62.5%;
}
body {
display: flex;
color: @fg-color;
background-color: @bg-color;
font-family: 'Fira Mono', monospace;
font-size: 1.6em;
font-weight: 400;
letter-spacing: 0.0625em;
line-height: 1.8em;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 1.4em;
line-height: 1.6em;
}
}
a {
font-weight: 700;
color: @darker-fg-color;
text-decoration: none;
&:focus,
&:hover {
text-decoration: underline;
}
}
p {
margin: 1.6rem 0 1.6rem 0;
a {
font-weight: 400;
color: @darker-fg-color;
text-decoration: underline;
text-underline-position: under;
&:focus,
&:hover {
color: @link-color;
}
}
}
h1,
h2,
h3,
h4,
h5,
h6 {
color: @darker-fg-color;
text-transform: uppercase;
letter-spacing: 0.0625em;
margin: 3.2rem 0 1.6rem 0;
}
h1 {
font-size: 3.2rem;
line-height: 3.2rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 2.8rem;
line-height: 2.8rem;
}
}
h2 {
font-size: 2.8rem;
line-height: 2.8rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 2.4rem;
line-height: 2.4rem;
}
}
h3 {
font-size: 2.4rem;
line-height: 2.4rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 2.0rem;
line-height: 2.0rem;
}
}
h4 {
font-size: 2.2rem;
line-height: 2.2rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 1.8rem;
line-height: 1.8rem;
}
}
h5 {
font-size: 2.0rem;
line-height: 2.0rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 1.6rem;
line-height: 1.6rem;
}
}
h6 {
font-size: 1.4rem;
line-height: 1.4rem;
}
pre {
margin: 1.6rem 0 1.0rem 0;
padding: 1.6rem;
overflow-x: auto;
}
code {
display: inline-block;
background-color: @darker-fg-color;
color: @bg-color;
padding: 0.4rem 0.8rem 0.4rem 0.8rem;
}
blockquote {
border-left: 2px solid @darker-bg-color;
padding-left: 1.6rem;
font-style: italic;
}
th, td {
padding: 1.6rem;
}
table {
border-collapse: collapse;
}
table td, table th {
border: 2px solid @darker-fg-color;
}
table tr:first-child th {
border-top: 0;
}
table tr:last-child td {
border-bottom: 0;
}
table tr td:first-child,
table tr th:first-child {
border-left: 0;
}
table tr td:last-child,
table tr th:last-child {
border-right: 0;
}
img {
max-width: 100%;
}
.wrapper {
display: flex;
flex-direction: column;
min-height: 100vh;
width: 100%;
}
.container {
margin: 0 auto;
max-width: 120.0rem;
width: 100%;
padding-left: 2.0rem;
padding-right: 2.0rem;
}
.navigation {
height: 6.0rem;
width: 100%;
a {
display: inline;
font-size: 1.6rem;
text-transform: uppercase;
line-height: 6.0rem;
letter-spacing: 0.1rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 768px) {
font-size: 1.6rem;
}
}
ul {
list-style: none;
margin-bottom: 0;
margin-top: 0;
li {
float: left;
margin: 0;
position: relative;
a {
margin-left: 1.0rem;
margin-right: 1.0rem;
}
@media only screen and (min-device-width: 320px) and (max-device-width: 768px) {
float: none !important;
}
}
@media only screen and (min-device-width: 320px) and (max-device-width: 768px) {
visibility: hidden;
opacity: 0;
max-height: 0;
z-index: 5;
top: 5rem;
right: 0;
width: 100%;
position: absolute;
background-color: rgba(254, 254, 254, 0.98);
padding: 0;
border-bottom: solid 2px #E2DFE1;
transition: opacity 0.25s, max-height 0.15s linear;
}
}
}
#menu-control {
display: none;
}
.btn-mobile {
display: none;
}
.mobile-menu-lang-separator-centered {
display: none;
}
@media only screen and (min-device-width: 320px) and (max-device-width: 768px) {
.btn-mobile {
display: block;
font-size: 2.0rem;
color: black;
cursor: pointer;
margin-top: 1.5rem;
}
#menu-control:checked + label .btn-mobile {
color: #E2DFE1;
}
#menu-control:checked + label ul {
visibility: visible;
opacity: 1;
max-height: 100rem;
}
.navigation-item {
position: relative;
}
.mobile-menu-lang-separator-centered {
display: block;
padding-left: 7rem;
padding-right: 7rem;
}
.mobile-menu-lang-separator-full {
padding-left: 1.5rem;
padding-right: 1.5rem;
}
.multilingual-separator {
display: none;
}
.align-left {
text-align: left;
padding-left: 1rem;
}
.align-right {
text-align: right;
padding-right: 1rem;
}
.align-center {
text-align: center;
}
}
.content {
flex: 1;
margin-top: 1.6rem;
margin-bottom: 3.2rem;
article {
header {
margin-top: 3.2rem;
margin-bottom: 3.2rem;
h1, h2 {
margin: 0;
}
h2 {
margin-top: 1.0rem;
font-size: 1.8rem;
color: @fg-color;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 1.6rem;
}
}
}
}
}
.avatar img {
width: 20rem;
height: auto;
border-radius: 50%;
@media only screen and (max-device-width: 768px) {
width: 10rem;
}
}
.list {
ul {
margin: 3.2rem 0 3.2rem 0;
list-style: none;
padding: 0;
li {
font-size: 1.6rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 1.4rem;
margin: 1.6rem 0 1.6rem 0;
}
span {
display: inline-block;
text-align: right;
width: 20.0rem;
margin-right: 3.0rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
display: block;
text-align: left;
}
}
a {
text-transform: uppercase;
}
}
}
}
.pagination {
margin-top: 6.0rem;
text-align: center;
li {
display: inline;
text-align: center;
span {
margin: 0;
text-align: center;
width: 3.2rem;
}
a {
span {
margin: 0;
text-align: center;
width: 3.2rem;
}
}
}
}
.centered {
display: flex;
height: 100%;
align-items: center;
justify-content: center;
.about {
text-align: center;
h1 {
margin-top: 2.0rem;
margin-bottom: 0.5rem;
}
h2 {
margin-top: 1.0rem;
margin-bottom: 0.5rem;
font-size: 2.4rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 2.0rem;
}
}
ul {
list-style: none;
margin: 3.0rem 0 1.0rem 0;
padding: 0;
li {
display: inline-block;
position: relative;
a {
text-transform: uppercase;
margin-left: 1.0rem;
margin-right: 1.0rem;
font-size: 1.6rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 1.4rem;
}
}
}
}
}
.error {
text-align: center;
h1 {
margin-top: 2.0rem;
margin-bottom: 0.5rem;
font-size: 4.6rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 3.2rem;
}
}
h2 {
margin-top: 2.0rem;
margin-bottom: 3.2rem;
font-size: 3.2rem;
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) {
font-size: 2.8rem;
}
}
}
}
.footer {
width: 100%;
text-align: center;
line-height: 2.0rem;
margin-bottom: 1.0rem;
}
.float-right {
float: right;
}
.float-left {
float: left;
}
// ### AsciiDoc style enhancements ###
.title {
font-weight: bold;
}
a {
position: relative;
transition: 0.5s;
}
a:before, a:after {
position: absolute;
bottom: -2px;
content: "";
display: inline-block;
width: 0;
height: 2px;
background: #F30034;
transition: 0.5s;
}
a:before {
left: 50%;
}
a:after {
right: 50%;
}
a:hover {
text-decoration: none;
}
a:hover:before, a:hover:after {
width: 50%;
}
.private {
display: none;
}
.private-inner {
display: table-cell;
}
.portfolio .portfolio-inner {
display: flex;
align-items: stretch;
}
.portfolio .portfolio-inner .portfolio-image {
display: flex;
align-items: center;
margin-right: 5%;
width: 45%;
}
.portfolio .portfolio-inner .portfolio-content {
flex: 1;
}
#privateTrigger {
cursor: pointer;
}
#privateTrigger:hover:before, #privateTrigger:hover:after {
width: 0;
}
.navigation {
height: auto;
box-shadow: 0 0 1px rgba(0, 0, 0, 0.08);
border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.fixed-bar {
position: fixed;
bottom: 0;
margin: 0;
height: 65px;
width: 100%;
border-top: 1px solid rgba(0, 0, 0, 0.05);
background: #fefefe;
}
.fixed-bar .container {
display: flex;
justify-content: center;
align-items: center;
position: relative;
height: 65px;
}
code {
background: #364549 !important;
}
.sns-shares {
display: flex;
align-items: center;
justify-content: space-around;
position: absolute;
right: 0;
}
.sns-shares .sns-share {
display: flex;
align-items: center;
justify-content: space-around;
height: 56px;
width: 56px;
text-decoration: none;
}
.sns-shares .sns-share:hover:before, .sns-shares .sns-share:hover:after {
width: 0;
}
.sns-shares .twitter-share .fa-twitter {
font-size: 24px;
}
.sns-shares .fb-share .fa-facebook-f {
font-size: 24px;
}
.sns-shares .hatena-share .fa-bookmark {
font-size: 24px;
}
.sns-shares .line-share .fa-line {
font-size: 30px;
}
.sp-sns-shares {
display: none;
}
@media (max-width: 920px) {
.pc-sns-shares {
display: none;
}
.sp-sns-shares {
display: flex;
position: relative;
justify-content: space-around;
width: 100%;
}
.portfolio .portfolio-inner {
display: block;
}
.portfolio .portfolio-inner .portfolio-image {
width: 100%;
}
}
/* vBackground */
.chroma {
color: #e3e3e3;
background-color: #364549;
}
/* vError */
.chroma .err {
color: #dddddd;
border-bottom: 2px dotted #c01b1b;
}
/* LineTableTD */
.chroma .lntd {
vertical-align: top;
padding: 0;
margin: 0;
border: 0;
}
/* LineTable */
.chroma .lntable {
border-spacing: 0;
padding: 0;
margin: 0;
border: 0;
width: auto;
overflow: auto;
display: block;
}
/* LineHighlight */
.chroma .hl {
display: block;
width: 100%;
background-color: #ffffcc;
}
/* LineNumbersTable */
.chroma .lnt {
margin-right: 0.4em;
padding: 0 0.4em 0 0.4em;
}
/* LineNumbers */
.chroma .ln {
margin-right: 0.4em;
padding: 0 0.4em 0 0.4em;
}
/* vKeyword */
.chroma .k {
color: #ebd247;
}
/* KeywordConstant */
.chroma .kc {
color: #ebd247;
}
/* KeywordDeclaration */
.chroma .kd {
color: #ebd247;
}
/* vKeywordNamespace */
.chroma .kn {
color: #ff8095;
}
/* KeywordPseudo */
.chroma .kp {
color: #ebd247;
}
/* KeywordReserved */
.chroma .kr {
color: #ebd247;
}
/* KeywordType */
.chroma .kt {
color: #ebd247;
}
/* vNameAttribute */
.chroma .na {
color: #8bdf4c;
}
/* NameClass */
.chroma .nc {
color: #8bdf4c;
}
/* NameConstant */
.chroma .no {
color: #ebd247;
}
/* NameDecorator */
.chroma .nd {
color: #8bdf4c;
}
/* NameException */
.chroma .ne {
color: #8bdf4c;
}
/* vNameFunction */
.chroma .nf {
color: #8bdf4c;
}
/* NameOther */
.chroma .nx {
color: #8bdf4c;
}
/* vNameTag */
.chroma .nt {
color: #ff8095;
}
/* Literal */
.chroma .l {
color: #a980f5;
}
/* LiteralDate */
.chroma .ld {
color: #41b7d7;
}
/* LiteralString */
.chroma .s {
color: #41b7d7;
}
/* LiteralStringAffix */
.chroma .sa {
color: #41b7d7;
}
/* LiteralStringBacktick */
.chroma .sb {
color: #41b7d7;
}
/* LiteralStringChar */
.chroma .sc {
color: #41b7d7;
}
/* LiteralStringDelimiter */
.chroma .dl {
color: #41b7d7;
}
/* LiteralStringDoc */
.chroma .sd {
color: #41b7d7;
}
/* vLiteralStringDouble */
.chroma .s2 {
color: #41b7d7;
}
/* LiteralStringEscape */
.chroma .se {
color: #a980f5;
}
/* LiteralStringHeredoc */
.chroma .sh {
color: #41b7d7;
}
/* LiteralStringInterpol */
.chroma .si {
color: #41b7d7;
}
/* LiteralStringOther */
.chroma .sx {
color: #41b7d7;
}
/* LiteralStringRegex */
.chroma .sr {
color: #41b7d7;
}
/* LiteralStringSingle */
.chroma .s1 {
color: #41b7d7;
}
/* LiteralStringSymbol */
.chroma .ss {
color: #41b7d7;
}
/* LiteralNumber */
.chroma .m {
color: #a980f5;
}
/* LiteralNumberBin */
.chroma .mb {
color: #a980f5;
}
/* LiteralNumberFloat */
.chroma .mf {
color: #a980f5;
}
/* LiteralNumberHex */
.chroma .mh {
color: #a980f5;
}
/* vLiteralNumberInteger */
.chroma .mi {
color: #a980f5;
}
/* LiteralNumberIntegerLong */
.chroma .il {
color: #a980f5;
}
/* LiteralNumberOct */
.chroma .mo {
color: #a980f5;
}
/* vOperator */
.chroma .o {
color: #ff8095;
}
/* OperatorWord */
.chroma .ow {
color: #ff8095;
}
/* vComment */
.chroma .c {
color: #9dabae;
}
/* CommentHashbang */
.chroma .ch {
color: #9dabae;
}
/* CommentMultiline */
.chroma .cm {
color: #9dabae;
}
/* CommentSingle */
.chroma .c1 {
color: #9dabae;
}
/* CommentSpecial */
.chroma .cs {
color: #9dabae;
}
/* CommentPreproc */
.chroma .cp {
color: #9dabae;
}
/* CommentPreprocFile */
.chroma .cpf {
color: #9dabae;
}
/* GenericDeleted */
.chroma .gd {
color: #ff8095;
}
/* GenericEmph */
.chroma .ge {
font-style: italic;
}
/* GenericInserted */
.chroma .gi {
color: #8bdf4c;
}
/* GenericStrong */
.chroma .gs {
font-weight: bold;
}
/* GenericSubheading */
.chroma .gu {
color: #9dabae;
}

View File

@ -1,31 +0,0 @@
name = "Coder Portfolio"
license = "MIT"
licenselink = "https://github.com/naro143/hugo-coder-portfolio/blob/master/LICENSE.md"
description = "It is a theme to have you know yourself than developed based on hugo-coder"
homepage = "https://github.com/naro143/hugo-coder-portfolio"
tags = [
"blog",
"minimal",
"minimalist",
"responsive",
"simple",
"clean",
"personal"
]
features = [
"analytics",
"favicon",
"pagination",
"single-column",
"syntax-highlighting"
]
min_version = "0.32"
[author]
name = "Yusuke Ishimi"
homepage = "https://naro143.github.io"
[original]
author = "Luiz F. A. de Prá"
homepage = "https://luizdepra.com"
repo = "https://github.com/luizdepra/hugo-coder"