~siegfriedehret/beulogue-templates

7b80b98af84a8af1e214e14b7c3c08600931b9ea — Siegfried Ehret 3 years ago 8eb4155
:gift: init template
A .gitignore => .gitignore +0 -0
A LICENCE => LICENCE +21 -0
@@ 0,0 1,21 @@
MIT License

Copyright (c) 2019 Siegfried Ehret

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

M README.md => README.md +42 -1
@@ 1,2 1,43 @@
# beulogue templates
# beulogue single language template

This is a template for [beulogue](https://beulogue.ehret.me/).

## Installation

Download a zip of the `single-language` branch and extract it somewhere. 

The zip is available on:

- [bitbucket](https://bitbucket.org/siegfriedehret/beulogue-templates/get/single-language.zip)
- [codeberg](https://codeberg.org/SiegfriedEhret/beulogue-templates/archive/single-language.zip)
- [github](https://github.com/SiegfriedEhret/beulogue-templates/archive/single-language.zip)

## What's inside ?

You will find something like this:

```
content
├── _index.md
├── my-awesome-post.md
templates
├── list.html
└── page.html
beulogue.yml
```

## Usage

Install the last version of [beulogue](https://github.com/SiegfriedEhret/beulogue/releases).

Run `beulogue` from the folder where you see the `beulogue.yml` file.

Please refer to the [documentation](https://beulogue.ehret.me/) for more info, for example:

- [content](https://beulogue.ehret.me/en/content/)
- [templates](https://beulogue.ehret.me/en/content/templating.html)
- [beulogue.yml](https://beulogue.ehret.me/en/usage/configuration.html)

## Licence

Licenced under the [MIT Licence](./LICENCE).

A beulogue.yml => beulogue.yml +4 -0
@@ 0,0 1,4 @@
base: https://TODO
title: My awesome website
languages:
- en
\ No newline at end of file

A content/_index.md => content/_index.md +7 -0
@@ 0,0 1,7 @@
---
title: My title
date: 2019-07-28
description: A small description
---

This content is from the `content/_index.md` file.
\ No newline at end of file

A content/my-awesome-post.md => content/my-awesome-post.md +9 -0
@@ 0,0 1,9 @@
---
title: My awesome post
date: 2019-07-28
description: A small description
---

Yoohoo ! It works !

[![Jmills74 at English Wikipedia [CC BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0/)], via Wikimedia Commons](/images/Fujiview.jpg)](https://commons.wikimedia.org/wiki/File:Fujiview.jpg)
\ No newline at end of file

A public/feed.xml => public/feed.xml +14 -0
@@ 0,0 1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <lastBuildDate>2019-07-30</lastBuildDate>
    <link>https://TODO</link>
    <title>TODO</title>
    <item>
      <description>A small description</description>
      <link>https://TODO/my-awesome-post.html</link>
      <pubDate>2019-07-28</pubDate>
      <title>My awesome post</title>
    </item>
  </channel>
</rss>

A public/images/Fujiview.jpg => public/images/Fujiview.jpg +0 -0
A public/index.html => public/index.html +37 -0
@@ 0,0 1,37 @@
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta name="generator" content="beulogue" />
		<meta charset="utf-8" />
		<link
			rel="alternate"
			type="application/rss+xml"
			title="RSS"
			href="/feed.xml"
		/>
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<title>
			TODO
		</title>

		<link rel="stylesheet" href="/styles.css" />
	</head>

	<body>
		<header>
			<h1>
				My title
			</h1>

			<p>This content is from the <code>content/_index.md</code> file.</p>
		</header>

		<section>
			<a href="/my-awesome-post.html">My awesome post</a>

			<div>2019-07-28</div>

			<p>A small description</p>
		</section>
	</body>
</html>

A public/my-awesome-post.html => public/my-awesome-post.html +29 -0
@@ 0,0 1,29 @@
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta name="generator" content="beulogue" />
		<meta charset="utf-8" />
		<link
			rel="alternate"
			type="application/rss+xml"
			title="RSS"
			href="/feed.xml"
		/>
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<title>
			TODO
		</title>

		<link rel="stylesheet" href="/styles.css" />
	</head>

	<body>
		<h1>
			My awesome post
		</h1>

		<p>Yoohoo ! It works !</p>

<p><a href="https://commons.wikimedia.org/wiki/File:Fujiview.jpg"><img src="/images/Fujiview.jpg" alt="Jmills74 at English Wikipedia [CC BY-SA 3.0 (http://creativecommons.org/licenses/by-sa/3.0/)"/></a></p>
	</body>
</html>

A templates/list.html => templates/list.html +39 -0
@@ 0,0 1,39 @@
<!DOCTYPE html>
<html lang="{{language}}">
	<head>
		<meta name="generator" content="beulogue" />
		<meta charset="utf-8" />
		<link
			rel="alternate"
			type="application/rss+xml"
			title="RSS"
			href="/feed.xml"
		/>
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<title>
			{{site.title}}
		</title>

		<link rel="stylesheet" href="/styles.css" />
	</head>

	<body>
		<header>
			<h1>
				{{title}}
			</h1>

			{{{content}}}
		</header>

		{{#pages}}
		<section>
			<a href="{{url}}">{{title}}</a>

			<div>{{dateFormatted}}</div>

			<p>{{description}}</p>
		</section>
		{{/pages}}
	</body>
</html>

A templates/page.html => templates/page.html +27 -0
@@ 0,0 1,27 @@
<!DOCTYPE html>
<html lang="{{language}}">
	<head>
		<meta name="generator" content="beulogue" />
		<meta charset="utf-8" />
		<link
			rel="alternate"
			type="application/rss+xml"
			title="RSS"
			href="/feed.xml"
		/>
		<meta name="viewport" content="width=device-width, initial-scale=1" />
		<title>
			{{ site.title }}
		</title>

		<link rel="stylesheet" href="/styles.css" />
	</head>

	<body>
		<h1>
			{{ title }}
		</h1>

		{{{content}}}
	</body>
</html>