Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wangchucheng/hugo-eureka.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Chucheng <me@wangchucheng.com>2020-12-27 21:06:11 +0300
committerWang Chucheng <me@wangchucheng.com>2020-12-27 21:06:11 +0300
commitc33985a935b5bf5706bed27bc112f700df2f2903 (patch)
tree431d55abb64e7d125b9056475e31abc26ede6a33 /exampleSite
parent3023aca70db61f681db293c21341769de8111a59 (diff)
feat: widget system for configuring homepagev0.4.0
BREAKING CHANGE: Param 'hero' in params.toml is deprecated. BREAKING CHANGE: Param 'icon_pack' in %q is deprecated. Use 'iconPack'. BREAKING CHANGE: 'doc_list' in doc layout is deprecated. Use 'doc-list'. Closes #11
Diffstat (limited to 'exampleSite')
-rw-r--r--exampleSite/config/_default/menus.toml2
-rw-r--r--exampleSite/config/_default/params.toml6
-rw-r--r--exampleSite/content/about.md28
-rw-r--r--exampleSite/content/authors/example-author/_index.md8
-rw-r--r--exampleSite/content/authors/example-author/avatar.jpgbin129894 -> 0 bytes
-rw-r--r--exampleSite/content/authors/hugo-authors/_index.md6
-rw-r--r--exampleSite/content/docs/_index.md2
-rw-r--r--exampleSite/content/homepage/about.md72
-rw-r--r--exampleSite/content/homepage/blank.html34
-rw-r--r--exampleSite/content/homepage/index.md3
-rw-r--r--exampleSite/content/homepage/pages.md37
-rw-r--r--exampleSite/content/homepage/vintage.md34
12 files changed, 189 insertions, 43 deletions
diff --git a/exampleSite/config/_default/menus.toml b/exampleSite/config/_default/menus.toml
index a18c35b..4bb7e2f 100644
--- a/exampleSite/config/_default/menus.toml
+++ b/exampleSite/config/_default/menus.toml
@@ -1,6 +1,6 @@
[[main]]
name = "About"
- url = "/about/"
+ url = "#about"
weight = 1
[[main]]
diff --git a/exampleSite/config/_default/params.toml b/exampleSite/config/_default/params.toml
index 90ca210..1df2db0 100644
--- a/exampleSite/config/_default/params.toml
+++ b/exampleSite/config/_default/params.toml
@@ -18,12 +18,6 @@ icon = "images/icon.png"
publisherName = "C. Wang"
publisherLogo = ""
-[hero]
- slogan = "We are all in the gutter, but some of us are looking at the stars."
- # Specify the image name in `assets/images/` folder.
- imgLeft = "images/hero-left.jpg"
- imgRight = "images/hero-right.jpg"
-
[math]
handler = "katex"
diff --git a/exampleSite/content/about.md b/exampleSite/content/about.md
deleted file mode 100644
index a412806..0000000
--- a/exampleSite/content/about.md
+++ /dev/null
@@ -1,28 +0,0 @@
-+++
-title = "About"
-description = "Hugo, the world’s fastest framework for building websites"
-date = "2019-02-28"
-aliases = ["about-us","about-hugo","contact"]
-author = "Hugo Authors"
-+++
-
-Written in Go, Hugo is an open source static site generator available under the [Apache Licence 2.0.](https://github.com/gohugoio/hugo/blob/master/LICENSE) Hugo supports TOML, YAML and JSON data file types, Markdown and HTML content files and uses shortcodes to add rich content. Other notable features are taxonomies, multilingual mode, image processing, custom output formats, HTML/CSS/JS minification and support for Sass SCSS workflows.
-
-Hugo makes use of a variety of open source projects including:
-
-* https://github.com/yuin/goldmark
-* https://github.com/alecthomas/chroma
-* https://github.com/muesli/smartcrop
-* https://github.com/spf13/cobra
-* https://github.com/spf13/viper
-
-Hugo is ideal for blogs, corporate websites, creative portfolios, online magazines, single page applications or even a website with thousands of pages.
-
-Hugo is for people who want to hand code their own website without worrying about setting up complicated runtimes, dependencies and databases.
-
-Websites built with Hugo are extremelly fast, secure and can be deployed anywhere including, AWS, GitHub Pages, Heroku, Netlify and any other hosting provider.
-
-Learn more and contribute on [GitHub](https://github.com/gohugoio).
-
-
-
diff --git a/exampleSite/content/authors/example-author/_index.md b/exampleSite/content/authors/example-author/_index.md
index 093095b..5c0ac29 100644
--- a/exampleSite/content/authors/example-author/_index.md
+++ b/exampleSite/content/authors/example-author/_index.md
@@ -3,7 +3,7 @@
title = "Example Author"
role = "Example Role"
bio = "Aenean vel bibendum quam. Aliquam at mollis quam. Proin efficitur."
-avatar = "images/avatar.jpg"
+avatar = "images/icon.png"
[organization]
name = "Example Organization"
@@ -11,17 +11,17 @@ avatar = "images/avatar.jpg"
[[social]]
icon = "envelope"
- icon_pack = "fas"
+ iconPack = "fas"
url = "mailto:example@example.com"
[[social]]
icon = "twitter"
- icon_pack = "fab"
+ iconPack = "fab"
url = "https://example.com/"
[[social]]
icon = "github"
- icon_pack = "fab"
+ iconPack = "fab"
url = "https://example.com/"
+++
diff --git a/exampleSite/content/authors/example-author/avatar.jpg b/exampleSite/content/authors/example-author/avatar.jpg
deleted file mode 100644
index 671b36a..0000000
--- a/exampleSite/content/authors/example-author/avatar.jpg
+++ /dev/null
Binary files differ
diff --git a/exampleSite/content/authors/hugo-authors/_index.md b/exampleSite/content/authors/hugo-authors/_index.md
index aa22950..5f1a4f4 100644
--- a/exampleSite/content/authors/hugo-authors/_index.md
+++ b/exampleSite/content/authors/hugo-authors/_index.md
@@ -11,17 +11,17 @@ shortContent = "Example Short Content"
[[social]]
icon = "envelope"
- icon_pack = "fas"
+ iconPack = "fas"
url = "mailto:example@example.com"
[[social]]
icon = "twitter"
- icon_pack = "fab"
+ iconPack = "fab"
url = "https://example.com/"
[[social]]
icon = "github"
- icon_pack = "fab"
+ iconPack = "fab"
url = "https://example.com/"
+++
diff --git a/exampleSite/content/docs/_index.md b/exampleSite/content/docs/_index.md
index 2da1512..9f7529d 100644
--- a/exampleSite/content/docs/_index.md
+++ b/exampleSite/content/docs/_index.md
@@ -1,4 +1,4 @@
+++
title = "Docs"
-layout = "doc_list"
+layout = "doc-list"
+++ \ No newline at end of file
diff --git a/exampleSite/content/homepage/about.md b/exampleSite/content/homepage/about.md
new file mode 100644
index 0000000..c0f99af
--- /dev/null
+++ b/exampleSite/content/homepage/about.md
@@ -0,0 +1,72 @@
++++
+title = "Example Author"
+weight = 1
+draft = false
+
+role = "Example Role"
+bio = "Aenean vel bibendum quam. Aliquam at mollis quam. Proin efficitur."
+avatar = "images/icon.png"
+
+[organization]
+ name = "Example Organization"
+ url = "https://example.com/"
+
+[[social]]
+ icon = "envelope"
+ iconPack = "fas"
+ url = "mailto:example@example.com"
+
+[[social]]
+ icon = "twitter"
+ iconPack = "fab"
+ url = "https://example.com/"
+
+[[social]]
+ icon = "github"
+ iconPack = "fab"
+ url = "https://example.com/"
+
+[widget]
+ handler = "about"
+
+ # Options: sm, md, lg and xl. Default is md.
+ width = ""
+
+ [widget.sidebar]
+ # Options: left and right. Leave blank to hide.
+ position = ""
+ # Options: sm, md, lg and xl. Default is md.
+ scale = ""
+
+ [widget.background]
+ # Options: primary, secondary, tertiary or any valid color value. Default is primary.
+ color = "secondary"
+
+ # See TODO
+ image = ""
+ # Options: auto, cover and contain. Default is auto.
+ size = ""
+ # Options: center, top, right, bottom, left.
+ position = ""
+ # Options: fixed, local, scroll.
+ attachment = ""
++++
+
+## Self Introduction
+
+Cras ex dui, tristique a libero eget, consectetur semper ligula. Nunc augue arcu, malesuada a nisi et, molestie finibus metus. Sed lacus odio, ultricies a nisl vitae, sollicitudin tempor ipsum. Vivamus quis feugiat arcu. Sed mi nunc, efficitur quis tellus vitae, posuere mattis metus. Phasellus in mattis dui. Nullam blandit, augue non ullamcorper dapibus, lacus dui molestie massa, in iaculis purus lectus eu lectus. Duis hendrerit lacinia tellus, sit amet feugiat dolor placerat id. Aenean ac velit massa. Vivamus feugiat dui at magna viverra, ut dictum nunc rutrum. Duis eget sapien finibus, lobortis orci id, vestibulum tellus. Maecenas lobortis urna libero, quis fermentum lectus lobortis nec. Nullam laoreet volutpat libero, ac mattis magna ullamcorper quis. Duis eget ipsum eu nisi mattis cursus et vitae turpis.
+
+Aliquam pretium diam eget leo feugiat finibus. Donec malesuada commodo ipsum. Aenean a massa in lacus venenatis vestibulum. Duis vel sem quis elit iaculis consectetur et quis dolor. Morbi eu ipsum hendrerit, malesuada ante sed, dapibus est. Suspendisse feugiat nulla ut gravida convallis. Phasellus id massa posuere, rhoncus justo ut, porttitor dolor. Nulla ultrices malesuada egestas. Nunc fermentum tincidunt sem ac vulputate. Donec mollis sollicitudin justo eget varius. Donec ornare velit et felis blandit, id molestie sapien lobortis. Morbi eget tristique justo. Mauris posuere, nibh eu laoreet ultricies, ligula erat iaculis sapien, vel dapibus lacus libero ut diam. Etiam viverra ante felis, et scelerisque nunc pellentesque vitae. Praesent feugiat dictum molestie.
+
+## Details
+
+Nunc pellentesque vitae:
+- Morbi accumsan nibh efficitur diam molestie, non dignissim diam facilisis.
+- Donec dignissim leo in mollis faucibus.
+- Donec blandit lacus a pellentesque fermentum.
+
+Donec mollis sollicitudin:
+- Nunc dictum purus ornare purus consectetur, eu pellentesque massa ullamcorper.
+- Aliquam eu leo vitae justo aliquam tincidunt.
+- Fusce non massa id augue interdum feugiat sed et nulla.
+- Vivamus molestie augue in tristique laoreet. \ No newline at end of file
diff --git a/exampleSite/content/homepage/blank.html b/exampleSite/content/homepage/blank.html
new file mode 100644
index 0000000..05041bd
--- /dev/null
+++ b/exampleSite/content/homepage/blank.html
@@ -0,0 +1,34 @@
++++
+title = "Blank"
+weight = 4
+draft = false
+
+[widget]
+ handler = "blank"
+
+ # Options: sm, md, lg and xl. Default is md.
+ width = ""
+
+ [widget.sidebar]
+ # Options: left and right. Leave blank to hide.
+ position = ""
+ # Options: sm, md, lg and xl. Default is md.
+ scale = ""
+
+ [widget.background]
+ # Options: primary, secondary, tertiary or any valid color value. Default is primary.
+ color = ""
+
+ # See TODO
+ image = "images/hero-left.jpg"
+ # Options: auto, cover and contain. Default is auto.
+ size = "cover"
+ # Options: center, top, right, bottom, left.
+ position = ""
+ # Options: fixed, local, scroll.
+ attachment = ""
++++
+
+<div style="text-align:center">
+ <p>Write anything you like here!</p>
+</div> \ No newline at end of file
diff --git a/exampleSite/content/homepage/index.md b/exampleSite/content/homepage/index.md
new file mode 100644
index 0000000..2ae2541
--- /dev/null
+++ b/exampleSite/content/homepage/index.md
@@ -0,0 +1,3 @@
++++
+headless = true
++++ \ No newline at end of file
diff --git a/exampleSite/content/homepage/pages.md b/exampleSite/content/homepage/pages.md
new file mode 100644
index 0000000..0b4b1b5
--- /dev/null
+++ b/exampleSite/content/homepage/pages.md
@@ -0,0 +1,37 @@
++++
+title = "Pages"
+weight = 2
+draft = false
+
+# Section you want to display
+section = "posts"
+# Pages count
+count = 5
+# Options: card, plain and masonry.
+style = "plain"
+
+[widget]
+ handler = "pages"
+
+ # Options: sm, md, lg and xl. Default is md.
+ width = ""
+
+ [widget.sidebar]
+ # Options: left and right. Leave blank to hide.
+ position = ""
+ # Options: sm, md, lg and xl. Default is md.
+ scale = ""
+
+ [widget.background]
+ # Options: primary, secondary, tertiary or any valid color value. Default is primary.
+ color = ""
+
+ # See TODO
+ image = ""
+ # Options: auto, cover and contain. Default is auto.
+ size = ""
+ # Options: center, top, right, bottom, left.
+ position = ""
+ # Options: fixed, local, scroll.
+ attachment = ""
++++ \ No newline at end of file
diff --git a/exampleSite/content/homepage/vintage.md b/exampleSite/content/homepage/vintage.md
new file mode 100644
index 0000000..cdd3541
--- /dev/null
+++ b/exampleSite/content/homepage/vintage.md
@@ -0,0 +1,34 @@
++++
+title = "Vintage"
+weight = 3
+draft = false
+
+slogan = "We are all in the gutter, but some of us are looking at the stars."
+imgLeft = "images/hero-left.jpg"
+imgRight = "images/hero-right.jpg"
+
+[widget]
+ handler = "vintage"
+
+ # Options: sm, md, lg and xl. Default is md.
+ width = ""
+
+ [widget.sidebar]
+ # Options: left and right. Leave blank to hide.
+ position = ""
+ # Options: sm, md, lg and xl. Default is md.
+ scale = ""
+
+ [widget.background]
+ # Options: primary, secondary, tertiary or any valid color value. Default is primary.
+ color = "secondary"
+
+ # See TODO
+ image = ""
+ # Options: auto, cover and contain. Default is auto.
+ size = ""
+ # Options: center, top, right, bottom, left.
+ position = ""
+ # Options: fixed, local, scroll.
+ attachment = ""
++++ \ No newline at end of file