mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 16:17:21 +00:00
more fixes
This commit is contained in:
1 parent
e9bc5880af
commit
9c3ee62ae8
13 files changed
+10
-21
No files matched your search
@@ -17,7 +17,6 @@ Note that after you run this command, all of your dependencies will be re-downlo
|
|||||||
Also note that if you configure a positive maxAge for the "modules" file cache, it will also be cleaned as part of "hugo --gc".
|
Also note that if you configure a positive maxAge for the "modules" file cache, it will also be cleaned as part of "hugo --gc".
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
hugo mod clean [flags]
|
hugo mod clean [flags]
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ You can find a list of all template variables to access the profile information
|
|||||||
|
|
||||||
### Link Social Network Accounts
|
### Link Social Network Accounts
|
||||||
|
|
||||||
As aforementioned, Hugo is able to generate links to profiles of the most popular social networks. The following social networks with their corresponding identifiers are supported: `github`, `facebook`, `twitter`, `pinterest`, `instagram`, `youtube` and `linkedin`.
|
As aforementioned, Hugo is able to generate links to profiles of the most popular social networks. The following social networks with their corresponding identifiers are supported: `github`, `facebook`, `twitter`, `pinterest`, `instagram`, `youtube` and `linkedin`.
|
||||||
|
|
||||||
This is can be done with the `.Social.URL` function. Its only parameter is the name of the social network as they are defined in the profile (e.g. `facebook`, `twitter`). Custom variables like `website` remain as they are.
|
This is can be done with the `.Social.URL` function. Its only parameter is the name of the social network as they are defined in the profile (e.g. `facebook`, `twitter`). Custom variables like `website` remain as they are.
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ aliases: []
|
|||||||
toc: false
|
toc: false
|
||||||
layout: documentation-home
|
layout: documentation-home
|
||||||
---
|
---
|
||||||
|
|
||||||
Hugo is the **world's fastest static website engine.** It's written in Go (aka Golang) and developed by [bep](https://github.com/bep), [spf13](https://github.com/spf13) and [friends](https://github.com/gohugoio/hugo/graphs/contributors).
|
Hugo is the **world's fastest static website engine.** It's written in Go (aka Golang) and developed by [bep](https://github.com/bep), [spf13](https://github.com/spf13) and [friends](https://github.com/gohugoio/hugo/graphs/contributors).
|
||||||
|
|
||||||
Below you will find some of the most common and helpful pages from our documentation.
|
Below you will find some of the most common and helpful pages from our documentation.
|
||||||
@@ -20,7 +20,6 @@ aliases: []
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
{{ md5 "Hello world, gophers!" }}
|
{{ md5 "Hello world, gophers!" }}
|
||||||
<!-- returns the string "b3029f756f98f79e7f1b7f1d1f0dd53b" -->
|
<!-- returns the string "b3029f756f98f79e7f1b7f1d1f0dd53b" -->
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ Next, execute this command to generate a new keypair called `rsa_id`:
|
|||||||
|
|
||||||
You'll be prompted for a passphrase, which is an extra layer of protection. Enter the passphrase you'd like to use, and then enter it again when prompted, or leave it blank if you don't want to have a passphrase. Not using a passphrase will let you transfer files non-interactively, as you won't be prompted for a password when you log in, but it is slightly less secure.
|
You'll be prompted for a passphrase, which is an extra layer of protection. Enter the passphrase you'd like to use, and then enter it again when prompted, or leave it blank if you don't want to have a passphrase. Not using a passphrase will let you transfer files non-interactively, as you won't be prompted for a password when you log in, but it is slightly less secure.
|
||||||
|
|
||||||
To make logging in easier, add a definition for your web host to the file `~/.ssh/config` with the following command, replacing `HOST` with the IP address or hostname of your web host, and `USER` with the username you use to log in to your web host when transfering files:
|
To make logging in easier, add a definition for your web host to the file `~/.ssh/config` with the following command, replacing `HOST` with the IP address or hostname of your web host, and `USER` with the username you use to log in to your web host when transferring files:
|
||||||
|
|
||||||
```
|
```
|
||||||
~/.ssh/$ cat >> config <<EOF
|
~/.ssh/$ cat >> config <<EOF
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ draft: false
|
|||||||
---
|
---
|
||||||
|
|
||||||
|
|
||||||
Any resource of the aforementioned types can be minifed using `resources.Minify` which takes for argument the resource object.
|
Any resource of the aforementioned types can be minified using `resources.Minify` which takes for argument the resource object.
|
||||||
|
|
||||||
|
|
||||||
```go-html-template
|
```go-html-template
|
||||||
|
|||||||
@@ -63,8 +63,6 @@ The template above creates both a security header definition and a HTTP/2 server
|
|||||||
Also note that this is a template for the home page, so the full `Page` with its `Site` and many variables are available. You can also use `partial` to include other templates.
|
Also note that this is a template for the home page, so the full `Page` with its `Site` and many variables are available. You can also use `partial` to include other templates.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## 3. Add Template For the _redirects File
|
## 3. Add Template For the _redirects File
|
||||||
Add `layouts/index.redir`:
|
Add `layouts/index.redir`:
|
||||||
```bash
|
```bash
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ byline: "[Didier Divinerites](https://github.com/divinerites)"
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
Swiss [Arolla campsite](https://www.camping-arolla.com) runs the highest campsite in Europe and I'm completely re-doing their actuel Website with Hugo.
|
Swiss [Arolla campsite](https://www.camping-arolla.com) runs the highest campsite in Europe and I'm completely re-doing their actual Website with Hugo.
|
||||||
|
|
||||||
But they just launch a brand new offer (luxury tents with bed and fire oven), and we couldn't wait for the proper new website for having this promoted: we needed the website up and running within 24h!
|
But they just launch a brand new offer (luxury tents with bed and fire oven), and we couldn't wait for the proper new website for having this promoted: we needed the website up and running within 24h!
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ siteURL: https://www.paceup.com/
|
|||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
From the beginning, at Pace, we were focused on solving customer needs and didn't want to over-engineer our marketing or sales. At the same time we didn't want to lock ourselves into a Wordpress, Squarespace or the like.
|
From the beginning, at Pace, we were focused on solving customer needs and didn't want to over-engineer our marketing or sales. At the same time we didn't want to lock ourselves into a WordPress, Squarespace or the like.
|
||||||
|
|
||||||
The ideal was a fast, simple, static site builder. When we came across Hugo we were blown away. Being a European company we wanted to be multi-lingual from the get-go and allow multiple team-members to collaborate and own their content. We also felt that a tech-company in 2018 should be capable of hosting its own blog in a simple way.
|
The ideal was a fast, simple, static site builder. When we came across Hugo we were blown away. Being a European company we wanted to be multi-lingual from the get-go and allow multiple team-members to collaborate and own their content. We also felt that a tech-company in 2018 should be capable of hosting its own blog in a simple way.
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,8 @@
|
|||||||
---
|
---
|
||||||
|
|
||||||
title: StackImpact
|
title: StackImpact
|
||||||
|
|
||||||
date: 2018-02-20
|
date: 2018-02-20
|
||||||
|
|
||||||
description: "\"Hugo is a perfect choice for a product website.\""
|
description: "\"Hugo is a perfect choice for a product website.\""
|
||||||
|
|
||||||
siteURL: https://stackimpact.com/
|
siteURL: https://stackimpact.com/
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
After gradually handing over the control of our website to WordPress plugins, we realized that we needed to act.
|
After gradually handing over the control of our website to WordPress plugins, we realized that we needed to act.
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ toc: false
|
|||||||
* [enwrite](https://github.com/zzamboni/enwrite). Enwrite enables evernote-powered, statically generated blogs and websites. Now posting to your blog or updating your website is as easy as writing a new note in Evernote!
|
* [enwrite](https://github.com/zzamboni/enwrite). Enwrite enables evernote-powered, statically generated blogs and websites. Now posting to your blog or updating your website is as easy as writing a new note in Evernote!
|
||||||
* [Lipi](https://github.com/SohanChy/Lipi). Lipi is a native GUI frontend written in Java to manage your Hugo websites.
|
* [Lipi](https://github.com/SohanChy/Lipi). Lipi is a native GUI frontend written in Java to manage your Hugo websites.
|
||||||
* [Netlify CMS](https://netlifycms.org). Netlify CMS is an open source, serverless solution for managing Git based content in static sites, and it works on any platform that can host static sites. A [Hugo/Netlify CMS starter](https://github.com/netlify-templates/one-click-hugo-cms) is available to get new projects running quickly.
|
* [Netlify CMS](https://netlifycms.org). Netlify CMS is an open source, serverless solution for managing Git based content in static sites, and it works on any platform that can host static sites. A [Hugo/Netlify CMS starter](https://github.com/netlify-templates/one-click-hugo-cms) is available to get new projects running quickly.
|
||||||
* [Hokus CMS](https://github.com/julianoappelklein/hokus). Hokus CMS is an open source, multiplatform, easy to use, desktop application for Hugo. Build from simple to complex user interfaces for Hugo websites by choosing from a dozen ready-to-use components — all for free, with no vendor lock-in.
|
* [Hokus CMS](https://github.com/julianoappelklein/hokus). Hokus CMS is an open source, multi-platform, easy to use, desktop application for Hugo. Build from simple to complex user interfaces for Hugo websites by choosing from a dozen ready-to-use components — all for free, with no vendor lock-in.
|
||||||
|
|
||||||
|
|
||||||
## Commercial Services
|
## Commercial Services
|
||||||
|
|||||||
@@ -47,9 +47,9 @@ Alternatively, you can use the new [Jekyll import command](/commands/hugo_import
|
|||||||
## WordPress
|
## WordPress
|
||||||
|
|
||||||
- [wordpress-to-hugo-exporter](https://github.com/SchumacherFM/wordpress-to-hugo-exporter) - A one-click WordPress plugin that converts all posts, pages, taxonomies, metadata, and settings to Markdown and YAML which can be dropped into Hugo. (Note: If you have trouble using this plugin, you can [export your site for Jekyll](https://wordpress.org/plugins/jekyll-exporter/) and use Hugo's built in Jekyll converter listed above.)
|
- [wordpress-to-hugo-exporter](https://github.com/SchumacherFM/wordpress-to-hugo-exporter) - A one-click WordPress plugin that converts all posts, pages, taxonomies, metadata, and settings to Markdown and YAML which can be dropped into Hugo. (Note: If you have trouble using this plugin, you can [export your site for Jekyll](https://wordpress.org/plugins/jekyll-exporter/) and use Hugo's built in Jekyll converter listed above.)
|
||||||
- [exitwp-for-hugo](https://github.com/wooni005/exitwp-for-hugo) - A python script which works with the xml export from Wordpress and converts Wordpress pages and posts to Markdown and YAML for hugo.
|
- [exitwp-for-hugo](https://github.com/wooni005/exitwp-for-hugo) - A python script which works with the xml export from WordPress and converts WordPress pages and posts to Markdown and YAML for hugo.
|
||||||
- [blog2md](https://github.com/palaniraja/blog2md) - Works with [exported xml](https://en.support.wordpress.com/export/) file of your free YOUR-TLD.wordpress.com website. It also saves approved comments to `YOUR-POST-NAME-comments.md` file along with posts.
|
- [blog2md](https://github.com/palaniraja/blog2md) - Works with [exported xml](https://en.support.wordpress.com/export/) file of your free YOUR-TLD.wordpress.com website. It also saves approved comments to `YOUR-POST-NAME-comments.md` file along with posts.
|
||||||
- [wordhugopress](https://github.com/nantipov/wordhugopress) - A small utility written in Java, exports the entire WordPress site from the database and resource (e.g. images) files stored locally or remotelly. Therefore, migration from the backup files is possible. Supports merging of the multiple WordPress sites into a single Hugo one.
|
- [wordhugopress](https://github.com/nantipov/wordhugopress) - A small utility written in Java, exports the entire WordPress site from the database and resource (e.g. images) files stored locally or remotely. Therefore, migration from the backup files is possible. Supports merging of the multiple WordPress sites into a single Hugo one.
|
||||||
|
|
||||||
## Medium
|
## Medium
|
||||||
|
|
||||||
@@ -84,4 +84,4 @@ Alternatively, you can use the new [Jekyll import command](/commands/hugo_import
|
|||||||
|
|
||||||
## BlogML
|
## BlogML
|
||||||
|
|
||||||
- [BlogML2Hugo](https://github.com/jijiechen/BlogML2Hugo) - A tool that helps you convert BlogML xml file to Hugo markdown files. Users need to take care of links to attachments and images by themselves. This helps the blogs that export BlogML files (e.g. BlogEngine.NET) tramsform to hugo sites easily.
|
- [BlogML2Hugo](https://github.com/jijiechen/BlogML2Hugo) - A tool that helps you convert BlogML xml file to Hugo markdown files. Users need to take care of links to attachments and images by themselves. This helps the blogs that export BlogML files (e.g. BlogEngine.NET) transform to hugo sites easily.
|
||||||
@@ -20,7 +20,4 @@ notesforauthors:
|
|||||||
|
|
||||||
The Troubleshooting section includes known issues, recent workarounds, and FAQs pulled from the [Hugo Discussion Forum][forum].
|
The Troubleshooting section includes known issues, recent workarounds, and FAQs pulled from the [Hugo Discussion Forum][forum].
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[forum]: https://discourse.gohugo.io
|
[forum]: https://discourse.gohugo.io
|
||||||
Reference in new issue
Block a user