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

github.com/damiencaselli/hugo-journal.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Caselli <damien.caselli@gmail.com>2017-07-24 10:49:00 +0300
committerDamien Caselli <damien.caselli@gmail.com>2017-07-24 10:49:00 +0300
commit8e7e805b2499d4e69f7187ce597b050c9604f696 (patch)
treee0103ec51eb9bb9044fcc88a5106f988a4adce0c
parent3f550d0fc584cc0104c3196d7a7d97ece62f0956 (diff)
Add example site
-rw-r--r--.gitignore3
-rw-r--r--exampleSite/archetypes/default.md6
-rw-r--r--exampleSite/config.toml22
-rw-r--r--exampleSite/content/post/a-post.md7
-rw-r--r--exampleSite/content/post/another-post.md7
-rw-r--r--exampleSite/content/post/hello-world.md7
-rw-r--r--exampleSite/content/post/theme-reference.md110
7 files changed, 162 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..bffeadc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,3 @@
+/exampleSite/config
+/exampleSite/public
+/exampleSite/themes
diff --git a/exampleSite/archetypes/default.md b/exampleSite/archetypes/default.md
new file mode 100644
index 0000000..f5a9e45
--- /dev/null
+++ b/exampleSite/archetypes/default.md
@@ -0,0 +1,6 @@
+---
+title: "{{ replace .TranslationBaseName "-" " " | title }}"
+date: {{ .Date }}
+draft: true
+---
+
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
new file mode 100644
index 0000000..0bdd718
--- /dev/null
+++ b/exampleSite/config.toml
@@ -0,0 +1,22 @@
+baseURL = "http://example.org/"
+languageCode = "en-us"
+title = "My New Hugo Site"
+theme = "journal"
+
+[author]
+ name = "John Doe"
+ homepage = "https://your.homepage.com/"
+
+[params]
+ description = "Blog meta description."
+ githubUsername = "your_gh_username"
+ twitterUsername = "your_twitter_handle"
+ tagline = "Blog tagline. Shown under index title."
+[params.work]
+ jobTitle = "occupation"
+ company = "the company"
+ companyUrl = "https://the.company.url/"
+[params.gpg]
+ key = "0x1111111111111111"
+ fingerprint = "0000 0000 0000 0000 0000 0000 0000 0000 0000 0000"
+ link = "https://pgp.mit.edu/pks/lookup?op=get&search=0x1111111111111111"
diff --git a/exampleSite/content/post/a-post.md b/exampleSite/content/post/a-post.md
new file mode 100644
index 0000000..e0a9e30
--- /dev/null
+++ b/exampleSite/content/post/a-post.md
@@ -0,0 +1,7 @@
+---
+title: "A Post"
+date: 2017-04-23T12:16:16+02:00
+draft: false
+---
+
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
diff --git a/exampleSite/content/post/another-post.md b/exampleSite/content/post/another-post.md
new file mode 100644
index 0000000..1a16e0c
--- /dev/null
+++ b/exampleSite/content/post/another-post.md
@@ -0,0 +1,7 @@
+---
+title: "Another Post"
+date: 2017-05-23T12:16:26+02:00
+draft: false
+---
+
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
diff --git a/exampleSite/content/post/hello-world.md b/exampleSite/content/post/hello-world.md
new file mode 100644
index 0000000..d86922b
--- /dev/null
+++ b/exampleSite/content/post/hello-world.md
@@ -0,0 +1,7 @@
+---
+title: "Hello, World!"
+date: 2016-06-23T11:57:42+02:00
+draft: false
+---
+
+Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
diff --git a/exampleSite/content/post/theme-reference.md b/exampleSite/content/post/theme-reference.md
new file mode 100644
index 0000000..a8905b6
--- /dev/null
+++ b/exampleSite/content/post/theme-reference.md
@@ -0,0 +1,110 @@
+---
+title: "Theme Reference"
+description: "Description of the post"
+date: 2017-07-23T16:20:16+02:00
+draft: false
+---
+
+This is a post to help showing the _complete_ rules of this theme.
+
+A **summary** is set, the rest is below a `<!-- more -->;` tag.<!--more-->
+
+---
+
+# Level 1 header
+
+## Level 2 header
+
+### Level 3 header
+
+#### Level 4 header
+
+##### Level 5 header
+
+###### Level 6 header
+
+[Markdown](http://daringfireball.net/projects/markdown/) syntax has multiple advantages over HTML for simple writing.
+
+---
+
+Blockquotes:
+
+> Introducing Hugo, a new idea around making website creation simple again. Hugo flexibly works with many formats and is ideal for blogs, docs, portfolios and much more. Hugo’s speed fosters creativity and makes building a website fun again.
+> <cite>spf13</cite>
+
+---
+
+Unordered lists:
+
+- an item
+- a second item
+- a third item
+- the first item
+
+---
+
+Ordered lists:
+
+1. the winner
+1. silver medal
+1. bronze medal
+1. copper medal
+ 1. an item
+ 1. another item
+1. chocolate medal
+
+---
+
+Mixed list:
+
+- Paris
+ 1. Les Invalides
+ - Ligne 8
+ - Ligne 12
+ 1. Le Louvre
+- Bordeaux
+ 1. Le Miroir d'eau
+ 1. Le Grand Théâtre
+- New York
+ - Statue of Liberty
+ - The Empire State Building
+
+---
+
+Image will not flow out its container.
+
+![Jolly roger F14 aircraft](https://upload.wikimedia.org/wikipedia/commons/6/68/F-14-vf-84.jpg)
+
+---
+
+A `fig` shortcode can be used to create images figures.
+
+```
+src="image source"
+alt="image alt"
+caption="figure caption text"
+link="link to the source"
+```
+
+{{< fig src="https://upload.wikimedia.org/wikipedia/commons/c/c7/YosemitePark2_amk.jpg" alt="Vue de la vallée de Yosemite" caption="Le Parc National de Yosemite" link="https://fr.wikipedia.org/wiki/Parc_national_de_Yosemite" >}}
+
+---
+
+<abbr title="abbreviation">Abbr</abbr> has default styles, so has the `kbd` tag <kbd>Ctrl+f</kbd>.
+
+Theme uses [Highlight.js](https://highlightjs.org/) for code highlighting.
+
+```python
+from flask import Flask
+
+
+# This is a long comment line. It is just here to prove we can type looooooong lines of texts without breaking the layout.
+app = Flask(__name__)
+
+@app.route("/")
+def hello():
+ return "Hello World!"
+
+if __name__ == "__main__":
+ app.run()
+```