Awesome Open Source
Awesome Open Source

Maupassant

Maupassant theme, ported to Hugo.

  1. :
  2. English Docs

HugoPCMobile Typecho Cho, JokerQyou forkedGA .

Preview

Maupassant

  1. Local Search
  2. 10
  3. SEO
  4. GA
  5. sitemap
  6. RSSRSS
  7. Google
  8. See Also
  9. Disqus
  10. cssjs
  11. utteranc
  12. shortcode
  13. CDN

cd <YOUR Bolg Root Dir>
git clone https://github.com/flysnow-org/maupassant-hugo themes/maupassant

Hugo Version >= v 0.60.0

theme = "maupassant"

exampleSite config.toml ``config.toml

PS: post``posts,hugo``hugo new post/filename.md

PS: post``posts,hugo``hugo new post/filename.md

PS: post``posts,hugo``hugo new post/filename.md

Hugo v0.60.0GoldmarkMD HugoJS

Hugo

config.toml

[markup]
  [markup.highlight]
    lineNos = true
    style = "github"

:

Configure Markup Syntax Highlighting

[menu]

  [[menu.main]]
    identifier = "books"
    name = ""
    url = "/books/"
    weight = 2

  [[menu.main]]
    identifier = "archives"
    name = ""
    url = "/archives/"
    weight = 3

  [[menu.main]]
    identifier = "about"
    name = ""
    url = "/about/"
    weight = 4

identifier``weight

,h1~h7MD##``h2SEO Front Matter toc=true

toc = true

100px

Local Search

  1. config.toml``disableKinds,RSS
  2. config.toml``[params]``localSearch = true
  3. content``search,search``index.md
---
title: ""
description: ""
type: "search"
---

hugo server

[[params.links]]
  title = "Android Gradle"
  name = "Android Gradle"
  url = "http://yuedu.baidu.com/ebook/14a722970740be1e640e9a3e"
[[params.links]]
  title = "CDN"
  name = "CDN"
  url = "http://mirrors.flysnow.org/"

params.links``name``title

[[params.ads]]
  title = "1888"
  url = "https://promotion.aliyun.com/ntms/yunparter/invite.html?userCode=jdg9oj97"

[[params.ads]]
  title = "1888"
  url = "https://promotion.aliyun.com/ntms/act/vmpt/aliyun-group/home.html?userCode=jdg9oj97"
  img = "https://img.alicdn.com/tfs/TB17qJhXpzqK1RjSZFvXXcB7VXa-200-126.jpg"
[[params.ads]]
  title = "1888"
  url = "https://promotion.aliyun.com/ntms/act/enterprise-discount.html?userCode=jdg9oj97"
  img = "https://img.alicdn.com/tfs/TB1aDXhXpzqK1RjSZFvXXcB7VXa-259-194.jpg"

params.ads``img,title

http://www.flysnow.org/

GA

GAconfig.toml

googleAnalytics = "GA ID"

Hugocontent/archives/index.md

title: ""
description: Android GoJavaAndroid GradleAndroid
type: archives

title``description``type``archives

content/archives/index.md``content/archives/``index.md

config.toml``params

[params]
  beian = "ICPXXXXXXX-1"

jquery.js fancybox cssjs

[params]
  fancybox = true

CDN

marksrchost, httphost : /

jsdelivr github

[params.image_cdn]
    enable = true
    Host = "https://cdn.jsdelivr.net/gh/user/user.github.io"

Disqus

DisqusDisqusconfig.toml.

disqusShortname = "yourdiscussshortname"

Disqus

Hugo<!--more-->``config.toml

# 70
summaryLength = 140 

config.toml

[params.cc]
    name = "-- 4.0 "
    link = "https://creativecommons.org/licenses/by-nc-nd/4.0/"

name``link

utteranc

utterancGithub Issue config.toml. https://utteranc.es

[params.utteranc]
    enable = true
    repo = ""    # Repo owner/repo
    issueTerm = "pathname"  #github issue
    theme = "github-light" # github-lightgithub-dark

issueTerm

  1. pathname
  2. url URL
  3. title title

config.toml.

[params]
  busuanzi = true

Hugo 0.55 , HugopreserveTaxonomyNames``true Hugo 0.55 hugo preserveTaxonomyNames tag categories ,

URL

URLHexoHugo HugodisablePathToLower

## URL Path
disablePathToLower = true

CSS&JS

[params]
  # static
  customCSS = ['douban.css', 'other.css']
  # if ['custom.css'], load '/static/css/custom.css' file
  customJS = ['douban.js']
  # if ['custom.js'], load '/static/js/custom.js' file

shortcode

  • Octopress blockquote (blockquote.html)
  • Wikipedia Link Generator (wp.html)
{{< youku id="_XMzcxODQ2NjM2NA==" autoplay="true" >}}
  • youkuyouku.html

  • (js-sequence)

    1. config.toml

      [params.sequenceDiagrams]
          enable = true
          options = ""            # default: "{theme: 'simple'}"
      
    2. Front Matter

      sequenceDiagrams
        enable: true
      

    sequence

    ```sequence
    Alice->Bob: Hello Bob, how are you?
    Note right of Bob: Bob thinks
    Bob-->Alice: I am good thanks!
    
    
    
  • flowchart.js

    1. config.toml

      [params.flowchartDiagrams]
        enable = true
        options = ""
      
    2. Front Matter

      flowchartDiagrams:
        enable: true
      

    flowchat``flow

    ```flow
    st=>start: Start
    op=>operation: Your Operation
    cond=>condition: Yes or No?
    e=>end
    
    st->op->cond
    cond(yes)->e
    cond(no)->op
    
    
    
  • graphvizviz.js)

    Front Matter

    graphviz:
      enable: true
    

    viz-<engin> engingraphvizcirco``dot``fdp``neato osage``twopi

    ```viz-dot
    digraph G {
    
    	subgraph cluster_0 {
    		style=filled;
    		color=lightgrey;
    		node [style=filled,color=white];
    		a0 -> a1 -> a2 -> a3;
    		label = "process #1";
    	}
    
    	subgraph cluster_1 {
    		node [style=filled];
    		b0 -> b1 -> b2 -> b3;
    		label = "process #2";
    		color=blue
    	}
    	start -> a0;
    	start -> b0;
    	a1 -> b3;
    	b2 -> a3;
    	a3 -> a0;
    	a3 -> end;
    	b3 -> end;
    
    	start [shape=Mdiamond];
    	end [shape=Msquare];
    }
    
    
    

IssuePRISSUE

Maupassant




Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages
Top Projects

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Theme (43,368
Blog (28,567
Hugo (4,051
Hugo Blog Theme (717
Hugo Theme (716
Blog Theme (571
Hugo Site (444
Gohugo (56
Maupassant (9