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

github.com/jsnjack/kraiklyn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYauhen Shulitski <jsnjack@gmail.com>2018-01-29 00:15:38 +0300
committerYauhen Shulitski <jsnjack@gmail.com>2018-01-29 00:15:38 +0300
commitce02b0b77eed86e24f6d3f689c112b1efb3e873a (patch)
treef99dbb5be4bd97319126ce667bb149dde9a4fdd5
parent6375c7e2b62d35cfe483006e55cd0c36c9dc1cf2 (diff)
Add site example
-rw-r--r--exampleSite/config.toml21
-rw-r--r--exampleSite/content/characters/_index.md8
-rw-r--r--exampleSite/content/characters/balveda.md8
-rw-r--r--exampleSite/content/characters/bora.md8
-rw-r--r--exampleSite/content/characters/kraiklyn.md8
-rw-r--r--exampleSite/content/criticism/_index.md13
-rw-r--r--exampleSite/content/history/_index.md10
-rw-r--r--exampleSite/content/introduction/_index.md14
-rw-r--r--exampleSite/content/introduction/code.md67
-rw-r--r--exampleSite/content/plot/_index.md16
10 files changed, 173 insertions, 0 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml
new file mode 100644
index 0000000..781c2e5
--- /dev/null
+++ b/exampleSite/config.toml
@@ -0,0 +1,21 @@
+baseURL = "/"
+languageCode = "en-us"
+
+title = "Consider Phlebas"
+theme = "kraiklyn"
+
+pygmentsCodeFences = true
+pygmentsStyle = "monokailight"
+
+[params]
+externalTitle = "Kraiklyn theme"
+
+[[menu.shortcuts]]
+name = "Kraiklyn on Github"
+url = "https://github.com/jsnjack/kraiklyn"
+weight = 10
+
+[[menu.shortcuts]]
+name = "Hugo docs"
+url = "https://gohugo.io/documentation/"
+weight = 20
diff --git a/exampleSite/content/characters/_index.md b/exampleSite/content/characters/_index.md
new file mode 100644
index 0000000..f86cb14
--- /dev/null
+++ b/exampleSite/content/characters/_index.md
@@ -0,0 +1,8 @@
+---
+title: "Characters"
+date: 2018-01-28T22:01:36+01:00
+anchor: "characters"
+weight: 35
+---
+
+List of main characters
diff --git a/exampleSite/content/characters/balveda.md b/exampleSite/content/characters/balveda.md
new file mode 100644
index 0000000..bfff395
--- /dev/null
+++ b/exampleSite/content/characters/balveda.md
@@ -0,0 +1,8 @@
+---
+title: "Balveda"
+date: 2018-01-28T21:55:52+01:00
+anchor: "balveda"
+weight: 40
+---
+
+Juboal-Rabaroansa Perosteck Alseyn Balveda dam T'seif, usually referred to as Perosteck Balveda, is an operative of the Culture assigned to track and apprehend [Bora Horza Gobuchul]({{% anchor "characters/bora.md" %}}). She works for the Special Circumstances branch of Contact, and despite being ambivalent about the methods they use, deeply believes in their objectives.
diff --git a/exampleSite/content/characters/bora.md b/exampleSite/content/characters/bora.md
new file mode 100644
index 0000000..63f5598
--- /dev/null
+++ b/exampleSite/content/characters/bora.md
@@ -0,0 +1,8 @@
+---
+title: "Bora"
+date: 2018-01-28T21:54:02+01:00
+anchor: "bora"
+weight: 30
+---
+
+**Bora Horza Gobuchul** is a [Changer](https://en.wikipedia.org/wiki/List_of_civilisations_in_the_Culture_series) and an operative of the Idiran Empire. Horza was one of a party of Changers allowed on Schar's World, and for that reason is tasked by the Idirans with retrieving a Mind that had crashed to the planet. Horza is humanoid, but committed to the Idirans because he despises the Culture for its dependence on machines and what he perceives to be spiritual emptiness.
diff --git a/exampleSite/content/characters/kraiklyn.md b/exampleSite/content/characters/kraiklyn.md
new file mode 100644
index 0000000..0f66031
--- /dev/null
+++ b/exampleSite/content/characters/kraiklyn.md
@@ -0,0 +1,8 @@
+---
+title: "Kraiklyn"
+date: 2018-01-28T21:57:07+01:00
+anchor: "kraiklyn"
+weight: 50
+---
+
+Kraiklyn is the captain of the Clear Air Turbulence.
diff --git a/exampleSite/content/criticism/_index.md b/exampleSite/content/criticism/_index.md
new file mode 100644
index 0000000..b3a1f75
--- /dev/null
+++ b/exampleSite/content/criticism/_index.md
@@ -0,0 +1,13 @@
+---
+title: "Criticism"
+date: 2018-01-28T22:01:36+01:00
+anchor: "criticism"
+weight: 70
+---
+
+The book was generally very well received as a fast-paced space opera with a morally ambiguous hero and lots of grand scenery and devices. Kirkus Reviews described it as "Overextended and jarring", but "imaginative and gripping in places."
+
+{{% block note %}}
+Banks said in an interview:
+ There's a big war going on in that novel, and various individuals and groups manage to influence its outcome. But even being able to do that doesn't ultimately change things very much. At the book's end, I have a section pointing this out by telling what happened after the war, which was an attempt to pose the question, 'What was it all for?' I guess this approach has to do with my reacting to the cliché of SF's 'lone protagonist.' You know, this idea that a single individual can determine the direction of entire civilizations. It's very, very hard for a lone person to do that. And it sets you thinking what difference, if any, it would have made if Jesus Christ, or Karl Marx or Charles Darwin had never been. We just don't know.
+{{% /block %}}
diff --git a/exampleSite/content/history/_index.md b/exampleSite/content/history/_index.md
new file mode 100644
index 0000000..7798b42
--- /dev/null
+++ b/exampleSite/content/history/_index.md
@@ -0,0 +1,10 @@
+---
+title: "History"
+date: 2018-01-28T21:58:09+01:00
+anchor: "history"
+weight: 60
+---
+
+Consider Phlebas, like most of Banks's early SF output, was a rewritten version of an earlier book, as he explained in a 1994 interview:
+
+>Phlebas was an old one too; it was written just after The Wasp Factory, in 1984. I've found that rewriting an old book took much more effort than writing one from scratch, but I had to go back to do right by these things. Now I can go on and start completely new stuff.
diff --git a/exampleSite/content/introduction/_index.md b/exampleSite/content/introduction/_index.md
new file mode 100644
index 0000000..2dcb0a0
--- /dev/null
+++ b/exampleSite/content/introduction/_index.md
@@ -0,0 +1,14 @@
+---
+title: "Introduction"
+date: 2018-01-27T15:42:17+01:00
+anchor: "introduction"
+weight: 10
+---
+
+Consider Phlebas, first published in 1987, is a space opera novel by Scottish writer Iain M. Banks. Written after a 1984 draft, it is the first to feature the Culture.
+
+The novel revolves around the Idiran–Culture War, and Banks plays on that theme by presenting various microcosms of that conflict. Its protagonist Bora Horza Gobuchul is an enemy of the Culture.
+
+{{% block note %}}
+Consider Phlebas is Banks's first published science fiction novel set in the Culture, and takes its title from a line in T. S. Eliot's poem The Waste Land. A subsequent Culture novel, Look to Windward (2000), whose title comes from the previous line of the same poem, can be considered a loose follow-up.
+{{% /block %}}
diff --git a/exampleSite/content/introduction/code.md b/exampleSite/content/introduction/code.md
new file mode 100644
index 0000000..24735b5
--- /dev/null
+++ b/exampleSite/content/introduction/code.md
@@ -0,0 +1,67 @@
+---
+title: "Code sample"
+date: 2018-01-28T21:48:10+01:00
+anchor: "code"
+weight: 20
+---
+
+```python
+#!/usr/bin/python
+
+# This script will monitor templates folder and automatically compile nunjucks html templates on change
+
+import os
+import sys
+from datetime import datetime
+from subprocess import call
+from time import sleep
+
+try:
+ NUNJUCKS_REPO = sys.argv[1]
+except IndexError:
+ NUNJUCKS_REPO = os.getenv("NUNJUCKS_REPO")
+try:
+ TEMPLATES_DIR = sys.argv[2]
+except IndexError:
+ TEMPLATES_DIR = os.getenv("TEMPLATES_DIR")
+
+FILES = {}
+TIMER = 1
+
+COLOUR_END = '\033[0m'
+COLOUR_GREEN = '\033[92m'
+COLOUR_BLUE = '\033[94m'
+
+
+def check_templates(templates_dir=TEMPLATES_DIR):
+ file_list = os.listdir(templates_dir)
+ for item in file_list:
+ if item.split(".")[-1] == "html":
+ modified = os.path.getmtime(templates_dir + "/" + item)
+ if item in FILES:
+ if FILES[item] != modified:
+ FILES[item] = modified
+ precompile(templates_dir, item)
+ else:
+ print (COLOUR_BLUE + item + " is being watched" + COLOUR_END)
+ FILES[item] = modified
+ precompile(templates_dir, item)
+
+
+def precompile(tempates_dir, filename):
+ compiled_filename = filename.replace("html", "js")
+ path_to_js = tempates_dir + "/" + compiled_filename
+ path_to_html = tempates_dir + "/" + filename
+ if os.path.exists(path_to_js):
+ call("rm -f " + path_to_js, shell=True)
+ command = NUNJUCKS_REPO + "/bin/precompile --name " + filename + " " + path_to_html
+ command = command + " >> " + path_to_js
+ call(command, shell=True)
+ print(COLOUR_GREEN + datetime.now().strftime("%X" + " " + filename + " ...OK") + COLOUR_END)
+
+
+if __name__ == '__main__':
+ while True:
+ check_templates()
+ sleep(TIMER)
+```
diff --git a/exampleSite/content/plot/_index.md b/exampleSite/content/plot/_index.md
new file mode 100644
index 0000000..2c7455f
--- /dev/null
+++ b/exampleSite/content/plot/_index.md
@@ -0,0 +1,16 @@
+---
+title: "Plot summary"
+date: 2018-01-28T21:48:57+01:00
+anchor: "summary"
+weight: 15
+---
+
+The Culture and the Idiran Empire are at war in a galaxy-spanning conflict. A Culture Mind, fleeing the destruction of its ship in an Idiran ambush, takes refuge on Schar's World. The Dra'Azon, godlike incorporeal beings, maintain Schar's World as a monument to its extinct civilisation, forbidding access to both the Culture and the Idirans. Horza, a shape-changing mercenary, is rescued from execution by the Idirans who believe the Dra'Azon guardian may let him onto the planet as in the past he was part of a small group of Changers who acted as stewards. They instruct him to retrieve the Mind.
+
+During Horza's extraction, the Idirans also capture a Special Circumstances agent, Perosteck Balveda. However, the Idiran starship on which he is travelling is soon attacked by a Culture vessel, and Horza is ejected. He is picked up by a pirate ship, the Clear Air Turbulence (CAT). He is forced to fight and kill one of the crew to earn a place. The captain, Kraiklyn, leads them on two disastrous pirate raids in which several of the crew perish. After the second raid Horza is taken prisoner by a cult living on an island on the orbital Vavatch. He escapes after killing the cult leader and makes his way to the main city of Vavatch where he finds Kraiklyn, who is playing "Damage"—a high stakes card game.
+
+Having now changed his appearance to mimic that of the CAT captain, Horza follows him back to the CAT, kills him and returns to the CAT meeting the few remaining original crew. He is introduced to a newly recruited member, whom he recognises as a disguised Perosteck Balveda. Culture agents outside try to capture the ship. Horza manages to lift off and as the fugitives warp away from Vavatch, they see the Orbital destroyed by the Culture warships to prevent it from falling into enemy hands. Balveda reveals Horza's identity and he convinces the crew to carry out his mission. A Vavatch drone, Unaha-Closp, has been trapped on the ship and reluctantly joins the team.
+
+They land on Schar's World and search for the Mind in the Command System, a complex of subterranean train stations. They soon discover that the Mind is being hunted by a pair of Idiran soldiers who have killed all the Changers stationed on the planet, and who regard Horza and his crew as enemies, having no knowledge of the Changers' alliance with the Idirans. Horza has kept Balveda alive, and she is taken into the complex. The CAT's crew encounter the Idirans in one of the Command System stations, and after a firefight apparently kill one and capture the other. After tracking the Mind to another station, the drone Unaha-Closp discovers it hiding in the reactor car of a Command System train. The second Idiran, who had been mortally wounded but not killed, sets one of the trains for a collision course to the station. The captured Idiran, Xoxarle, frees himself and in the ensuing impact and firefight the remaining members of the Clear Air Turbulence are killed. Horza pursues Xoxarle and is fatally injured, but the Idiran is killed by Balveda.
+
+Horza dies soon after Balveda gets him to the surface and the Mind is returned to the Culture. In an epilogue, the Mind becomes a starship, and names itself the Bora Horza Gobuchul.