Removed some unused files
|
@ -1,6 +0,0 @@
|
|||
+++
|
||||
draft = true
|
||||
date = {{ .Date }}
|
||||
title = ""
|
||||
slug = ""
|
||||
+++
|
|
@ -1,11 +0,0 @@
|
|||
+++
|
||||
draft = true
|
||||
date = {{ .Date }}
|
||||
title = ""
|
||||
description = ""
|
||||
slug = ""
|
||||
tags = []
|
||||
categories = []
|
||||
externalLink = ""
|
||||
series = []
|
||||
+++
|
|
@ -1,131 +0,0 @@
|
|||
baseurl = "http://www.example.com"
|
||||
title = "johndoe"
|
||||
|
||||
theme = "hugo-coder"
|
||||
|
||||
languagecode = "en"
|
||||
defaultcontentlanguage = "en"
|
||||
|
||||
paginate = 20
|
||||
canonifyurls = true
|
||||
|
||||
pygmentsstyle = "b2"
|
||||
pygmentscodefences = true
|
||||
pygmentscodefencesguesssyntax = true
|
||||
|
||||
disqusShortname = "yourdiscussshortname"
|
||||
|
||||
[params]
|
||||
author = "John Doe"
|
||||
description = "John Doe's personal website"
|
||||
keywords = "blog,developer,personal"
|
||||
info = "Full Stack DevOps and Magician"
|
||||
avatarurl = "images/avatar.jpg"
|
||||
footercontent = "Enter a text here."
|
||||
|
||||
dateformat = "January 2, 2006"
|
||||
|
||||
hideCredits = false
|
||||
hideCopyright = false
|
||||
|
||||
# Git Commit in Footer, uncomment the line below to enable it.
|
||||
commit = "https://github.com/luizdepra/hugo-coder/tree/"
|
||||
|
||||
rtl = false
|
||||
|
||||
# Use inverted colors
|
||||
inverted = false
|
||||
|
||||
# Series see also post count
|
||||
maxSeeAlsoItems = 5
|
||||
|
||||
# Custom CSS
|
||||
custom_css = []
|
||||
|
||||
[taxonomies]
|
||||
series = "series"
|
||||
|
||||
[[params.social]]
|
||||
name = "Github"
|
||||
icon = "fab fa-github"
|
||||
weight = 1
|
||||
url = "https://github.com/johndoe/"
|
||||
[[params.social]]
|
||||
name = "Gitlab"
|
||||
icon = "fab fa-gitlab"
|
||||
weight = 2
|
||||
url = "https://gitlab.com/johndoe/"
|
||||
[[params.social]]
|
||||
name = "Twitter"
|
||||
icon = "fab fa-twitter"
|
||||
weight = 3
|
||||
url = "https://twitter.com/johndoe/"
|
||||
[[params.social]]
|
||||
name = "LinkedIn"
|
||||
icon = "fab fa-linkedin"
|
||||
weight = 4
|
||||
url = "https://www.linkedin.com/in/johndoe/"
|
||||
[[params.social]]
|
||||
name = "Medium"
|
||||
icon = "fab fa-medium"
|
||||
weight = 5
|
||||
url = "https://medium.com/@johndoe"
|
||||
|
||||
|
||||
[languages]
|
||||
[languages.en]
|
||||
languagename = "English"
|
||||
|
||||
[[languages.en.menu.main]]
|
||||
name = "About"
|
||||
weight = 1
|
||||
url = "/about/"
|
||||
|
||||
[[languages.en.menu.main]]
|
||||
name = "Blog"
|
||||
weight = 2
|
||||
url = "/posts/"
|
||||
|
||||
[[languages.en.menu.main]]
|
||||
name = "Projects"
|
||||
weight = 3
|
||||
url = "/projects/"
|
||||
|
||||
[[languages.en.menu.main]]
|
||||
name = "Contact me"
|
||||
weight = 5
|
||||
url = "/contact/"
|
||||
|
||||
|
||||
[languages.pt-br]
|
||||
languagename = "Português"
|
||||
title = "João Ninguém"
|
||||
|
||||
[languages.pt-br.params]
|
||||
author = "João Ninguém"
|
||||
info = "Full Stack DevOps e Mágico"
|
||||
description = "Sítio pessoal de João Ninguém"
|
||||
keywords = "blog,desenvolvedor,pessoal"
|
||||
footercontent = "Coloque algum texto aqui."
|
||||
|
||||
[languages.pt-br.menu]
|
||||
|
||||
[[languages.pt-br.menu.main]]
|
||||
name = "Sobre"
|
||||
weight = 1
|
||||
url = "/pt-br/about/"
|
||||
|
||||
[[languages.pt-br.menu.main]]
|
||||
name = "Blog"
|
||||
weight = 2
|
||||
url = "/pt-br/posts/"
|
||||
|
||||
[[languages.pt-br.menu.main]]
|
||||
name = "Projetos"
|
||||
weight = 3
|
||||
url = "/pt-br/projects/"
|
||||
|
||||
[[languages.pt-br.menu.main]]
|
||||
name = "Contato"
|
||||
weight = 5
|
||||
url = "/pt-br/contact/"
|
|
@ -1,29 +0,0 @@
|
|||
+++
|
||||
title = "About Hugo"
|
||||
slug = "about"
|
||||
+++
|
||||
|
||||
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!
|
|
@ -1,6 +0,0 @@
|
|||
+++
|
||||
title = "Sobre Hugo"
|
||||
slug = "about"
|
||||
+++
|
||||
|
||||
Em construção... Aguarde!
|
|
@ -1,6 +0,0 @@
|
|||
+++
|
||||
title = "Contact"
|
||||
slug = "contact"
|
||||
+++
|
||||
|
||||
Follow me, @johndoe.
|
|
@ -1,6 +0,0 @@
|
|||
+++
|
||||
title = "Contato"
|
||||
slug = "contact"
|
||||
+++
|
||||
|
||||
Me siga em @joaoninguem.
|
|
@ -1,9 +0,0 @@
|
|||
+++
|
||||
date = "2018-12-31"
|
||||
title = "Dummy"
|
||||
slug = "dummy"
|
||||
tags = ["hugo", "i18n"]
|
||||
categories = ["blog"]
|
||||
+++
|
||||
|
||||
Nada para ver aqui!
|
|
@ -1,15 +0,0 @@
|
|||
+++
|
||||
date = "2019-01-17"
|
||||
title = "Hugo coder wiki"
|
||||
slug = "hugo-coder-wiki"
|
||||
tags = [
|
||||
"hugo",
|
||||
"development",
|
||||
"themes"
|
||||
]
|
||||
categories = [
|
||||
"Development",
|
||||
]
|
||||
externalLink = "https://github.com/luizdepra/hugo-coder/wiki"
|
||||
series = ["Hugo"]
|
||||
+++
|
|
@ -1,344 +0,0 @@
|
|||
+++
|
||||
date = "2014-04-02"
|
||||
title = "(Hu)go Template Primer"
|
||||
slug = "hugo-template-primer"
|
||||
tags = [
|
||||
"go",
|
||||
"golang",
|
||||
"templates",
|
||||
"themes",
|
||||
"development",
|
||||
]
|
||||
categories = [
|
||||
"Development",
|
||||
"golang",
|
||||
]
|
||||
series = ["Getting Started", "Hugo"]
|
||||
+++
|
||||
|
||||
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 © 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/>
|
|
@ -1,88 +0,0 @@
|
|||
+++
|
||||
date = "2014-04-02"
|
||||
title = "Getting Started with Hugo"
|
||||
tags = [
|
||||
"go",
|
||||
"golang",
|
||||
"hugo",
|
||||
"development",
|
||||
]
|
||||
categories = [
|
||||
"Development",
|
||||
"golang",
|
||||
]
|
||||
series = ["Getting Started", "Hugo"]
|
||||
+++
|
||||
|
||||
## 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.
|
|
@ -1,167 +0,0 @@
|
|||
+++
|
||||
date = "2014-03-10"
|
||||
title = "Migrate to Hugo from Jekyll"
|
||||
description = "The post explains how to migrate from from Jekyll to Hugo."
|
||||
series = ["Getting Started", "Hugo"]
|
||||
+++
|
||||
|
||||
Table of Contents
|
||||
=================
|
||||
|
||||
1. [Move static content to `static`](#move-static-content-to-static)
|
||||
2. [Create your Hugo configuration file](#create-your-hugo-configuration-file)
|
||||
3. [Set your configuration publish folder to `site`](#set-your-configuration-publish-folder-to-site)
|
||||
4. [Convert Jekyll templates to Hugo templates](#convert-jekyll-templates-to-hugo-templates)
|
||||
5. [Convert Jekyll plugins to Hugo shortcodes](#convert-jekyll-plugins-to-hugo-shortcodes)
|
||||
* [Implementation](#implementation)
|
||||
* [Usage](#usage)
|
||||
6. [Finishing Touches](#finishing-touches)
|
||||
* [Fix Content](#fix-content)
|
||||
* [Clean Up](#clean-up)
|
||||
7. [A practical example in a diff](#a-practical-example-in-a-diff)
|
||||
|
||||
## 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).
|
|
@ -1,80 +0,0 @@
|
|||
+++
|
||||
date = "2017-01-08"
|
||||
title = "Theme Demo"
|
||||
description = "The post demonstrates features of the coder theme."
|
||||
images = ["/images/N90.jpg"]
|
||||
math = "true"
|
||||
series = ["Theme", "Hugo"]
|
||||
+++
|
||||
|
||||
## 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));
|
||||
```
|
||||
|
||||
## Hugo shortcode for figure
|
||||
|
||||
{{< figure src="/images/N90.jpg" caption="N90 nebula, \"New stars shed light on the past\" by ESA/Hubble" >}}
|
|
@ -1,6 +0,0 @@
|
|||
+++
|
||||
title = "Projects"
|
||||
slug = "projects"
|
||||
+++
|
||||
|
||||
Nothing to see here... Move along!
|
|
@ -1,6 +0,0 @@
|
|||
+++
|
||||
title = "Projetos"
|
||||
slug = "projects"
|
||||
+++
|
||||
|
||||
Em construção... Aguarde!
|
Before Width: | Height: | Size: 406 KiB |
Before Width: | Height: | Size: 559 B |
|
@ -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 KiB |
Before Width: | Height: | Size: 38 KiB |
|
@ -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 |
Before Width: | Height: | Size: 15 KiB |
|
@ -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 |
Before Width: | Height: | Size: 46 KiB |
|
@ -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 |
Before Width: | Height: | Size: 64 KiB |
Before Width: | Height: | Size: 37 KiB |
|
@ -1 +0,0 @@
|
|||
{"Target":"css/coder.min.28d751104f30c16da1aa1bb04015cbe662cacfe0d1b01af4f2240ad58580069c.css","MediaType":"text/css","Data":{"Integrity":"sha256-KNdREE8wwW2hqhuwQBXL5mLKz+DRsBr08iQK1YWABpw="}}
|