Hugo Bilberry First commit to gitea@cowbay.org

This commit is contained in:
2018-11-09 16:23:58 +08:00
commit 16f4228909
1090 changed files with 399555 additions and 0 deletions

View File

@@ -0,0 +1,222 @@
{
"projectName": "bilberry-hugo-theme",
"projectOwner": "Lednerb",
"repoType": "github",
"repoHost": "https://github.com",
"files": [
"README.md"
],
"imageSize": 100,
"commit": false,
"contributorsPerLine": 5,
"contributors": [
{
"login": "Lednerb",
"name": "Sascha Brendel",
"avatar_url": "https://avatars1.githubusercontent.com/u/2056876?v=4",
"profile": "https://sascha-brendel.de",
"contributions": [
"question",
"blog",
"code",
"design",
"doc",
"translation"
]
},
{
"name": "Anna Brendel",
"avatar_url": "https://anna-brendel.de/images/background1.jpg",
"profile": "https://anna-brendel.de",
"contributions": [
"ideas",
"translation"
]
},
{
"login": "gigovich",
"name": "Givi Khojanashvili",
"avatar_url": "https://avatars2.githubusercontent.com/u/1560404?v=4",
"profile": "https://www.linkedin.com/in/khojanashvili/",
"contributions": [
"code"
]
},
{
"login": "anhchungite",
"name": "Chung Tran Anh",
"avatar_url": "https://avatars2.githubusercontent.com/u/28822504?v=4",
"profile": "https://github.com/anhchungite",
"contributions": [
"code",
"translation"
]
},
{
"login": "cripplet",
"name": "Minke Zhang",
"avatar_url": "https://avatars0.githubusercontent.com/u/3048682?v=4",
"profile": "http://blogzhang.com",
"contributions": [
"code"
]
},
{
"login": "aerohub",
"name": "Pavel Kanyshev",
"avatar_url": "https://avatars1.githubusercontent.com/u/16353578?v=4",
"profile": "https://github.com/aerohub",
"contributions": [
"code",
"translation"
]
},
{
"login": "marcelkraus",
"name": "Marcel Kraus",
"avatar_url": "https://avatars3.githubusercontent.com/u/3541050?v=4",
"profile": "https://www.marcelkraus.de",
"contributions": [
"code"
]
},
{
"login": "NickBusey",
"name": "Nick Busey",
"avatar_url": "https://avatars2.githubusercontent.com/u/280825?v=4",
"profile": "http://nickbusey.com/",
"contributions": [
"code"
]
},
{
"login": "lkorzen",
"name": "lkorzen",
"avatar_url": "https://avatars1.githubusercontent.com/u/4789253?v=4",
"profile": "https://github.com/lkorzen",
"contributions": [
"translation"
]
},
{
"login": "ChrisStayte",
"name": "Chris Stayte",
"avatar_url": "https://avatars1.githubusercontent.com/u/12019608?v=4",
"profile": "http://www.chrisstayte.com",
"contributions": [
"bug"
]
},
{
"login": "meAmidos",
"name": "Dmitry Matrosov",
"avatar_url": "https://avatars0.githubusercontent.com/u/405277?v=4",
"profile": "https://twitter.com/amidos_me",
"contributions": [
"code"
]
},
{
"login": "Embraser01",
"name": "Marc-Antoine",
"avatar_url": "https://avatars2.githubusercontent.com/u/8802277?v=4",
"profile": "https://marca.finch4.xyz/",
"contributions": [
"code",
"bug"
]
},
{
"login": "nnja",
"name": "Nina Zakharenko",
"avatar_url": "https://avatars1.githubusercontent.com/u/2030983?v=4",
"profile": "http://nnja.io",
"contributions": [
"code",
"bug",
"doc"
]
},
{
"login": "nisargap",
"name": "Nisarga",
"avatar_url": "https://avatars1.githubusercontent.com/u/7719018?v=4",
"profile": "https://github.com/nisargap",
"contributions": [
"code"
]
},
{
"login": "pdoro",
"name": "Pablo Domingo Rojo",
"avatar_url": "https://avatars2.githubusercontent.com/u/2817480?v=4",
"profile": "https://github.com/pdoro",
"contributions": [
"code"
]
},
{
"login": "rabarar",
"name": "Rob Baruch",
"avatar_url": "https://avatars3.githubusercontent.com/u/4433144?v=4",
"profile": "https://github.com/rabarar",
"contributions": [
"code"
]
},
{
"login": "GMpet",
"name": "Taoshi",
"avatar_url": "https://avatars0.githubusercontent.com/u/9339576?v=4",
"profile": "https://github.com/GMpet",
"contributions": [
"translation"
]
},
{
"login": "nonumeros",
"name": "nonumeros",
"avatar_url": "https://avatars1.githubusercontent.com/u/11535575?v=4",
"profile": "https://github.com/nonumeros",
"contributions": [
"code"
]
},
{
"login": "marcelocg",
"name": "Marcelo Gonçalves",
"avatar_url": "https://avatars3.githubusercontent.com/u/56372?v=4",
"profile": "http://marcelogoncalves.com.br",
"contributions": [
"translation"
]
},
{
"login": "davidsarkany",
"name": "Dávid Sárkány",
"avatar_url": "https://avatars0.githubusercontent.com/u/9111944?v=4",
"profile": "https://sarkanydavid.com",
"contributions": [
"translation"
]
},
{
"login": "meonamz",
"name": "meonamz",
"avatar_url": "https://avatars3.githubusercontent.com/u/43414238?v=4",
"profile": "https://github.com/meonamz",
"contributions": [
"translation"
]
},
{
"login": "hycakir",
"name": "Hamza Yusuf Çakır",
"avatar_url": "https://avatars3.githubusercontent.com/u/32282514?v=4",
"profile": "https://github.com/hycakir",
"contributions": [
"translation"
]
}
]
}

143
themes/bilberry-hugo-theme/.gitignore vendored Normal file
View File

@@ -0,0 +1,143 @@
mix-manifest.json
# Created by https://www.gitignore.io/api/node,sass,linux,macos,sublimetext
### Linux ###
*~
# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*
# KDE directory preferences
.directory
# Linux trash folder which might appear on any partition or disk
.Trash-*
# .nfs files are created when an open file is removed but is still being accessed
.nfs*
### macOS ###
*.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Node ###
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
*.seed
*.pid.lock
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# nyc test coverage
.nyc_output
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Bower dependency directory (https://bower.io/)
bower_components
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directories
node_modules/
jspm_packages/
# Typescript v1 declaration files
typings/
# Optional npm cache directory
.npm
# Optional eslint cache
.eslintcache
# Optional REPL history
.node_repl_history
# Output of 'npm pack'
*.tgz
# Yarn Integrity file
.yarn-integrity
# dotenv environment variables file
.env
### Sass ###
.sass-cache/
*.css.map
### SublimeText ###
# cache files for sublime text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
# workspace files are user-specific
*.sublime-workspace
# project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using SublimeText
# *.sublime-project
# sftp configuration file
sftp-config.json
# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
Package Control.merged-ca-bundle
Package Control.user-ca-bundle
oscrypto-ca-bundle.crt
bh_unicode_properties.cache
# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings
# End of https://www.gitignore.io/api/node,sass,linux,macos,sublimetext

View File

@@ -0,0 +1,207 @@
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
## [Unreleased]
## [1.13.0] - 2018-10-13
### Added
- Functionality to automatically resize and crop images.
### Fixed
- A bug where the `customImage` is not displayed on multi-language sites. #137
- Style for the gallery slider controls so they are visible on white backgrounds. #138
## [1.12.0] - 2018-10-08
### Fixed
- Bug #128 that prevent to build the site.
- Deprecation warning with SCSS, thanks to @nnja
- README.md for the latest instructions
- Font path issues
### Added
- Feature for a Pinned Post, thanks to @nnja
- Feature to customize the post icon, also by @nnja
- Feature to exclude an post from the main page, @nnja again!
- Hungarian Language, provided by @davidsarkany
- Turkish Language, provided by @hycakir
## [1.11.1] - 2018-09-15
### Fixed
- Broken font path since Version 1.10.0 (#114, #115)
## [1.11.0] - 2018-09-14
### Added
- Language Brazilian Portuguese, thanks to @marcelocg (#112)
- Updated Korean language
## [1.10.0] - 2018-09-10
### Fixed
- Incorrect rendering of task lists (#108)
- Displaying the RSS line in the footer
### Added
- Support for hugo pipes, no longer need for `npm` dependencies (#102)
- Option to configure the overlayIcon (#56)
- Option to configure the date format (#53)
- Option to display the Reading Time (#51)
## [1.9.1] - 2018-08-30
### Fixed
- Issues with the GoHugo Theme's requirements for the themes.gohugo.io site
## [1.9.0] - 2018-08-30
### Added
- All-Contributors list to README.md
- Chinese language, thanks to @AgennyBrof
- Korean language, thanks to @hithat (user at poeditor.com)
## [1.8.1] - 2018-08-16
### Added
- Africans language
### Changed
- Removed Patreon example content and introduced the new Discord server: <br> [![Discord](https://img.shields.io/discord/479643633814077465.svg?style=for-the-badge&label=Discord%20Chat&colorB=7289da)](https://discord.gg/vZVHJ4j)
- Language files from `.yaml` to `.toml` and switched to [POEditor](https://poeditor.com/projects/view?id=202795) for translations.
## [1.8.0] - 2018-08-09
### Added
- Vietnamese language, thanks to @anhchungite
- Danish language, thanks to @GMpet
- Open Graph meta data, thanks to @anhchungite again!
- RSS support, contributed by @NickBusey
### Fixed
- Displaying custom image (#96 and #103), by @Embraser01 and @gigovich
- Responsive images in posts
## [1.7.1] - 2018-06-17 | Hotfix
### Fixed
- Broken links in favicon, algolia-logo and `theme.css`
## [1.7.0] - 2018-06-17 | :tada: Multi-Language Support :tada:
### Added
- __Multi-Language Support__ <br>
You can now have your blog and blog posts in many languages. <br>
The algolia search does also support a multi-language site.
- Support for [Page Resources](http://gohugo.io/content-management/page-resources/)
- Increased privacy by removing dependencies from CDNs and Google Fonts
- Japanese language file, contributed by @chibikun
- Easier `gallery` and `featuredImage` handling. See announcement in [1.6.0]
- Instructions to customize `404.html` site (#46)
- Default values to prevent rendering issues when `config.toml` variables are not set (#65)
### Fixed
- URLs for posts, categories, tags, and authors, thanks to @anhchungite
- CSS import with different baseURL (#68)
- Space for top-nav (#80)
- Pages for the taxonomy overviews (categories, tags and authors) (#59)
## [1.6.0] - 2018-06-11
### Deprecated
- `featuredImage: "/absolute/url/to/image"` parameter <br>
The next version will support [Page Resources](http://gohugo.io/content-management/page-resources/) so you should have a better folder structure and you change:
```
# OLD Structure / deprecated
content/article/support-me-and-this-theme.md
static/images/patreon.png
# NEW structure
content/article/support-me-and-this-theme/index.md
content/article/support-me-and-this-theme/featuredImage.png
```
- `gallery: []` parameter <br>
The next version will support [Page Resources](http://gohugo.io/content-management/page-resources/) so you should have a better folder structure and you change:
```
# OLD Structure / deprecated
content/gallery/my-trip-to-scotland.md
static/images/scotland1.jpg
static/images/scotland2.jpg
...
# NEW structure
content/gallery/my-trip-to-scotland/index.md
content/article/my-trip-to-scotland/scotland1.jpg
content/article/my-trip-to-scotland/scotland2.jpg
...
```
You don't have to add the images manually to an array, instead all images in the content folder will be used automatically.
### Fixed
- Relative URLs fo taxonomy author, categories, tags - contributed by @anhchungite
### Added
- Customizable copyright and credits footer - big thanks to @nnja!
- LinkedIn social media support, contributed by @pdoro
- Support for Twitter meta data specification, contributed by @nisargap
## [1.5.0] - 2018-05-13
### Fixed
- Broken links #72
### Added
- Support for Polish language, provided by @lkorzen
### Changed
- The site's subtitle will be used in the title on the homepage. Contributed by @marcelkraus
## [1.4.0] - 2018-05-05
### Added
- Support for Ukrain language
- Support for CSS / JS extensions, submitted by @cripplet
- Support for Xing as a social media link in the footer, contributed by @marcelkraus
- `excludeFromTopNav` option for the `page` content type, requested in #60 by @AshleyByeUK
### Fixed
- Broken links to the repo, thx to @meAmidos
- Mobile view, thx to @cripplet
- Issue with Algolia export (Record too long), thanks for submitting #62 @lebarde
### Changed
- Improved README.md
### Removed
- `exampleSite/archetype` directory so the theme's archetypes can be used
## [1.3.0] - 2017-11-28
### Added
- Support for MathJax, contributed by @rabarar
- Support for a `target=""` attribute for the `page` post type as requested by @ajolo2ky
- Support for a favicon
### Changed
- Improved README.md
### Fixed
- Some typos
[Unreleased]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.13.0...development
[1.13.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.12.0...1.13.0
[1.12.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.11.1...1.12.0
[1.11.1]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.11.0...1.11.1
[1.11.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.10.0...1.11.0
[1.10.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.9.1...1.10.0
[1.9.1]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.9.0...1.9.1
[1.9.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.8.1...1.9.0
[1.8.1]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.8.0...1.8.1
[1.8.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.7.1...1.8.0
[1.7.1]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.7.0...1.7.1
[1.7.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.6.0...1.7.0
[1.6.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.5.0...1.6.0
[1.5.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.4.0...1.5.0
[1.4.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.3.0...1.4.0
[1.3.0]: https://github.com/Lednerb/bilberry-hugo-theme/compare/1.2.2...1.3.0

View File

@@ -0,0 +1,20 @@
The MIT License (MIT)
Copyright (c) 2017 Sascha Brendel | @Lednerb <code@lednerb.de>
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.

View File

@@ -0,0 +1,301 @@
## Bilberry Hugo Theme
[![All Contributors](https://img.shields.io/badge/all_contributors-22-orange.svg?style=flat-square)](#contributors)
[![GitHub version](https://img.shields.io/github/release/Lednerb/bilberry-hugo-theme/all.svg?style=flat-square)](https://github.com/Lednerb/bilberry-hugo-theme/releases)
[![License](https://img.shields.io/github/license/Lednerb/bilberry-hugo-theme.svg?style=flat-square)](https://github.com/Lednerb/bilberry-hugo-theme/blob/master/LICENSE.md)
[![Discord](https://img.shields.io/discord/479643633814077465.svg?style=flat-square&label=Discord%20Chat&colorB=7289da)](https://discord.gg/vZVHJ4j)
[![GitHub stars](https://img.shields.io/github/stars/Lednerb/bilberry-hugo-theme.svg?style=social&label=Stars)](https://github.com/Lednerb/bilberry-hugo-theme)
This is a premium theme for [HUGO](https://gohugo.io), inspired by the [Lingonberry WordPress](http://www.andersnoren.se/teman/lingonberry-wordpress-theme/) theme from Anders Norén.
Bilberry is an adaption that comes with different optimizations and little features as listed below.
<br>Click here for a [DEMO / PREVIEW](https://lednerb.github.io/bilberry-hugo-theme).
If you like this theme and/or use it for commercial purposes, please support me!
## Table of Contents
- [Requirements](#requirements)
- [Quick Start](#quick-start)
- [Configuration](#configuration)
- [Features](#features)
- [Algolia Search](#algolia-search)
- [Keyboard Shortcuts](#keyboard-shortcuts)
- [Post Types](#post-types)
- [Pages and External Links](#pages-and-external-links)
- [Manual Summary Breaks](#manual-summary-breaks)
- [Disqus Comments](#disqus-comments)
- [Responsive Design](#responsive-design)
- [Automatic Image Resizing](#automatic-image-resizing)
- [Permanent Top Navigation](#permanent-top-navigation)
- [MathJAX Markup](#mathjax-markup)
- [External Images](#external-images)
- [Custom 404 site](#custom-404-site)
- [Custom Post Types](#custom-post-types)
- [Customizing Individual Posts](#customizing-individual-posts)
- [Custom colors and fonts](#custom-colors-and-fonts)
- [CSS and JS modules](#css-and-js-modules)
- [Translations](#translations)
- [Credits](#credits)
- [Support and Discussions](#support-and-discussions)
- [Contributors](#contributors)
- [License](#license)
## Requirements
**Hugo version >= 0.43 Extended**
This theme makes use of Hugo Pipes, and requires at least Hugo version 0.43 **extended**. Please follow the installation instructions for your platform [here](https://gohugo.io/getting-started/installing/).
## Quick Start
- Create a new hugo site
```
hugo new site my-new-blog
```
- Install this theme
```
cd my-new-blog/themes
git clone https://github.com/Lednerb/bilberry-hugo-theme.git
```
If you don't use git, you can download and extract this theme manually into the themes folder. <br>
Please ensure that the folder is renamed to "bilberry-hugo-theme"
- Copy example content and default config file for a quick start
```
cp -r bilberry-hugo-theme/exampleSite/* ../
```
- Remove the default archetype
```
cd ../
rm archetypes/default.md
```
- Test and configure your site
```
hugo server -D
```
__Important:__ <br>
Do NOT change the name of the theme folder. <br>
If you rename the folder the different post types will not work.
## Configuration
To configure your site according to your needs, just open the `config.toml` file in your project folder and adjust the settings.
All options you can and should customize are commented so it should be no problem for you to get it done.
## Features
### Algolia Search
Bilberry includes a convenient search functionality for your site.
You can test it on the demo site.
Just click on the navigation bar at the top right of the header.
#### Setup
If you do not want to use the search functionality set `algolia_search = false` in your `config.toml` file.
If you want to include the algolia search for your site, you have to follow these steps:
1. Register for a free Algolia Search account at https://www.algolia.com/
2. Add a `New Application`. You can choose the `COMMUNITY` plan.
3. Switch over to `Indices` and create a new one.
4. Switch over to `API Keys` and copy your `Application ID`, `Search-Only API Key` and chosen `Index name` to your `config.toml` file.
5. Ensure that `algolia_search = true` is set.
6. Check the next section [Update the search index](#update-the-search-index), follow the steps and come back again
7. Back in your algolia index, switch to `DISPLAY` and select `language` in the `Attributes for faceting` option.
8. Done.
#### Update the search index
You have to repeat this step every time you change a post or publish a new one to update the search index.
1. Publish your changes via the `hugo` command.
2. Head over to the `public/index.json` file and copy everything in there
3. Login to your algolia account, open your index and click at `Add records manually`
4. Paste the copied text from the `index.json` file.
5. Done.
### Keyboard Shortcuts
If you want to start a search on your blog simply type `s` and the search menu will open.
To close it again you can enter `esc` at any time.
### Post Types
Bilberry comes with a bunch of predefined post types.
Available post types are `article`, `audio`, `code`, `gallery`, `link`, `page`, `quote` and `video`.
To use a post type, just create new content via the hugo command.<br>
For example:
```
hugo new quote/edward-snowden-about-privacy.md
```
`article` is the default post type if you want to use another type of content as the predefined.
Just discover the entries from the `exampleSite` folder to get an overview of the great possibilities Bilberry provides ;-)
### Pages and External Links
The post type `page` is the only one that appears in the top navigation (when you click on the navigation button on the top right).
A `page` can be a static page (about me or impress site) or a link to another page as it is used in the demo to link to the Bilberry GitHub repository.
The post type `link` always links to an external site and can be used with or without a background image.
### Manual Summary Breaks
You can influence the summary outpot on the listing pages (such as the home page or the category or tag pages) in three ways:
- You don't set a manual summary break. <br>
Hugo will care for you and generates a summary as well as a _Continue reading_ link.
- You set a manual break via `<!--more-->` <br>
Just write your content and if you want to break use the code snippet to tell Hugo to break here.
- You want to display the full article without a _Continue reading_ link <br>
In this case, set the option `noSummary: true` in the header area (Front Matter) of your `.md` file.
### Disqus comments
If you want to enable the functionality for your users to write comments below your articles, you can register for a free [Disqus](https://disqus.com) account.
Just create a new site and copy your site's short name to the `config.toml` file at `disqusShortname`.
You can manage and moderate the comments either on your website or at the disqus management panel.
### Responsive Design
Bilberry is optimized for desktop and mobile devices (tablets and smartphones).
### Automatic Image Resizing
The bilberry theme handles image crops and resizes automatically by default.
However, if you want to disable this functionality in general, you can set `resizeImages: false` in your `config.toml` file.
If you want to disable this functionality just on some posts, you can set `resizeImages: false` in your post's settings.
### Permanent Top Navigation
If you want to permanently display the top navigation with the algolia search bar and the `page` entries, you can set the `permanentTopNav` option to `true` in your site's config file.
Note that on mobile devices the navigation will still be collapsed because otherwise, the navigation menu hides the essential parts of your site.
### MathJAX Markup
If you want to add [MathJAX](https://www.mathjax.org) markup support, set parameter `enable_mathjax` option to `true` in your site's config file.
## Custom 404 site
If you want to customize your 404 site, copy the `themes/bilberry-hugo-theme/layouts/404.html` to your local `layouts/404.html` and edit the file.
You can quickly change the message and / or the icon class for example.
Otherwise, you can replace the whole content with your 404 site markup.
## Custom Post Types
If you want to add a custom post type to change the icon in the bubble on the left column you can simply create those as you wish.
If you want to create a `book` post type, for example, you can do the following:
1. Copy the default `themes/bilberry-hugo-theme/layouts/partials/content-type/article.html` to your site's `layouts/partials/content-type/` folder.
2. Rename the file to your custom post type. A proper name in the _book scenario_ would be `book.html`
3. Customize the file. <br> You can change the icon in the bubble with another [Font Awesome Icon](http://fontawesome.io/icons/). <br> In the _book scenario_ we would change the `fa-pencil` class to `fa-book`:
`<i class="fa fa-fw fa-book"></i>`
4. Create your new posts with the post type prefix: `hugo new book/a-very-cool-book.md`
5. Done.
If you want to use custom Front Matter variables, create a `book.md` archetype in your `archetypes/` directory.
You can find further information in the official HUGO docs.
## External Images
If you want to use external images (on another server or installation, etc.) for the `featuredImage` or in the `gallery` post type, you can use them by specifying the following in the post's config within the frontmatter:
`/content/article/my-external-featured-image-post.md`
```
featuredImage: "https://example.org/images/my-image.jpg"
```
`/content/gallery/my-external-gallery-post.md`
```
gallery: [
"https://example.org/images/gallery-image1.jpg",
"https://example.org/images/gallery-image2.jpg",
"https://example.org/images/gallery-image3.jpg"
]
```
## Customizing Individual Posts
Posts can be customized via a variety of options.
To exclude posts from appearing on your blog index, while still being displayed in categories, add `excludeFromIndex: true` to the post configuration.
The theme also has options for a pinned post. Just uncomment `pinnedPost` in `config.toml`, and point it to the post you'd like permanently pinned to the top of the page. The `pinOnlyToFirstPage` setting lets you control if you'd like to only display the pinned post on the index, or on all pages.
A custom icon can be declared per post, by specifying a font-awesome icon in the post configuration, such as `icon: fa-thumb-tack` for a pinned post.
--------------
If you want to change the default post types (e.g., don't use the pencil icon on the `article` or default type, but another one) copy the original file to your local `layouts/partials/content-type/` directory and edit it there. <br>
Otherwise, your changes would be overwritten when you update to the latest theme version.
## Custom colors and fonts
Bilberry uses SCSS for styling, and [Hugo Pipes](https://gohugo.io/hugo-pipes/introduction/) to dynamically create the combined and compressed production-ready stylesheets. Hugo Pipes requires Hugo version >= 0.43 **extended**. Find installation instructions for your platform [here](https://gohugo.io/getting-started/installing/).
If you want to change any colors or fonts, you have follow these steps:
1. Install this theme to your `themes` directory
1. Modify the `scss/_variables.scss` file to customize your colors. <br> If you want to change the header's color just edit the `$base-color` variable
1. Done!
## CSS and JS modules
This theme supports hot-swappable CSS and JavaScript extentions. Modules can be specified using the `(css|js)_modules` list parameter. Modules can be specified either relative to the `static` directory (e.g. `exampleSite/static/css/custom.css`) or as a URL.
Modules are imported in the order they appear in the list, and immediately after the default Bilberry CSS and JS files are imported.
## Translations
This theme has support for multi-language sites and therefore translations for 10+ languages.
If you want to contribute and improve this theme for all users, please check our translation project at [POEditor](https://poeditor.com/projects/view?id=202795)
Feel free to submit a request for a new language or improve existing ones!
## Credits
Bilberry is inspired by the [WordPress theme Lingonberry](http://www.andersnoren.se/teman/lingonberry-wordpress-theme/), created by Anders Norén.
Bilberry is a theme for the great [HUGO static site generator](https://gohugo.io).
A big thank you goes to [@Ipstenu](https://github.com/Ipstenu) for his help in [this thread](https://discourse.gohugo.io/t/search-index-json-file-for-lunr-js/6286/5?u=lednerb) that helped me to create the `index.json` for the algolia export.
## Support and Discussions
If you enjoy this theme and want to stay up to date or just want to say thanks, have a look at this Discord Channel:
[![Discord](https://img.shields.io/discord/479643633814077465.svg?style=for-the-badge&label=Discord%20Chat&colorB=7289da)](https://discord.gg/vZVHJ4j)
## Contributors
Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore -->
| [<img src="https://avatars1.githubusercontent.com/u/2056876?v=4" width="100px;"/><br /><sub><b>Sascha Brendel</b></sub>](https://sascha-brendel.de)<br />[💬](#question-Lednerb "Answering Questions") [📝](#blog-Lednerb "Blogposts") [💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=Lednerb "Code") [🎨](#design-Lednerb "Design") [📖](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=Lednerb "Documentation") [🌍](#translation-Lednerb "Translation") | [<img src="https://anna-brendel.de/images/background1.jpg" width="100px;"/><br /><sub><b>Anna Brendel</b></sub>](https://anna-brendel.de)<br />[🤔](#ideas "Ideas, Planning, & Feedback") [🌍](#translation "Translation") | [<img src="https://avatars2.githubusercontent.com/u/1560404?v=4" width="100px;"/><br /><sub><b>Givi Khojanashvili</b></sub>](https://www.linkedin.com/in/khojanashvili/)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=gigovich "Code") | [<img src="https://avatars2.githubusercontent.com/u/28822504?v=4" width="100px;"/><br /><sub><b>Chung Tran Anh</b></sub>](https://github.com/anhchungite)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=anhchungite "Code") [🌍](#translation-anhchungite "Translation") | [<img src="https://avatars0.githubusercontent.com/u/3048682?v=4" width="100px;"/><br /><sub><b>Minke Zhang</b></sub>](http://blogzhang.com)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=cripplet "Code") |
| :---: | :---: | :---: | :---: | :---: |
| [<img src="https://avatars1.githubusercontent.com/u/16353578?v=4" width="100px;"/><br /><sub><b>Pavel Kanyshev</b></sub>](https://github.com/aerohub)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=aerohub "Code") [🌍](#translation-aerohub "Translation") | [<img src="https://avatars3.githubusercontent.com/u/3541050?v=4" width="100px;"/><br /><sub><b>Marcel Kraus</b></sub>](https://www.marcelkraus.de)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=marcelkraus "Code") | [<img src="https://avatars2.githubusercontent.com/u/280825?v=4" width="100px;"/><br /><sub><b>Nick Busey</b></sub>](http://nickbusey.com/)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=NickBusey "Code") | [<img src="https://avatars1.githubusercontent.com/u/4789253?v=4" width="100px;"/><br /><sub><b>lkorzen</b></sub>](https://github.com/lkorzen)<br />[🌍](#translation-lkorzen "Translation") | [<img src="https://avatars1.githubusercontent.com/u/12019608?v=4" width="100px;"/><br /><sub><b>Chris Stayte</b></sub>](http://www.chrisstayte.com)<br />[🐛](https://github.com/Lednerb/bilberry-hugo-theme/issues?q=author%3AChrisStayte "Bug reports") |
| [<img src="https://avatars0.githubusercontent.com/u/405277?v=4" width="100px;"/><br /><sub><b>Dmitry Matrosov</b></sub>](https://twitter.com/amidos_me)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=meAmidos "Code") | [<img src="https://avatars2.githubusercontent.com/u/8802277?v=4" width="100px;"/><br /><sub><b>Marc-Antoine</b></sub>](https://marca.finch4.xyz/)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=Embraser01 "Code") [🐛](https://github.com/Lednerb/bilberry-hugo-theme/issues?q=author%3AEmbraser01 "Bug reports") | [<img src="https://avatars1.githubusercontent.com/u/2030983?v=4" width="100px;"/><br /><sub><b>Nina Zakharenko</b></sub>](http://nnja.io)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=nnja "Code") [🐛](https://github.com/Lednerb/bilberry-hugo-theme/issues?q=author%3Annja "Bug reports") [📖](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=nnja "Documentation") | [<img src="https://avatars1.githubusercontent.com/u/7719018?v=4" width="100px;"/><br /><sub><b>Nisarga</b></sub>](https://github.com/nisargap)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=nisargap "Code") | [<img src="https://avatars2.githubusercontent.com/u/2817480?v=4" width="100px;"/><br /><sub><b>Pablo Domingo Rojo</b></sub>](https://github.com/pdoro)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=pdoro "Code") |
| [<img src="https://avatars3.githubusercontent.com/u/4433144?v=4" width="100px;"/><br /><sub><b>Rob Baruch</b></sub>](https://github.com/rabarar)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=rabarar "Code") | [<img src="https://avatars0.githubusercontent.com/u/9339576?v=4" width="100px;"/><br /><sub><b>Taoshi</b></sub>](https://github.com/GMpet)<br />[🌍](#translation-GMpet "Translation") | [<img src="https://avatars1.githubusercontent.com/u/11535575?v=4" width="100px;"/><br /><sub><b>nonumeros</b></sub>](https://github.com/nonumeros)<br />[💻](https://github.com/Lednerb/bilberry-hugo-theme/commits?author=nonumeros "Code") | [<img src="https://avatars3.githubusercontent.com/u/56372?v=4" width="100px;"/><br /><sub><b>Marcelo Gonçalves</b></sub>](http://marcelogoncalves.com.br)<br />[🌍](#translation-marcelocg "Translation") | [<img src="https://avatars0.githubusercontent.com/u/9111944?v=4" width="100px;"/><br /><sub><b>Dávid Sárkány</b></sub>](https://sarkanydavid.com)<br />[🌍](#translation-davidsarkany "Translation") |
| [<img src="https://avatars3.githubusercontent.com/u/43414238?v=4" width="100px;"/><br /><sub><b>meonamz</b></sub>](https://github.com/meonamz)<br />[🌍](#translation-meonamz "Translation") | [<img src="https://avatars3.githubusercontent.com/u/32282514?v=4" width="100px;"/><br /><sub><b>Hamza Yusuf Çakır</b></sub>](https://github.com/hycakir)<br />[🌍](#translation-hycakir "Translation") |
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome!
## License
The Bilberry Theme for HUGO is licensed under the MIT license.

View File

@@ -0,0 +1,15 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
categories: []
tags: []
author: ""
# Set your audio url for
spotify: "" # (Spotify URI) spotify:track:43mGIUqxFoDQI4YiqbGmqd
soundcloud: "" # https://soundcloud.com/lightbooks/alchemist-08-new-world-order-snip
tunein: "" # t117894382
mixcloud: "" # scienceforthepeople/445-ai-ant-intelligence
---

View File

@@ -0,0 +1,9 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
categories: []
tags: []
author: ""
---

View File

@@ -0,0 +1,11 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
imageSlider: true #set to false if you don't want to use the imageSlider but a featuredImage
categories: []
tags: []
author: ""
---

View File

@@ -0,0 +1,11 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
categories: []
tags: []
# Set your external url
link: "https://github.com/Lednerb/bilberry-hugo-theme"
---

View File

@@ -0,0 +1,11 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
excludeFromTopNav: false
# set the link if you want to redirect the user.
link: ""
# set the html target parameter if you want to change default behavior
target: "_blank"
---

View File

@@ -0,0 +1,12 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
categories: []
author: ""
# Set your video id for
youtube: "" # https://www.youtube.com/watch?v=M7IjJiZUutk -> "M7IjJiZUutk"
vimeo: "" # https://vimeo.com/239830182 -> "239830182"
---

View File

@@ -0,0 +1,2 @@
# Get external CSS-dependencies
`wget -O ../sass/externalDependencies.scss -i imports`

View File

@@ -0,0 +1,7 @@
https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.0/normalize.min.css
https://cdnjs.cloudflare.com/ajax/libs/skeleton/2.0.4/skeleton.min.css
https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css
https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.7.1/flexslider.min.css
https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/zenburn.min.css
https://cdnjs.cloudflare.com/ajax/libs/instantsearch.js/2.10.1/instantsearch.min.css
https://cdnjs.cloudflare.com/ajax/libs/instantsearch.js/2.10.1/instantsearch-theme-algolia.min.css

View File

@@ -0,0 +1,2 @@
# Get external JS-dependencies
`wget -O externalDependencies.js -i imports`

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,7 @@
https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js
https://cdnjs.cloudflare.com/ajax/libs/autocomplete.js/0.31.0/autocomplete.jquery.min.js
https://cdnjs.cloudflare.com/ajax/libs/flexslider/2.7.1/jquery.flexslider.min.js
https://cdnjs.cloudflare.com/ajax/libs/instantsearch.js/2.10.1/instantsearch.min.js
https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment-with-locales.min.js
https://cdnjs.cloudflare.com/ajax/libs/algoliasearch/3.30.0/algoliasearch.min.js
https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js

View File

@@ -0,0 +1,28 @@
$(document).ready(function() {
$(".toggler").click(function () {
$("nav").slideToggle();
$("#search").autocomplete("val", "");
});
$(document).keyup(function (e) {
if (e.keyCode === 27) {
if ( ! $("nav").hasClass('permanentTopNav') )
$("nav").slideUp();
$("#search").autocomplete("val", "");
}
else if (e.keyCode === 83){
if ( ! $("nav").hasClass('permanentTopNav') )
$("nav").slideDown();
$("#search").focus();
}
})
$('.flexslider').flexslider({
animation: "slide",
prevText: "",
nextText: "",
pauseOnHover: true,
});
});
hljs.initHighlightingOnLoad();

View File

@@ -0,0 +1,338 @@
article {
border-radius: 4px;
overflow: hidden;
background-color: $article-background-color;
box-shadow: 0 1px 2px rgba(0,0,0,0.2);
width: ($site-width - 100px);
position: relative;
// :before and :after to generate the < pointer
&:before {
content: "";
display: block;
border: 11px solid transparent;
border-right-color: #ddd;
position: absolute;
top: 49px;
left: -22px;
}
&:after {
content: "";
display: block;
border: 10px solid transparent;
border-right-color: #FFF;
position: absolute;
top: 50px;
left: -20px;
}
.featured-image {
width: 100%;
img {
width: 100%;
}
}
.content {
padding: 2em;
h3 {
font-size: 1.75em;
margin-bottom: 0.25em;
a {
font-style: normal;
}
}
.meta {
text-transform: uppercase;
font-style: normal;
letter-spacing: 1px;
margin-bottom: 2rem;
font-size: 0.825em;
color: $meta-text-color;
padding-bottom: 2.5%;
border-bottom: 3px double $meta-border-color;
margin-bottom: 4.5%;
a {
font-style: normal;
}
span {
&:before {
content: " / ";
margin: 0 1rem;
}
&:first-child:before {
margin: 0 !important;
content: "" !important;
}
a:not(:last-child):after {
content: ", ";
}
}
}
a {
font-style: italic;
}
a.more {
display: block;
margin: 2.5rem 0;
margin-bottom: 1rem;
color: $highlight-color;
font-size: 1.125em;
text-decoration: none;
font-style: normal;
&:hover {
color: $continue-reading-hover-color;
}
}
.task-list {
list-style: none;
.task-list-item {
margin-bottom: 0;
position: relative;
top: 3px;
margin-right: 0.25em;
}
}
blockquote {
background-color: #f6f6f6;
font-family: $headline-font;
margin: 1.5em 0;
padding: 2em;
border-left: 0.5em solid #ededed;
font-size: 1.1em;
cite {
text-transform: uppercase;
font-style: normal;
font-weight: bold;
font-size: 0.9em;
}
p:last-child {
margin-bottom: 0;
}
}
img {
max-width: 100%;
}
video {
max-width: 100%;
}
}
.footer {
display: flex;
align-items: center;
flex-direction: row;
justify-content: space-between;
background: transparentize($base-color, 0.90);
font-family: $article-footer-font;
font-size: 0.9em;
&.no-tags {
flex-direction: row-reverse;
}
.tags {
display: flex;
align-items: center;
margin: 1em 2em;
.links {
margin-left: 0.75em;
a:not(:last-child):after {
content: " / ";
color: $text-color !important;
}
}
}
.languages {
display: flex;
align-items: center;
margin: 1em 2em;
white-space: nowrap;
.fa {
font-size: 1.5em;
}
.links {
margin-left: 0.75em;
text-transform: uppercase;
font-family: $content-font;
letter-spacing: 0.1em;
a:not(:last-child):after {
content: " | ";
color: $text-color !important;
}
}
}
}
// Quotes
&.quote {
background-color: $special-color;
&:after {
border-right-color: $special-color;
}
a:hover {
color: inherit;
font-size: 1.1em;
}
@include featuredImage();
blockquote {
padding: 5.5%;
margin: 0;
text-align: center;
color: #FFF;
background: none;
font-size: 1.2em;
position: relative;
z-index: 10;
p {
line-height: 170%;
font-size: 1.10em;
}
cite {
font-family: $headline-font;
font-weight: 600;
text-transform: uppercase;
line-height: 140%;
font-size: 0.725em;
text-align: center;
letter-spacing: 1px;
&:before {
content: "";
}
}
}
}
// Gallery
&.gallery {
.flexslider {
margin: 0;
border: 0;
.flex-direction-nav a {
display: flex;
flex-direction: column;
justify-content: center;
&:before {
color: rgba(255, 255, 255, 0.9);
text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}
}
}
}
// Video
&.video {
.responsive-video {
position: relative;
padding-bottom: 56.25%; /* 16:9 ratio*/
padding-top: 0px;
height: 0;
overflow: hidden;
iframe {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
}
}
// Audio
&.audio {
.responsive-audio {
iframe {
width: 100%;
}
}
}
// Link
&.link {
background-color: $special-color;
min-height: 7em;
&:after {
border-right-color: $special-color;
}
&:hover {
background-color: $highlight-color;
transition: all 0.3s ease-in-out;
&:after {
border-right-color: $highlight-color;
transition: all 0.3s ease-in-out
}
}
@include featuredImage();
a {
color: #fff;
text-decoration: none;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
left: 0;
top: 0;
width: 100%;
height: 100%;
position: relative;
z-index: 10;
h4 {
font-variant: small-caps;
font-size: 2em;
margin: 2rem;
}
p {
margin: 2em;
margin-top: 0;
}
}
}
}
#disqus_thread {
margin-left: 100px;
padding-bottom: 1.2em;
}

View File

@@ -0,0 +1,134 @@
footer {
border-top: 3px solid $footer-border-color;
border-bottom: 3px solid $footer-border-color;
background-color: $footer-background-color;
.container {
padding: 4rem 0;
display: flex;
justify-content: space-between;
font-size: 0.9em;
font-family: $headline-font;
div {
&:not(:first-child) {
margin-left: 5%;
}
}
&:after {
display: none;
}
strong {
text-transform: uppercase;
color: $footer-headline-color;
padding-bottom: 0.75em;
}
ul {
list-style: none;
margin-top: 1.25em;
li {
border-bottom: 1px solid #eee;
padding-right: 10px;
}
a {
position: relative;
left: 0;
display: inline-block;
transition: left 0.3s ease-in-out;
color: $highlight-color;
font-family: $content-font;
&:hover {
left: 10px;
color: $base-color;
}
}
}
.right {
.external-profiles {
width: 100%;
margin-bottom: 2em;
a {
font-size: 2em;
margin: 0 0.5rem;
color: #444;
&:hover {
color: $highlight-color;
}
}
// Workaround to avoid conflicts with Adblock
// See: https://github.com/Lednerb/bilberry-hugo-theme/issues/95
.fa-facebook-adblock-proof:before {
content:"\f09a";
}
.fa-twitter-adblock-proof:before {
content:"\f099";
}
.fa-google-plus-official-adblock-proof:before {
content:"\f2b3";
}
.fa-youtube-adblock-proof:before {
content:"\f167";
}
}
.languages {
width: 100%;
margin-left: 0;
a {
text-transform: uppercase;
color: $highlight-color;
letter-spacing: 0.1em;
&.active {
font-weight: bold;
}
&:hover {
color: $text-color;
}
&:not(:last-child):after {
content: " | ";
color: $text-color !important;
}
}
}
strong {
display: block;
}
}
}
}
.credits {
.container {
display: flex;
justify-content: space-between;
padding: 4rem 0;
font-size: 0.8em;
color: #777;
&:after {
display: none;
}
}
}

View File

@@ -0,0 +1,122 @@
header {
background-color: $base-color;
color: $header-text-color;
height: 20rem;
display: flex;
align-items: center;
.container {
display: flex;
flex-direction: row;
align-items: center;
height: 100%;
&:after {
content: "";
display: block;
position: absolute;
left: 50px;
top: 50px;
width: 2px;
height: 100%;
background: rgba(255, 255, 255, 0.1);
z-index: 1;
}
}
.logo {
font-size: 40pt !important;
background-color: $logo-color;
border-radius: 50%;
width: 90px;
height: 90px;
border: 5px $logo-color solid;
position: relative;
color: $logo-color;
z-index: 4;
display: flex;
align-items: center;
justify-content: center;
a {
border: 0;
}
&:hover {
.overlay {
opacity: 1;
}
}
img {
max-width: 100%;
border-radius: 50%;
}
.overlay {
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
background-color: $bubble-hover-color;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease-in-out;
opacity: 0;
}
}
.titles {
margin-left: 3rem;
h3 {
margin-bottom: 0;
font-size: 3.25rem;
}
}
.languages {
position: absolute;
right: 0;
bottom: 0;
background-color: $special-color;
padding: 0.25em 1em;
border-top-right-radius: 4px;
border-top-left-radius: 4px;
a {
text-transform: uppercase;
font-size: 0.8em;
color: $page-background-color;
letter-spacing: 0.1em;
&.active {
font-weight: bold;
}
&:not(:last-child):after {
content: " | ";
color: inherit;
}
}
}
.toggler {
position: absolute;
right: 0;
top: 0;
background: $special-color;
padding: 0.375em 0.75em;
font-size: 1.125em;
border-bottom-left-radius: 4px;
border-bottom-right-radius: 4px;
cursor: pointer;
&.permanentTopNav {
display: none;
}
}
}

View File

@@ -0,0 +1,68 @@
.main {
margin-bottom: 5em;
min-height: 50vh;
&:before {
content: "";
display: block;
position: absolute;
left: 50px;
bottom: 50px;
width: 2px;
height: 100%;
background: rgba(0,0,0,0.05);
z-index: 1;
}
&:after {
content: "";
display: block;
position: absolute;
left: 41px;
bottom: 32px;
height: 20px;
width: 20px;
background: #DDD;
border-radius: 999px;
z-index: 10;
}
.article-wrapper {
display: flex;
justify-content: flex-end;
padding-top: 50px;
min-height: 90px;
position: relative;
// Move the left circle all the way down to the end of the article-wrapper
&.single {
padding-bottom: 2.5em;
}
.bubble {
position: absolute;
left: 25px;
top: 85px;
background-color: $bubble-background-color;
border: 3px solid $bubble-color;
width: 45px;
height: 45px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
z-index: 10;
text-decoration: none;
color: $bubble-color;
transition: all 0.3s ease-in-out;
.fa {
font-size: 15pt;
}
&:hover {
background-color: $highlight-color;
}
}
}
}

View File

@@ -0,0 +1,32 @@
.paginator {
display: flex;
margin-left: 100px;
margin-top: 75px;
padding-bottom: 1em;
.fa {
margin: 0 0.25em;
}
a {
border-radius: 4px;
padding: 1em 2em;
text-decoration: none;
font-weight: bold;
background-color: #B4B4B4;
color: #fff;
&:hover {
background-color: $highlight-color;
transition: all 0.3s ease-in-out;
}
&.older {
margin-right: auto;
}
&.newer {
margin-left: auto;
}
}
}

View File

@@ -0,0 +1,108 @@
@media (max-width: 834px) {
nav {
&.permanentTopNav {
display: none;
}
.container {
flex-direction: column-reverse;
padding: 0 1.5em;
.topnav {
flex-direction: column;
justify-content: center;
align-items: center;
margin-bottom: 0.5em;
width: 100%;
li {
width: 100%;
}
a {
padding: 0.75em 0;
display: block;
width: 100%;
}
}
.search {
margin: 0.5em 1.5em;
width: 100%;
input {
width: 100%;
}
}
}
}
header {
width: 100%;
.container {
padding: 0 1em;
}
.toggler {
right: 1.5em;
&.permanentTopNav {
display: block;
}
}
}
.bubble {
display: none !important;
}
.container {
width: 100%;
padding: 0;
}
.container:before, .container:after {
display: none !important;
}
.main {
margin-bottom: 0;
}
.main article {
margin: 0;
width: 100%;
&:before, &:after {
display: none !important;
}
}
.main #disqus_thread {
margin: 0 1.5em;
}
.main .paginator {
margin: 1.5em;
margin-top: 50px;
}
footer .container {
padding: 4rem 1.5em;
flex-direction: column;
text-align: center;
div {
width: 100%;
margin: 0 !important;
margin-top: 1.5em !important;
}
}
.credits .container {
padding: 4rem 1.5em;
}
}

View File

@@ -0,0 +1,208 @@
/* do not group these rules */
*::-webkit-input-placeholder {
color: darken($nav-text-color, 10);
}
*:-moz-placeholder {
/* FF 4-18 */
color: darken($nav-text-color, 10);
}
*::-moz-placeholder {
/* FF 19+ */
color: darken($nav-text-color, 10);
}
*:-ms-input-placeholder {
/* IE 10+ */
color: darken($nav-text-color, 10);
}
nav {
background: $nav-background-color;
color: $nav-text-color;
display: none;
&.permanentTopNav {
display: block;
}
.container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.25em 0;
min-height: 65px;
}
ul {
list-style: none;
display: flex;
flex-wrap: wrap;
align-items: center;
margin: 0;
li {
margin-bottom: 0;
display: flex;
a {
text-align: center;
padding: 1em 1.5em;
display: flex;
&:hover {
color: inherit;
background-color: lighten($nav-background-color, 10);
}
}
}
}
// Algolia-Search
.search {
margin-left: auto;
// width: 45%;
min-width: 300px;
position: relative;
input {
font-family: $content-font;
}
i {
position: absolute;
left: 1em;
top: 10px;
z-index: 40;
}
input {
margin: 0;
background: transparent;
border: none;
color: $nav-text-color;
padding-left: 2.75em;
width: 100%;
background-color: lighten($nav-background-color, 5);
&:hover, &:focus {
background-color: lighten($nav-background-color, 10);
border: none;
}
}
.algolia-autocomplete {
width: 100%;
color: $algolia-search-box-color;
.aa-dropdown-menu {
width: 100%;
border-radius: 4px;
.empty {
padding: 0.5em 1em;
display: block;
}
.branding {
font-size: 0.75em;
text-align: right;
padding: 0.5em 1em;
background-color: $page-background-color;
img {
width: 3.5em;
position: relative;
top: 0.1em;
}
}
}
.aa-suggestion {
span {
display: flex;
justify-content: space-between;
align-items: center;
background-color: $algolia-search-box-background-color;
&:hover, &:focus {
background-color: darken($algolia-search-box-background-color, 2);
}
.title {
max-width: 315px;
}
&.entry.category, &.entry.tag, &.entry.author {
.title {
text-transform: capitalize;
}
}
.fa {
font-size: 1em;
color: $algolia-search-box-icon-color;
text-align: right;
}
}
}
}
.aa-input-container {
display: inline-block;
position: relative;
}
.aa-input-search {
width: 300px;
padding: 12px 28px 12px 12px;
border: 1px solid $algolia-border-color;
box-sizing: border-box;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
.aa-input-search::-webkit-search-decoration, .aa-input-search::-webkit-search-cancel-button,
.aa-input-search::-webkit-search-results-button, .aa-input-search::-webkit-search-results-decoration {
display: none;
}
.aa-input-icon {
height: 16px;
width: 16px;
position: absolute;
top: 50%;
right: 16px;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
fill: $algolia-border-color;
pointer-events: none;
}
.aa-dropdown-menu {
background-color: #fff;
border: 1px solid rgba($algolia-border-color, 0.6);
min-width: 300px;
margin-top: 10px;
box-sizing: border-box;
}
.aa-suggestion {
padding: 6px 12px;
cursor: pointer;
}
.aa-suggestion + .aa-suggestion {
border-top: 1px solid rgba($algolia-border-color, 0.6);
}
.aa-suggestions-category {
border-bottom: 1px solid rgba($algolia-border-color, 0.6);
border-top: 1px solid rgba($algolia-border-color, 0.6);
padding: 6px 12px;
}
}
}

View File

@@ -0,0 +1,54 @@
$fonts-folder: '{{ .Site.Params.CustomFontsURL | default (print .Site.BaseURL "dist/fonts/") }}';
// Set the with of the main content area
// Notice that the actual content's width is $site-width - 100px
$site-width: {{ .Site.Params.SiteWidth | default "800px" }};
// Define your fonts.
// If you want to import new fonts, set them in /src/css/fonts.css
$headline-font: 'Comfortaa', sans-serif;
$content-font: 'Open Sans', sans-serif;
$article-footer-font: 'Roboto Mono', monospace;
// main colors
$page-background-color: #f1f1f1;
$base-color: #1d1f38;
$special-color: #2D3642;
$highlight-color: #5c8b59;
$text-color: #222;
// easy styling
$nav-background-color: $special-color;
$nav-text-color: $page-background-color;
$algolia-search-box-color: #444;
$algolia-search-box-icon-color: #888;
$algolia-search-box-background-color: #fafafa;
$algolia-border-color: #e4e4e4;
$header-text-color: $page-background-color;
$logo-color: darken( $page-background-color, 1 );
$bubble-color: #fff;
$bubble-background-color: #ccc;
$bubble-hover-color: $highlight-color;
$article-background-color: #fff;
$meta-text-color: #999;
$meta-border-color: #eee;
$continue-reading-hover-color: $meta-text-color;
$footer-border-color: #eee;
$footer-background-color: rgba(#ffffff, 80);
$footer-headline-color: #444;
@mixin featuredImage() {
.featured-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 5;
opacity: 0.25;
}
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,162 @@
@font-face {
font-family: 'flexslider-icon';
src: url($fonts-folder + 'flexslider-icon.eot');
src: url($fonts-folder + 'flexslider-icon.eot?#iefix') format('embedded-opentype'), url($fonts-folder + 'flexslider-icon.woff') format('woff'), url($fonts-folder + 'flexslider-icon.ttf') format('truetype'), url($fonts-folder + 'flexslider-icon.svg#flexslider-icon') format('svg');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'FontAwesome';
src: url($fonts-folder + 'fontawesome-webfont.eot?v=4.7.0');
src: url($fonts-folder + 'fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'), url($fonts-folder + 'fontawesome-webfont.woff2?v=4.7.0') format('woff2'), url($fonts-folder + 'fontawesome-webfont.woff?v=4.7.0') format('woff'), url($fonts-folder + 'fontawesome-webfont.ttf?v=4.7.0') format('truetype'), url($fonts-folder + 'fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
font-weight: normal;
font-style: normal;
}
/* open-sans-regular - vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 400;
src: url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.eot'); /* IE9 Compat Modes */
src: local('Open Sans Regular'), local('OpenSans-Regular'),
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.woff2') format('woff2'), /* Super Modern Browsers */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.woff') format('woff'), /* Modern Browsers */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-italic - vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 400;
src: url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.eot'); /* IE9 Compat Modes */
src: local('Open Sans Italic'), local('OpenSans-Italic'),
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.woff2') format('woff2'), /* Super Modern Browsers */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.woff') format('woff'), /* Modern Browsers */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.ttf') format('truetype'), /* Safari, Android, iOS */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-700 - vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: normal;
font-weight: 700;
src: url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.eot'); /* IE9 Compat Modes */
src: local('Open Sans Bold'), local('OpenSans-Bold'),
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.woff2') format('woff2'), /* Super Modern Browsers */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.woff') format('woff'), /* Modern Browsers */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.ttf') format('truetype'), /* Safari, Android, iOS */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* open-sans-700italic - vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic */
@font-face {
font-family: 'Open Sans';
font-style: italic;
font-weight: 700;
src: url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.eot'); /* IE9 Compat Modes */
src: local('Open Sans Bold Italic'), local('OpenSans-BoldItalic'),
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.woff2') format('woff2'), /* Super Modern Browsers */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.woff') format('woff'), /* Modern Browsers */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
url($fonts-folder + 'open-sans-v15-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.svg#OpenSans') format('svg'); /* Legacy iOS */
}
/* roboto-regular - vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 400;
src: url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.eot'); /* IE9 Compat Modes */
src: local('Roboto'), local('Roboto-Regular'),
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.woff2') format('woff2'), /* Super Modern Browsers */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.woff') format('woff'), /* Modern Browsers */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-italic - vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 400;
src: url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.eot'); /* IE9 Compat Modes */
src: local('Roboto Italic'), local('Roboto-Italic'),
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.woff2') format('woff2'), /* Super Modern Browsers */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.woff') format('woff'), /* Modern Browsers */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.ttf') format('truetype'), /* Safari, Android, iOS */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-700 - vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic */
@font-face {
font-family: 'Roboto';
font-style: normal;
font-weight: 700;
src: url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.eot'); /* IE9 Compat Modes */
src: local('Roboto Bold'), local('Roboto-Bold'),
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.woff2') format('woff2'), /* Super Modern Browsers */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.woff') format('woff'), /* Modern Browsers */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.ttf') format('truetype'), /* Safari, Android, iOS */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* roboto-700italic - vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic */
@font-face {
font-family: 'Roboto';
font-style: italic;
font-weight: 700;
src: url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.eot'); /* IE9 Compat Modes */
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'),
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.woff2') format('woff2'), /* Super Modern Browsers */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.woff') format('woff'), /* Modern Browsers */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.ttf') format('truetype'), /* Safari, Android, iOS */
url($fonts-folder + 'roboto-v18-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-700italic.svg#Roboto') format('svg'); /* Legacy iOS */
}
/* comfortaa-regular - vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic */
@font-face {
font-family: 'Comfortaa';
font-style: normal;
font-weight: 400;
src: url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-regular.eot'); /* IE9 Compat Modes */
src: local('Comfortaa Regular'), local('Comfortaa-Regular'),
url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-regular.woff2') format('woff2'), /* Super Modern Browsers */
url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-regular.woff') format('woff'), /* Modern Browsers */
url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-regular.svg#Comfortaa') format('svg'); /* Legacy iOS */
}
/* comfortaa-700 - vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic */
@font-face {
font-family: 'Comfortaa';
font-style: normal;
font-weight: 700;
src: url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-700.eot'); /* IE9 Compat Modes */
src: local('Comfortaa Bold'), local('Comfortaa-Bold'),
url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-700.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-700.woff2') format('woff2'), /* Super Modern Browsers */
url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-700.woff') format('woff'), /* Modern Browsers */
url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-700.ttf') format('truetype'), /* Safari, Android, iOS */
url($fonts-folder + 'comfortaa-v12-vietnamese_latin_greek_cyrillic-ext_latin-ext_cyrillic-700.svg#Comfortaa') format('svg'); /* Legacy iOS */
}
/* roboto-mono-regular - vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic */
@font-face {
font-family: 'Roboto Mono';
font-style: normal;
font-weight: 400;
src: url($fonts-folder + 'roboto-mono-v5-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.eot'); /* IE9 Compat Modes */
src: local('Roboto Mono'), local('RobotoMono-Regular'),
url($fonts-folder + 'roboto-mono-v5-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url($fonts-folder + 'roboto-mono-v5-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.woff2') format('woff2'), /* Super Modern Browsers */
url($fonts-folder + 'roboto-mono-v5-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.woff') format('woff'), /* Modern Browsers */
url($fonts-folder + 'roboto-mono-v5-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.ttf') format('truetype'), /* Safari, Android, iOS */
url($fonts-folder + 'roboto-mono-v5-vietnamese_latin_greek_cyrillic-ext_greek-ext_latin-ext_cyrillic-regular.svg#RobotoMono') format('svg'); /* Legacy iOS */
}

View File

@@ -0,0 +1,48 @@
// @import "_variables";
@import "externalDependencies";
@import "fontface";
.bilberry-hugo-theme {
background-color: $page-background-color;
font-family: $content-font;
color: $text-color;
font-size: 1.6em;
h1, h2, h3, h4, h5, h6, .title, .subtitle {
font-family: $headline-font;
}
a {
color: inherit;
text-decoration: none;
transition: all 0.2s ease-in-out;
&:hover {
color: $highlight-color;
}
}
.hljs {
padding: 0.75em;
font-size: 0.9em;
}
.container {
width: $site-width;
max-width: 100%;
}
@import "topnav";
@import "header";
@import "main";
@import "articles";
@import "pagination";
@import "footer";
@import "responsive";
}

View File

@@ -0,0 +1,147 @@
title = "My cool new Blog"
# Add an trailing slash to ensure that all fonts render correctly.
baseURL = "https://example.com/"
theme = "bilberry-hugo-theme"
enableRobotsTXT = true
# Change to one of your content languages definded at the end.
DefaultContentLanguage = "en"
# Enable / Disable Google Analytics statistics for your site
googleAnalytics = ""
# Enable / Disable comments on the articles via Disqus.
disqusShortname = "bilberry-hugo-theme"
[params]
# Favicon for the browser's favorites and tabs
favicon = "" # set a favicon icon
# Custom CSS / JS modules that will be imported by the template.
# Files are relative to the static/ directory or a URL.
# Files are imported in the order they appear here, after
# theme.css and theme.js, respectively.
css_modules = []
js_modules = []
# Description and meta data for the search engines
author = "Lednerb"
description = "Bilberry Premium Theme for Hugo."
keywords = "blog,personal,responsive,search,font awesome,pages,posts,multilingual,highlight.js,syntax highlighting,premium,shortcuts"
# How many articles should be displayed at once?
paginate = 7
# Enable / Disable MathJax
enable_mathjax = false
# Enable / Disable algolia search
algolia_search = true
algolia_appId = "Y2C4RWMPXW"
algolia_apiKey = "50ea7f8c41c0ad233926e0be2b769ed1"
algolia_indexName = "default-content"
# Set this option to false if you want to search within all articles in all languages at once
algolia_currentLanguageOnly = true
# Style configuration
# set the width of your site's content
siteWidth = "800px"
# let hugo automatically resize and crop your images to the correct sizes
resizeImages = true
# Header configuration
# your subtitle if you want to use any
subtitle = "Hello World! This is the most epic subtitle ever."
# if you want to use gravatar for the header image
gravatarEMail = "code@lednerb.de"
# set an path to the image file you want to use | overwrites gravatar
customImage = ""
# define the icon you want to use for the overlay for the customImage or gravatar.
overlayIcon = "fa-home"
# always display the top navigation (with pages and search) on non-mobile screens
permanentTopNav = false
# show a language chooser in the header
showHeaderLanguageChooser = true
# Content configuration
# Enable an optional pinned page to display at the top of the index
# pinnedPost = "/content/github/"
# Set to true to pin only to the first page, false to all pages
# pinOnlyToFirstPage = true
# enable automatical localization of the article's PublishedDate with momentjs
enableMomentJs = true
# customize the date format | only works if momentjs is disabled | only works with English month names
# you can customize it with the options you find here:
# https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference
dateFormat = "2006-01-02"
# display the estimated reading time for an article
showReadingTime = false
# Footer configuration
showFooter = true
# How many articles should be displayed at latest posts in the footer?
# Set to -1 to hide the 'Latest Posts' column
amountLatestPostsInFooter = 7
# How many categories should be displayed in the footer section?
# Set to -1 to hide the 'Categories' column
amountCategoriesInFooter = 7
# show a language chooser in the header
showFooterLanguageChooser = true
# social media profile urls for the footer links
showSocialMedia = true
facebook = ""
twitter = "https://twitter.com/TheRealLednerb"
googleplus = ""
pinterest = ""
instagram = ""
tumblr = ""
youtube = ""
vimeo = ""
github = "https://github.com/Lednerb"
xing = ""
linkedin = ""
# credits line configuration
copyrightBy = "by Lednerb"
copyrightUseCurrentYear = false # set to true to always display the current year in the copyright
copyrightYearOverride = "2017"
copyrightUrl = "https://github.com/Lednerb"
creditsText = "Bilberry Hugo Theme"
creditsUrl = "https://github.com/Lednerb/bilberry-hugo-theme"
# customize your available languages for your multi-langual site
# or delete the [Languages] blog to use the theme with only one supported language
[Languages]
[Languages.en]
weight = 1
[Languages.de]
weight = 2
title = "Mein cooler neuer Blog"
subtitle = "Hallo Welt! Dies ist der epischste Untertitel aller Zeiten."
# don't change anything below
[taxonomies]
author = "author"
tag = "tags"
category = "categories"
[outputs]
home = [ "HTML", "JSON", "RSS" ]
page = [ "HTML" ]

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -0,0 +1,19 @@
---
title: "Unterstützung und Diskussionen"
date: 2017-11-01T18:10:14+01:00
tags: ['Discord', 'Support', 'Sag Danke!']
author: "Lednerb"
noSummary: true
resizeImages: false
---
Hallo zusammen!
Dieses Premium Theme ist unter einer Open Source Lizenz veröffentlicht worden, sodass du dieses für deinen Blog benutzen kannst.
Bisher habe ich mehr als 75 Stunden Arbeitszeit investiert, um eins der besten Themes für Hugo zu erstellen, das es bisher für Hugo gibt.
Wenn dir dieses Theme gefällt und du über alle neuen Erweiterungen und Funktionen informiert werden oder einfach Danke sagen möchtest, schau mal in unseren Discord Kanal:
[![Discord](https://img.shields.io/discord/479643633814077465.svg?style=for-the-badge&label=Discord%20Chat&colorB=7289da)](https://discord.gg/vZVHJ4j)

View File

@@ -0,0 +1,18 @@
---
title: "Support and Discussions"
date: 2017-11-01T18:10:14+01:00
tags: ['Discord', 'Support', 'Say Thanks!']
author: "Lednerb"
noSummary: true
resizeImages: false
---
Hey there!
This Premium Theme is published under an open source license so you can use it for your blog. It took me more than 75 hours of work to create one of the best Hugo themes out there.
If you enjoy this theme and want to stay informed about the latest releases and features or want to say thanks and discuss with other users, join our Discord server:
[![Discord](https://img.shields.io/discord/479643633814077465.svg?style=for-the-badge&label=Discord%20Chat&colorB=7289da)](https://discord.gg/vZVHJ4j)

View File

@@ -0,0 +1,18 @@
---
title: "Kilez More - New World Order"
date: 2017-11-01T16:12:47+01:00
featuredImage: ""
categories: ['Musik']
tags: ['Kilez More', 'Truth Rap']
# Set your audio url for
spotify: "spotify:track:0qDZPJGUALZC7vSahlekhu"
soundcloud: "" # https://soundcloud.com/lightbooks/alchemist-08-new-world-order-snip
tunein: "" # t117894382
mixcloud: "" # scienceforthepeople/445-ai-ant-intelligence
---
Mit dem `audio` Post Type kann sehr einfach ein Spotify, SoundCloud, TuneIn oder Mixcloud Player integriert werden.
Falls kein Player integriert werden soll, kann optional ein Titelbild mit Hilfe der `featuredImage` Option in der Markdown Datei verwendet werden.

View File

@@ -0,0 +1,18 @@
---
title: "Kilez More - New World Order"
date: 2017-11-01T16:12:47+01:00
featuredImage: ""
categories: ['Music']
tags: ['Kilez More', 'Truth Rap']
# Set your audio url for
spotify: "spotify:track:0qDZPJGUALZC7vSahlekhu"
soundcloud: "" # https://soundcloud.com/lightbooks/alchemist-08-new-world-order-snip
tunein: "" # t117894382
mixcloud: "" # scienceforthepeople/445-ai-ant-intelligence
---
With the `audio` post type you can easily integrate a Spotify, SoundCloud, TuneIn or Mixcloud player to your post.
If you don't want to embed sound but use a header image you can set it with the `featuredImage` option in your markdown file.

View File

@@ -0,0 +1,43 @@
---
title: "Installing Bilberry Theme"
date: 2017-11-01T09:31:27+01:00
categories: ['Code', 'Tutorials']
tags: ['Hugo', 'Bilberry Theme']
author: "Lednerb"
---
You will find all information to setup this theme with your hugo site
on the official <br> [Github Repository](https://github.com/Lednerb/bilberry-hugo-theme).
<!--more-->
__If you want to install this theme, follow these steps:__
- Install Hugo and create a new site:
```sh
hugo new site my-new-blog
```
- Switch to your `theme` folder and import the latest version of the Bilberry Theme
```sh
cd my-new-blog/themes
git clone https://github.com/Lednerb/bilberry-hugo-theme.git
```
- Copy the example content to your new site
```sh
cp -r bilberry-hugo-theme/exampleSite/* ../
```
- Test the installation
```sh
cd ../
hugo server -D
```
- Configure the `config.toml` file according to your needs
- Start blogging

View File

@@ -0,0 +1,21 @@
---
title: "Meine Reise nach Schottland"
date: 2017-11-01T18:01:26+01:00
categories: ['Reise', 'Urlaub']
tags: ['Schottland', 'Glennfinnan Viadukt', 'Eilean Donan Castle']
author: "Lednerb"
---
Im Juni 2017 habe ich mit meinem besten Freund Schottland für 2 Wochen besucht und bereist.
Wir fuhren viel durch das schöne Land und sahen eine Reihe verschiedener Tiere: Rinder, Hirsche, Vögel, Delfine und Schafe. Überall Schafe!
Auf einem schönen, kleinen Campingplatz sahen wir am frühen Morgen Rinder im Nebel und machten ein Foto. Dieses Bild hat seither den Titel "Rindviehcher im Nebel".
Wir fuhren mit dem Auto durch den Eurotunnel Calais-Folkstone nach Großbritannien und fuhren die Westküste nach Norden und besuchten die Isle of Skye - eine wunderschöne Insel, die man in seinem Leben auf jeden Fall gesehen haben sollte. Dann ging es weiter Richtung Norden nach Durness, wo wir den Straßen nach Osten folgten, entlang an den Küsten und via Single-Track-Roads nach Lindisfarne.
An unserem letzten Tag besuchten wir Dover Castle - eine Antike Burganlage. Die Römer bauten vor über 2000 Jahren des ersten Leuchtturm, welcher heute noch besichtigt werden kann. Dover Castle wurde auch während beiden Weltkriegen genutzt.
Bester Urlaub aller Zeiten!
*Ja, ich könnte ein ganzes Buch über diese fantastische Reise schreiben... <br>
Aber hier geht's um eine Demo für das coole [__Bilberry Theme__](https://github.com/Lednerb/bilberry-hugo-theme) ;-)*

View File

@@ -0,0 +1,21 @@
---
title: "My Trip to Scotland"
date: 2017-11-01T18:01:26+01:00
categories: ['Travelling', 'Holidays']
tags: ['Scotland', 'Glennfinnan Viaduct', 'Eilean Donan Castle']
author: "Lednerb"
---
In June 2017 I've visited Scotland with my best friend for two weeks.
We drove a lot through the beautiful countryside and saw a lot of different animals: cattle, deer, birds, dolphins, and sheep. Sheep everywhere!
At one beautiful camping site, we saw cattle in fog in the very early morning and took a picture of it. The image now has the title "Rindviehcher im Nebel", a quite funny German phrase that means cattle in the fog.
We arrived by car via the Eurotunnel Calais-Folkstone and drove the west coast to the north, visited the Isle of Skye (everyone should've seen this place before death), headed over to the north to Durness and took the north and east coast roads to Lindisfarne.
On our last day, we visited Dover Castle - an ancient castle complex. The Romans built one of the first buildings, a lighthouse which still can be visited. Dover Castle was also used during both World Wars.
Best vacation ever!
*Yeah, I could write a whole book about this fantastic journey... <br>
But we're here for the cool [__Bilberry Theme__](https://github.com/Lednerb/bilberry-hugo-theme) ;-)*

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

View File

@@ -0,0 +1,11 @@
---
title: "Duckduckgo.com"
date: 2017-11-01T13:05:27+01:00
categories: ['Privacy']
tags: ['search engine']
# Set your external url
link: "https://duckduckgo.com"
---
A search engnine that respects your privacy.

View File

@@ -0,0 +1,23 @@
---
title: "Über Bilberry"
date: 2017-11-01T13:18:45+01:00
showDate: false
---
Bilberry ist ein Premium Theme für den [Hugo Static Website Builder](https://gohugo.io).
Das Theme beinhaltet viele Features wie bspw.:
- Integration für die [Algolia-Suche](https://algolia.com)
- Integration für [Disqus Kommentare](https://disqus.com)
- Gravatar-Integration oder eigenes Profilbild im Header
- Tastaturunterstützung für die Suche (`s` Taste drücken, etwas Schreiben, per `enter` bestätigen oder mit `esc` abbrechen)
- Responsive Design - optimiert für Desktop und mobile Geräte
- Volle Unterstützung für Übersetzungen (en, de, fr, ru, es bereits integriert!)
- Volle Unterstützung für mehrsprachige Seiten
- Verschiedene Post-Types (`article`, `audio`, `code`, `gallery`, `link`, `page`, `picture`, `quote`, `video`)
- Einfache Konfiguration und Erweiterung um persönliche Typen
*Dieses Theme ist eine Adaptopn des Lingonberry Themes von [Anders Norén](http://www.andersnoren.se/teman/lingonberry-wordpress-theme/)*
**[Weitere Informationen auf GitHub](https://github.com/Lednerb/bilberry-hugo-theme)**

View File

@@ -0,0 +1,24 @@
---
title: "About Bilberry"
date: 2017-11-01T13:18:45+01:00
excludeFromTopNav: false
showDate: false
---
Bilberry is a premium theme for the [Hugo Static Website Builder](https://gohugo.io).
It is full of little nice features, such as:
- built-in integration for the wonderful [algolia search](https://algolia.com)
- built-in integration for the powerful [disqus comments](https://disqus.com)
- gravatar and custom image integration for the header
- keyboard shortcut for the search (press the `s` key, type something and hit `enter` or `esc`)
- responsive design - optimized for desktop and mobile devices
- full internationalization (i18n) support (en, de, fr, ru, es out of the box!)
- full mutli-language support
- custom post types (`article`, `audio`, `code`, `gallery`, `link`, `page`, `picture`, `quote`, `video`)
- easy configuration to add more according to your needs
*This Bilberry theme is inspired by the Lingonberry theme from [Anders Norén](http://www.andersnoren.se/teman/lingonberry-wordpress-theme/)*
**[Further information at GitHub](https://github.com/Lednerb/bilberry-hugo-theme)**

View File

@@ -0,0 +1,9 @@
---
title: "Github"
date: 2017-11-01T13:17:56+01:00
# set the link if you want to redirect the user.
link: "https://github.com/Lednerb/bilberry-hugo-theme"
# set the html target parameter if you want to change default behavior
target: "_blank"
---

View File

@@ -0,0 +1,9 @@
---
title: "Github"
date: 2017-11-01T13:17:56+01:00
# set the link if you want to redirect the user.
link: "https://github.com/Lednerb/bilberry-hugo-theme"
# set the html target parameter if you want to change default behavior
target: "_blank"
---

View File

@@ -0,0 +1,9 @@
---
title: "Edward Snowden About Privacy"
date: 2017-11-01T13:01:14+01:00
author: "Edward Snowden"
categories: ['Privacy', 'Society']
tags: ['free speech']
---
Arguing that you don't care about the right to privacy because you have nothing to hide is no different than saying you don't care about free speech because you have nothing to say.

View File

@@ -0,0 +1,8 @@
---
title: "Albert Einstein - Sinn Des Lebens"
date: 2017-12-01T14:40:32+01:00
categories: ['Zitate']
author: "Albert Einstein"
---
Der Sinn des Lebens besteht nicht darin ein erfolgreicher Mensch zu sein, sondern ein wertvoller.

View File

@@ -0,0 +1,26 @@
---
title: "Kilez More - Leben und Tod des Imperialismus"
date: 2017-11-01T16:23:40+01:00
categories: ['Video', 'Musik', 'Politik']
tags: ['Kilez More']
# Set your video id for
youtube: "M7IjJiZUutk"
vimeo: "" # https://vimeo.com/239830182 -> "239830182"
---
Kilez More ist ein großartiger Österreichischer Musiker.
Die meisten seiner Songs haben einen politischen Hintergrund und geniale Texte!
<!--more-->
Der Song "Leben und Tod des Imperialismus" ist ein genialer 12-minütiger Song, welcher deutlich besser und nachdrücklicher ist, als es alle meine Unterrichtsstunden in Geschichte oder Politik in der Schule waren.
Folgt ihm auf seinem [Twitter Account](https://twitter.com/KilezMore) und [YouTube Channel](https://www.youtube.com/user/Morestradamuz)!
Mithilfe des `video` post types kannst du ganz einfach YouTube- oder Vimeo-Videos einbinden.
Alternativ kannst du auch ein `featuredImage` einbinden.
PS: Mit der `<!--more-->` Directive in deiner Markdown Datei kannst du den "Weiterlesen" Breakpoint manuell setzen.

View File

@@ -0,0 +1,25 @@
---
title: "Kilez More - Life And Death Of The Hegemony"
date: 2017-11-01T16:23:40+01:00
categories: ['Video', 'Music', 'Politics']
tags: ['Kilez More']
# Set your video id for
youtube: "Yk_BI3ne0Ic"
vimeo: "" # https://vimeo.com/239830182 -> "239830182"
---
Kilez More is a great Austrian musician.
Most of his songs have a political background and have amazing lyrics!
<!--more-->
The song "Leben und Tod des Imperialismus" [engl. Life And Death Of The Hegemony] is a genius 12-minute song that teaches you an excellent lesson in history.
Check out his [Twitter](https://twitter.com/KilezMore) account and [YouTube](https://www.youtube.com/user/Morestradamuz) channel!
With the `video` post type you can easily embed YouTube- or Vimeo-Videos. Alternatively, you can use an image for your post via the `featuredImage` option.
PS: with the `<!--more-->` directive in your markdown file you can set your "Continue reading" breakpoint manually.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

View File

@@ -0,0 +1,33 @@
[categories]
other = "Kategorieë"
[authors]
other = "Skrywers"
[tags]
other = "Tags"
[socialMedia]
other = "Sosiale media"
[latestPosts]
other = "Laaste plasings"
[search]
other = "Soek ..."
[noSearchResults]
other = "Niks gevind."
[olderPosts]
other = "Ouer poste"
[newerPosts]
other = "Nuwer plasings"
[continueReading]
other = "lees verder"
[otherLanguages]
other = "Ander tale"

View File

@@ -0,0 +1,33 @@
[categories]
other = "Kategorier"
[authors]
other = "Forfattere"
[tags]
other = "Tags"
[socialMedia]
other = "Sociale medier"
[latestPosts]
other = "Seneste indlæg"
[search]
other = "Søg ..."
[noSearchResults]
other = "Intet fundet."
[olderPosts]
other = "Ældre indlæg"
[newerPosts]
other = "Nyere indlæg"
[continueReading]
other = "Fortsæt med at læse"
[otherLanguages]
other = "Andre sprog"

View File

@@ -0,0 +1,37 @@
[categories]
other = "Kategorien"
[authors]
other = "Autoren"
[tags]
other = "Tags"
[socialMedia]
other = "Social media"
[latestPosts]
other = "Neuste Beiträge"
[search]
other = "Suchen ..."
[noSearchResults]
other = "Nichts gefunden."
[olderPosts]
other = "Ältere Beiträge"
[newerPosts]
other = "Neuere Beiträge"
[continueReading]
other = "Weiterlesen"
[otherLanguages]
other = "Andere Sprachen"
[readingTime]
one = "1 Min. lesen"
other = "{{.Count}} Min. lesen"

View File

@@ -0,0 +1,37 @@
[categories]
other = "Categories"
[authors]
other = "Authors"
[tags]
other = "Tags"
[socialMedia]
other = "Social media"
[latestPosts]
other = "Latest posts"
[search]
other = "Search ..."
[noSearchResults]
other = "Nothing found."
[olderPosts]
other = "Older posts"
[newerPosts]
other = "Newer posts"
[continueReading]
other = "Continue reading"
[otherLanguages]
other = "Other languages"
[readingTime]
one = "1 min read"
other = "{{.Count}} min read"

View File

@@ -0,0 +1,33 @@
[categories]
other = "Categorías"
[authors]
other = "Autores"
[tags]
other = "Etiquetas"
[socialMedia]
other = "Medios de comunicación social"
[latestPosts]
other = "Últimas publicaciones"
[search]
other = "Buscar ..."
[noSearchResults]
other = "Nada Encontrado."
[olderPosts]
other = "Publicaciones anteriores"
[newerPosts]
other = "las publicaciones más nuevas"
[continueReading]
other = "sigue leyendo"
[otherLanguages]
other = "Otros idiomas"

View File

@@ -0,0 +1,33 @@
[categories]
other = "Catégories"
[authors]
other = "Auteurs"
[tags]
other = "Mots clés"
[socialMedia]
other = "Des médias sociaux"
[latestPosts]
other = "Derniers articles"
[search]
other = "Chercher ..."
[noSearchResults]
other = "Rien n'a été trouvé."
[olderPosts]
other = "Articles plus anciens"
[newerPosts]
other = "messages plus récents"
[continueReading]
other = "continuer la lecture"
[otherLanguages]
other = "Autres langues"

View File

@@ -0,0 +1,37 @@
[categories]
other = "Kategóriák"
[authors]
other = "Szerzők"
[tags]
other = "Címkék"
[socialMedia]
other = "Közösségi média"
[latestPosts]
other = "Legfrissebb bejegyzések"
[search]
other = "Keresés ..."
[noSearchResults]
other = "Nincs találat."
[olderPosts]
other = "Korábbi bejegyzések"
[newerPosts]
other = "Újabb bejegyzések"
[continueReading]
other = "Tovább olvasom"
[otherLanguages]
other = "További nyelvek"
[readingTime]
one = "1 perc olvasási idő"
other = "{{.Count}} perc olvasási idő"

View File

@@ -0,0 +1,33 @@
[categories]
other = "カテゴリー"
[authors]
other = "著者"
[tags]
other = "タグ"
[socialMedia]
other = "ソーシャルメディア"
[latestPosts]
other = "最近の投稿"
[search]
other = "検索 ..."
[noSearchResults]
other = "検索結果がありません."
[olderPosts]
other = "過去の投稿"
[newerPosts]
other = "新しい投稿"
[continueReading]
other = "続きを読む"
[otherLanguages]
other = "他言語"

View File

@@ -0,0 +1,36 @@
[categories]
other = "카테고리"
[authors]
other = "글쓴이"
[tags]
other = "태그"
[socialMedia]
other = "소셜 미디어"
[latestPosts]
other = "최근 글"
[search]
other = "검색 ..."
[noSearchResults]
other = "검색 결과가 없습니다."
[olderPosts]
other = "이전 글"
[newerPosts]
other = "최근 글"
[continueReading]
other = "더보기"
[otherLanguages]
other = "다국어"
[readingTime]
other = "{{.Count}} 분"

View File

@@ -0,0 +1,30 @@
[categories]
other = "ໝວດໝູ່"
[authors]
other = "ຜູ້ຂຽນ"
[latestPosts]
other = "ບົດຄວາມລ່າສຸດ"
[search]
other = "ຄົ້ນຫາ..."
[noSearchResults]
other = "ບໍ່ພົບສິ່ງທີ່ຄົ້ນຫາ"
[olderPosts]
other = "ບົດຄວາມເກົ່າກວ່າ"
[newerPosts]
other = "ບົດຄວາມໃໝ່ຫວ່າ"
[continueReading]
other = "ອ່ານເພີ່ມ..."
[otherLanguages]
other = "ພາສາອື່ນ"
[readingTime]
other = "ເປີດອ່ານ 1 ນາທີ"

View File

@@ -0,0 +1,33 @@
[categories]
other = "Kategorie"
[authors]
other = "Autorski"
[tags]
other = "Tagi"
[socialMedia]
other = "Social media"
[latestPosts]
other = "Ostatnie posty"
[search]
other = "Szukaj ..."
[noSearchResults]
other = "Nic nie znaleziono."
[olderPosts]
other = "Starsze posty"
[newerPosts]
other = "Nowsze posty"
[continueReading]
other = "Kontynuuj czytanie"
[otherLanguages]
other = "Inne języki"

View File

@@ -0,0 +1,37 @@
[categories]
other = "Categorias"
[authors]
other = "Autores"
[tags]
other = "Tags"
[socialMedia]
other = "Redes sociais"
[latestPosts]
other = "Últimos posts"
[search]
other = "Pesquisar..."
[noSearchResults]
other = "Nenhum resultado"
[olderPosts]
other = "Posts mais antigos"
[newerPosts]
other = "Posts mais novos"
[continueReading]
other = "Continuar lendo"
[otherLanguages]
other = "Outros Idiomas"
[readingTime]
one = "1 min de leitura"
other = "{{ .Count }} mins. de leitura"

View File

@@ -0,0 +1,33 @@
[categories]
other = "Темы"
[authors]
other = "Авторы"
[tags]
other = "Теги"
[socialMedia]
other = "Социальные медиа"
[latestPosts]
other = "Последние записи"
[search]
other = "Поиск..."
[noSearchResults]
other = "Ничего не найдено."
[olderPosts]
other = "Старые записи"
[newerPosts]
other = "Новые записи"
[continueReading]
other = "Читать далее..."
[otherLanguages]
other = "Другие языки"

View File

@@ -0,0 +1,37 @@
[categories]
other = "Kategoriler"
[authors]
other = "Yazarlar"
[tags]
other = "Etiketler"
[socialMedia]
other = "Sosyal medya"
[latestPosts]
other = "Son gönderiler"
[search]
other = "Ara..."
[noSearchResults]
other = "Hiçbir şey bulunamadı."
[olderPosts]
other = "Eski gönderiler"
[newerPosts]
other = "Yeni gönderiler"
[continueReading]
other = "Okumaya devam et"
[otherLanguages]
other = "Diğer diller"
[readingTime]
one = "1 dak. okuma"
other = "{{.Count}} dak. okuma"

View File

@@ -0,0 +1,33 @@
[categories]
other = "Категорії"
[authors]
other = "Автори"
[tags]
other = "Теги"
[socialMedia]
other = "Соціальні мережі"
[latestPosts]
other = "Останні повідомлення"
[search]
other = "Пошук ..."
[noSearchResults]
other = "Нічого не знайдено."
[olderPosts]
other = "Старі повідомлення"
[newerPosts]
other = "Нові повідомлення"
[continueReading]
other = "Далі"
[otherLanguages]
other = "Інші мови"

View File

@@ -0,0 +1,33 @@
[categories]
other = "Danh mục"
[authors]
other = "Tác giả"
[tags]
other = "Thẻ"
[socialMedia]
other = "Mạng xã hội"
[latestPosts]
other = "Bài viết mới nhất"
[search]
other = "Tìm kiếm ..."
[noSearchResults]
other = "Không có kết quả nào được tìm thấy."
[olderPosts]
other = "Bài viết cũ hơn"
[newerPosts]
other = "Bài viết mới hơn"
[continueReading]
other = "Đọc tiếp"
[otherLanguages]
other = "Ngôn ngữ khác"

View File

@@ -0,0 +1,33 @@
[categories]
other = "分类"
[authors]
other = "作者"
[tags]
other = "标签"
[socialMedia]
other = "社交媒体"
[latestPosts]
other = "最新帖子"
[search]
other = "搜索"
[noSearchResults]
other = "什么都没找到"
[olderPosts]
other = "以前的帖子"
[newerPosts]
other = "较新的帖子"
[continueReading]
other = "继续阅读"
[otherLanguages]
other = "其他语言"

View File

@@ -0,0 +1,33 @@
[categories]
other = "分類"
[authors]
other = "作者"
[tags]
other = "標籤"
[socialMedia]
other = "社交媒體"
[latestPosts]
other = "最新帖子"
[search]
other = "搜索..."
[noSearchResults]
other = "什麼都沒找到。"
[olderPosts]
other = "以前的帖子"
[newerPosts]
other = "較新的帖子"
[continueReading]
other = "繼續閱讀"
[otherLanguages]
other = "其他語言"

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

View File

@@ -0,0 +1,20 @@
{{ define "main" }}
<div class="content">
<div class="article-wrapper u-cf single">
<a class="bubble" href="{{ "/" | relLangURL}}">
<i class="fa fa-fw fa-exclamation-triangle"></i>
</a>
<article class="error404 article">
<div class="content">
<h3>WOAH BUDDY!</h3>
<p></p>
<p>This is definitly not the page you're looking for...</p>
<p><strong>An Error 404 occured.</strong> That means the page is not available. </p>
<p>Please select a category at the bottom or change over to the <a href="{{ "/" | relLangURL}}"> HOMEPAGE</a>.</p>
</div>
</article>
</div>
</div>
{{ end }}

View File

@@ -0,0 +1,22 @@
{{ define "main" }}
<div class="content">
<div class="article-wrapper u-cf single">
<a class="bubble" href="{{ "/author/" | relLangURL}}">
<i class="fa fa-fw fa-users"></i>
</a>
<article class="article">
<div class="content">
<h3>{{ i18n "authors" }}</h3>
<hr>
<ul id="all-categories">
{{ range $name, $taxonomy := .Site.Taxonomies.author }}
<li><a href="{{ "/author/" | relLangURL }}{{ $name | urlize }}">{{ $name | humanize }} ({{ $taxonomy.Count }})</a></li>
{{ end }}
</ul>
</div>
</article>
</div>
</div>
{{ end }}

View File

@@ -0,0 +1,119 @@
{{- if not .Params.gallery -}}
{{- if not .Params.featuredImage -}}
{{ .Scratch.Set "image" (printf "https://www.gravatar.com/avatar/%s?size=200" (md5 .Site.Params.gravatarEMail)) }}
{{- else -}}
{{ .Scratch.Set "image" (.Params.featuredImage) }}
{{- end -}}
{{- else -}}
{{ .Scratch.Set "image" (index (.Params.gallery) 0 | relURL | absURL) }}
{{- end -}}
{{- if ne .Description "" -}}
{{ .Scratch.Set "description" (.Description) }}
{{- else -}}
{{- if eq .Title .Site.Title -}}
{{ .Scratch.Set "description" (.Site.Params.description) }}
{{- else -}}
{{ .Scratch.Set "description" (printf "%s - %s" (.Title) (.Site.Params.description)) }}
{{- end -}}
{{- end -}}
{{- if eq .Site.Title .Title -}}
{{ .Scratch.Set "title" (.Site.Params.subtitle) }}
{{- else -}}
{{ .Scratch.Set "title" (.Title) }}
{{- end -}}
<!doctype html>
<html class="no-js" lang="{{ .Site.Language.Lang }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="{{ .Site.Params.author }}">
<meta name="description" content="{{ .Site.Params.description }}">
<meta name="keywords" content="{{ .Site.Params.keywords }}">
{{ .Hugo.Generator }}
<title>{{ block "title" . }} {{ .Scratch.Get "title" }} | {{ .Site.Title }}{{ end }}</title>
<meta name="description" content="{{ .Scratch.Get "description" }}">
<meta itemprop="name" content="{{ .Scratch.Get "title" }}">
<meta itemprop="description" content="{{ .Scratch.Get "description" }}">
<meta property="og:title" content="{{ .Scratch.Get "title" }}">
<meta property="og:description" content="{{ .Scratch.Get "description" }}">
<meta property="og:image" content="{{ .Scratch.Get "image" }}">
<meta property="og:url" content="{{ .URL | absURL }}">
<meta property="og:site_name" content="{{ .Site.Title }}">
{{- if .IsPage }}
<meta property="og:type" content="article">
{{- else -}}
<meta property="og:type" content="website">
{{- end }}
<link rel="icon" type="image/png" href="{{ "favicon-32x32.png" | absURL }}" sizes="32x32">
<link rel="icon" type="image/png" href="{{ "favicon-16x16.png" | absURL }}" sizes="16x16">
{{ if .RSSLink }}
<link href="{{ .RSSLink }}" rel="alternate" type="application/rss+xml" title="{{ .Site.Title }}" />
<link href="{{ .RSSLink }}" rel="feed" type="application/rss+xml" title="{{ .Site.Title }}" />
{{ end }}
{{ $variables := resources.Get "sass/_variables.scss" }}
{{ $theme := resources.Get "sass/theme.scss" }}
{{ $combined := slice $variables $theme | resources.Concat "sass/combined.scss" | resources.ExecuteAsTemplate "sass/combined.scss" . }}
{{ $style := $combined | toCSS | minify | fingerprint }}
<link rel="stylesheet" href="{{ $style.Permalink }}">
{{ partial "twitter-card" . }}
{{ if isset .Site.Params "css_modules" }}
{{ range .Site.Params.css_modules }}
<link rel="stylesheet" href="{{ . | absURL }}">
{{ end }}
{{ end }}
</head>
<body class="bilberry-hugo-theme">
{{ partial "topnav" . }}
{{ partial "header" . }}
<div class="main container">
{{ block "main" . }}{{ end }}
</div>
{{ partial "footer" . }}
{{ template "_internal/google_analytics_async.html" . }}
{{ if and (isset .Site.Params "enable_mathjax") (eq .Site.Params.enable_mathjax true) }}
{{ partial "mathjax" . }}
{{ end }}
{{ $js := resources.Get "js/externalDependencies.js" }}
{{ $secureJS := $js | resources.Fingerprint "md5" }}
<script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
{{ $jsTemplate := resources.Get "js/theme.js" }}
{{ $secureJS := $jsTemplate | resources.ExecuteAsTemplate "js/theme.js" . | fingerprint "md5" }}
<script type="text/javascript" src="{{ $secureJS.Permalink }}" integrity="{{ $secureJS.Data.Integrity }}"></script>
<script>
$(".moment").each(function() {
$(this).text(
moment( $(this).text() )
.locale( {{ .Site.Language.Lang }} )
.format('LL')
);
});
$(".footnote-return sup").html({{ i18n "footnoteReturnText" }});
</script>
{{ if isset .Site.Params "js_modules" }}
{{ range .Site.Params.js_modules }}
<script src="{{ . | absURL }}" type="application/javascript"></script>
{{ end }}
{{ end }}
{{ if and (isset .Site.Params "algolia_search") (eq .Site.Params.algolia_search true) }}
{{ partial "algolia-search" . }}
{{ end }}
</body>
</html>

View File

@@ -0,0 +1,22 @@
{{ define "main" }}
<div class="content">
<div class="article-wrapper u-cf single">
<a class="bubble" href="{{ "/categories/" | relLangURL}}">
<i class="fa fa-fw fa-list"></i>
</a>
<article class="article">
<div class="content">
<h3>{{ i18n "categories" }}</h3>
<hr>
<ul id="all-categories">
{{ range $name, $taxonomy := .Site.Taxonomies.categories }}
<li><a href="{{ "/categories/" | relLangURL }}{{ $name | urlize }}">{{ $name | humanize }} ({{ $taxonomy.Count }})</a></li>
{{ end }}
</ul>
</div>
</article>
</div>
</div>
{{ end }}

View File

@@ -0,0 +1,14 @@
{{ define "main" }}
{{ $paginator := .Paginate (where .Data.Pages "Type" "ne" "page") (index .Site.Params "paginate" | default 7) }}
{{ range where .Paginator.Pages "Type" "ne" "page" }}
<div class="article-wrapper u-cf">
{{ if or (fileExists (print "layouts/partials/content-type/" .Type ".html") ) (fileExists (print "themes/bilberry-hugo-theme/layouts/partials/content-type/" .Type ".html")) }}
{{ partial (print "content-type/" .Type) . }}
{{ else }}
{{ partial "content-type/article" . }}
{{ end }}
</div>
{{ end }}
{{ partial "paginator" . }}
{{ end }}

View File

@@ -0,0 +1,16 @@
{{ define "main" }}
{{ .Scratch.Set "singlePage" true }} <!-- SET singlePage variable -->
<div class="article-wrapper u-cf single">
{{ if or (fileExists (print "layouts/partials/content-type/" .Type ".html") ) (fileExists (print "themes/bilberry-hugo-theme/layouts/partials/content-type/" .Type ".html")) }}
{{ partial (print "content-type/" .Type) . }}
{{ else }}
{{ partial "content-type/article" . }}
{{ end }}
</div>
{{ if ( .Params.showComments | default true ) }}
{{ template "_internal/disqus.html" . }}
{{ end }}
{{ .Scratch.Set "singlePage" false }} <!-- RESET singlePage variable -->
{{ end }}

View File

@@ -0,0 +1,22 @@
{{ define "main" }}
<div class="content">
<div class="article-wrapper u-cf single">
<a class="bubble" href="{{ "/tags/" | relLangURL}}">
<i class="fa fa-fw fa-tag"></i>
</a>
<article class="article">
<div class="content">
<h3>{{ i18n "tags" }}</h3>
<hr>
<ul id="all-categories">
{{ range $name, $taxonomy := .Site.Taxonomies.tags }}
<li><a href="{{ "/tags/" | relLangURL }}{{ $name | urlize }}">{{ $name | humanize }} ({{ $taxonomy.Count }})</a></li>
{{ end }}
</ul>
</div>
</article>
</div>
</div>
{{ end }}

View File

@@ -0,0 +1,20 @@
{{ define "main" }}
{{ $paginator := .Paginate (where .Site.RegularPages "Type" "ne" "page" | intersect (where .Site.RegularPages "Params.excludefromindex" "==" nil)) (index .Site.Params "paginate" | default 7) }}
{{ if .Site.Params.pinnedPost }}
{{ if (and .Site.Params.pinOnlyToFirstPage (ne $paginator.PageNumber 1)) }}
{{/* Do nothing if the pinOnlyToFirstPage flag is set and we're not on page 1. */}}
{{else}}
{{ range first 1 (where .Data.Pages "URL" .Site.Params.pinnedPost) }}
{{ partial "article-wrapper" . }}
{{end}}
{{end}}
{{end}}
{{ range $paginator.Pages }}
{{ partial "article-wrapper" . }}
{{ end }}
{{ partial "paginator" . }}
{{ end }}

View File

@@ -0,0 +1,36 @@
{{- $.Scratch.Add "index" slice -}}
{{- range $name, $taxonomy := .Site.Taxonomies.categories -}}
{{- $.Scratch.Add "index" (dict "url" (print "/categories/" $name | absURL) "title" ($name | humanize) "iconClass" "fa-folder" "type" "category" "objectID" (print "/categories/" $name | absURL) ) -}}
{{- end -}}
{{- range $name, $taxonomy := .Site.Taxonomies.author -}}
{{- $.Scratch.Add "index" (dict "url" (print "/author/" $name | absURL) "title" ($name | humanize) "iconClass" "fa-user" "type" "author" "objectID" (print "/author/" $name | absURL) ) -}}
{{- end -}}
{{- range $name, $taxonomy := .Site.Taxonomies.tags -}}
{{- $.Scratch.Add "index" (dict "url" (print "/tags/" $name | absURL) "title" ($name | humanize) "iconClass" "fa-tag" "type" "tag" "objectID" (print "/tags/" $name | absURL) ) -}}
{{- end -}}
{{- range where .Pages "Type" "not in" (slice "page" "json") -}}
{{- range .Translations -}}
{{- .Scratch.Set "iconClass" "fa-pencil" -}}
{{- if eq .Type "quote" -}}
{{- .Scratch.Set "iconClass" "fa-quote-right" -}}
{{- else if eq .Type "link" -}}
{{- .Scratch.Set "iconClass" "fa-link" -}}
{{- else if eq .Type "video" -}}
{{- .Scratch.Set "iconClass" "fa-video-camera" -}}
{{- else if or (eq .Type "gallery") (eq .Type "picture") -}}
{{- .Scratch.Set "iconClass" "fa-camera" -}}
{{- else if eq .Type "audio" -}}
{{- .Scratch.Set "iconClass" "fa-music" -}}
{{- end -}}
{{- $.Scratch.Add "index" (dict "url" .Permalink "title" .Title "tags" .Params.tags "categories" .Params.categories "author" .Params.author "type" .Type "language" .Lang "iconClass" (.Scratch.Get "iconClass") "objectID" (.Permalink | md5) ) -}}
{{- end -}}
{{- end -}}
{{- $.Scratch.Get "index" | jsonify -}}

View File

@@ -0,0 +1,12 @@
<html>
<head>
<meta http-equiv="refresh" content="0; url={{ .Params.link }}" />
<title>Redirecting...</title>
</head>
<body>
<p><a href="{{ .Params.link }}">Click here if you're not redirected.</a></p>
<script>
window.location = {{ .Params.link }}
</script>
</body>
</html>

View File

@@ -0,0 +1,42 @@
<script>
var client = algoliasearch({{ .Site.Params.algolia_appId }}, {{ .Site.Params.algolia_apiKey}});
var index = client.initIndex({{ .Site.Params.algolia_indexName }});
$('#search').autocomplete({ hint: false, autoselect: true, debug: false },
[
{
{{ if .Site.Params.algolia_currentLanguageOnly }}
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 5, filters: 'language: {{ .Lang }}' }),
{{ else }}
source: $.fn.autocomplete.sources.hits(index, { hitsPerPage: 10 }),
{{ end }}
displayKey: function(suggestion) {
return suggestion.title || suggestion.author
},
templates: {
suggestion: function(suggestion) {
return "<span class='entry " + suggestion.type + "'>"
+ "<span class='title'>" + suggestion.title + "</span>"
+ "<span class='fa fa-fw " + suggestion.iconClass + "'></span>"
+ "</span>"
;
},
empty: function() {
return "<span class='empty'>{{ i18n "noSearchResults" }}</span>"
},
footer: function() {
return '<div class="branding">Powered by <img src="{{ "dist/algolia-logo-light.svg" | absURL }}" /></div>'
}
},
}
])
.on('autocomplete:selected', function(event, suggestion, dataset) {
window.location = (suggestion.url);
})
.keypress(function (event, suggestion) {
if (event.which == 13) {
window.location = (suggestion.url);
}
});
</script>

View File

@@ -0,0 +1,28 @@
{{ with .Params.tags }}
<div class="footer">
{{ else }}
<div class="footer no-tags">
{{ end }}
{{ with .Params.tags }}
<div class="tags">
<i class="fa fa-tags"></i>
<div class="links">
{{ range . }}
<a href="{{ (print "/tags/" (. | urlize)) | relLangURL }}">{{ . }}</a>
{{ end }}
</div>
</div>
{{ end }}
{{ if .IsTranslated }}
<div class="languages">
<i class="fa fa-language"></i>
<div class="links">
{{ range .Translations }}
<a href="{{ .Permalink }}">{{ .Lang }}</a>
{{ end }}
</div>
</div>
{{ end }}
</div>

View File

@@ -0,0 +1,9 @@
{{ with . }}
<div class="article-wrapper u-cf">
{{ if or (fileExists (print "layouts/partials/content-type/" .Type ".html") ) (fileExists (print "themes/bilberry-hugo-theme/layouts/partials/content-type/" .Type ".html")) }}
{{ partial (print "content-type/" .Type) . }}
{{ else }}
{{ partial "content-type/article" . }}
{{ end }}
</div>
{{end}}

View File

@@ -0,0 +1,9 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw {{or .Params.icon "fa-pencil" }}"></i>
</a>
<article class="default article">
{{ partial "featured-image" . }}
{{ partial "default-content" . }}
{{ partial "article-footer" . }}
</article>

View File

@@ -0,0 +1,31 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw {{or .Params.icon "fa-music" }}"></i>
</a>
<article class="audio">
{{ partial "featured-image" . }}
{{ with .Params.spotify }}
<div class="responsive-audio spotify">
<iframe src="https://open.spotify.com/embed?uri={{ . }}" width="300" height="80" frameborder="0" allowtransparency="true"></iframe>
</div>
{{ end }}
{{ with .Params.soundcloud }}
<div class="responsive-audio soundcloud">
<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url={{ . }}&amp;color=%23ff5500&amp;auto_play=false&amp;hide_related=false&amp;show_comments=true&amp;show_user=true&amp;show_reposts=false&amp;show_teaser=true"></iframe>
</div>
{{ end }}
{{ with .Params.tunein }}
<div class="responsive-audio tunein">
<iframe src="https://tunein.com/embed/player/{{ . }}/" style="width:100%; height:100px;" scrolling="no" frameborder="no"></iframe>
</div>
{{ end }}
{{ with .Params.mixcloud }}
<div class="responsive-audio mixcloud">
<iframe width="100%" height="120" src="https://www.mixcloud.com/widget/iframe/?hide_cover=1&feed=/{{ . }}/" frameborder="0" ></iframe>
</div>
{{ end }}
{{ partial "default-content" . }}
{{ partial "article-footer" . }}
</article>

View File

@@ -0,0 +1,9 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw {{or .Params.icon "fa-code" }}"></i>
</a>
<article class="default article">
{{ partial "featured-image" . }}
{{ partial "default-content" . }}
{{ partial "article-footer" . }}
</article>

View File

@@ -0,0 +1,34 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw {{or .Params.icon "fa-camera" }}"></i>
</a>
<article class="gallery">
{{ if and (isset .Params "gallery") (ne .Params.gallery "") }}
<div class="flexslider">
<ul class="slides">
{{ range .Params.gallery }}
<li><img src="{{ . | relURL }}" /></li>
{{ end }}
</ul>
</div>
{{ else if ne .Params.imageSlider false }}
<div class="flexslider">
<ul class="slides">
{{ if and (.Site.Params.resizeImages | default true) (.Params.resizeImages | default true) }}
{{ range .Resources.ByType "image" }}
<li><img src="{{ (.Fill "700x350 q95").RelPermalink }}" /></li>
{{ end }}
{{ else }}
{{ range .Resources.ByType "image" }}
<li><img src="{{ .RelPermalink }}" /></li>
{{ end }}
{{ end }}
</ul>
</div>
{{ else}}
{{ partial "featured-image" . }}
{{ end }}
{{ partial "default-content" . }}
{{ partial "article-footer" . }}
</article>

View File

@@ -0,0 +1,13 @@
<a class="bubble" href="{{ .Params.link }}" target="_blank">
<i class="fa fa-fw {{or .Params.icon "fa-link" }}"></i>
</a>
<article class="link">
{{ with .Params.featuredImage }}
<img src="{{ . }}" class="featured-image" alt="">
{{ end }}
<a href="{{ .Params.link }}" target="_blank">
<h4>{{ .Title }}</h4>
{{ .Content }}
</a>
</article>

View File

@@ -0,0 +1,14 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw {{or .Params.icon "fa-file" }}"></i>
</a>
<article class="default article">
{{ partial "featured-image" . }}
{{ partial "default-content" . }}
{{ with .Params.link }}
<script>window.location = {{ . | relURL }}</script>
{{ end }}
{{ partial "article-footer" . }}
</article>

View File

@@ -0,0 +1,9 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw {{or .Params.icon "fa-camera" }}"></i>
</a>
<article class="picture">
{{ partial "featured-image" . }}
{{ partial "default-content" . }}
{{ partial "article-footer" . }}
</article>

View File

@@ -0,0 +1,13 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw {{or .Params.icon "fa-quote-right" }}"></i>
</a>
<article class="quote">
{{ with .Params.featuredImage }}
<img src="{{ . }}" class="featured-image" alt="">
{{ end }}
<blockquote>
{{ .Content }}
<cite><a href="{{ (print "/author/" .Params.author | urlize) | relLangURL }}">{{ .Params.author }}</a></cite>
</blockquote>
</article>

View File

@@ -0,0 +1,22 @@
<a class="bubble" href="{{ .URL }}">
<i class="fa fa-fw {{or .Params.icon "fa-video-camera" }}"></i>
</a>
<article class="video">
{{ partial "featured-image" . }}
{{ with .Params.youtube }}
<div class="responsive-video youtube">
<iframe src="https://www.youtube-nocookie.com/embed/{{ . }}?rel=0" frameborder="0" allowfullscreen></iframe>
</div>
{{ end }}
{{ with .Params.vimeo }}
<div class="responsive-video vimeo">
<iframe src="https://player.vimeo.com/video/{{ . }}" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
</div>
{{ end }}
{{ partial "default-content.html" . }}
{{ partial "article-footer" . }}
</article>

View File

@@ -0,0 +1,38 @@
<div class="content">
<h3><a href="{{ .URL }}">{{ .Title }}</a></h3>
<div class="meta">
{{ if ( .Params.showDate | default true ) }}
{{ if (.Site.Params.enableMomentJs | default true ) }}
<span class="date moment">{{ .PublishDate.Format "2006-01-02" }}</span>
{{ else }}
<span class="date">{{ .PublishDate.Format (.Site.Params.DateFormat | default "2006-01-02") }}</span>
{{ end }}
{{ end }}
{{ if (.Site.Params.showReadingTime | default false ) }}
<span class="readingTime">{{ i18n "readingTime" .ReadingTime }}</span>
{{ end }}
{{ with .Params.categories }}
<span class="categories">
{{ range . }}
<a href="{{ (print "/categories/" ( . | urlize)) | relLangURL }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
{{ with .Params.author }}
<span class="author"><a href="{{ (print "/author/" (. | urlize)) | relLangURL }}">{{ . }}</a></span>
{{ end }}
</div>
{{ if or (.Scratch.Get "singlePage") (.Params.noSummary) }}
{{ .Content }}
{{ else }}
{{ .Summary }}
{{ if .Truncated }}
<a href="{{ .URL }}" class="more">{{ i18n "continueReading" }}</a>
{{ end }}
{{ end }}
</div>

View File

@@ -0,0 +1,17 @@
{{ if .Resources.GetMatch "featuredImage.*" }}
<div class="featured-image">
<a href="{{ .URL }}">
{{ if and (.Site.Params.resizeImages | default true) (.Params.resizeImages | default true) }}
<img src="{{ ((.Resources.GetMatch "featuredImage.*").Fill "700x350 q95").RelPermalink }}" alt="">
{{ else }}
<img src="{{ (.Resources.GetMatch "featuredImage.*").RelPermalink }}" alt="">
{{ end }}
</a>
</div>
{{ else if and (isset .Params "featuredimage") (ne .Params.featuredImage "") }}
<div class="featured-image">
<a href="{{ .URL }}">
<img src="{{ .Params.featuredImage | relURL }}" alt="">
</a>
</div>
{{ end }}

View File

@@ -0,0 +1,111 @@
{{ if .Site.Params.showFooter | default true }}
<footer>
<div class="container">
{{ if gt (.Site.Params.amountLatestPostsInFooter | default 7) 0 }}
<div class="recent-posts">
<strong>{{ i18n "latestPosts" }}</strong>
<ul>
{{ range where (where (first (.Site.Params.amountLatestPostsInFooter | default 7) .Site.Pages.ByPublishDate.Reverse) ".Kind" "page") ".Type" "ne" "page" }}
<li>
<a href="{{ .URL }}">{{ .Title }}</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
{{ if and .Site.Taxonomies.categories (gt ( .Site.Params.amountCategoriesInFooter | default 7 ) 0 ) }}
<div class="categories">
<a href="{{ "/categories/" | relLangURL }}"><strong>{{ i18n "categories" }}</strong></a>
<ul>
{{ range $order, $taxonomy := (first ( .Site.Params.amountCategoriesInFooter | default 7 ) .Site.Taxonomies.categories.ByCount) }}
<li>
<a href="{{ (print "/categories/" ($taxonomy.Name | urlize)) | relLangURL }}">{{ $taxonomy.Name | humanize }} ({{ $taxonomy.Count }})</a>
</li>
{{ end }}
</ul>
</div>
{{ end }}
<div class="right">
{{ if .Site.Params.showSocialMedia | default true }}
<div class="external-profiles">
<strong>{{ i18n "socialMedia" }}</strong>
{{ with .Site.Params.facebook }}
<a href="{{ . }}" target="_blank"><i class="fa fa-facebook-adblock-proof"></i></a>
{{ end }}
{{ with .Site.Params.twitter }}
<a href="{{ . }}" target="_blank"><i class="fa fa-twitter-adblock-proof"></i></a>
{{ end }}
{{ with .Site.Params.googleplus }}
<a href="{{ . }}" target="_blank"><i class="fa fa-google-plus-official-adblock-proof"></i></a>
{{ end }}
{{ with .Site.Params.xing }}
<a href="{{ . }}" target="_blank"><i class="fa fa-xing"></i></a>
{{ end }}
{{ with .Site.Params.pinterest }}
<a href="{{ . }}" target="_blank"><i class="fa fa-pinterest"></i></a>
{{ end }}
{{ with .Site.Params.instagram }}
<a href="{{ . }}" target="_blank"><i class="fa fa-instagram"></i></a>
{{ end }}
{{ with .Site.Params.tumblr }}
<a href="{{ . }}" target="_blank"><i class="fa fa-tumblr"></i></a>
{{ end }}
{{ with .Site.Params.youtube }}
<a href="{{ . }}" target="_blank"><i class="fa fa-youtube-adblock-proof"></i></a>
{{ end }}
{{ with .Site.Params.vimeo }}
<a href="{{ . }}" target="_blank"><i class="fa fa-vimeo"></i></a>
{{ end }}
{{ with .Site.Params.github }}
<a href="{{ . }}" target="_blank"><i class="fa fa-github"></i></a>
{{ end }}
{{ with .Site.Params.linkedin }}
<a href="{{ . }}" target="_blank"><i class="fa fa-linkedin"></i></a>
{{ end }}
</div>
{{ end }}
{{ if and (.Site.Params.showFooterLanguageChooser | default true) (gt .Site.Languages 1) }}
{{- $.Scratch.Set "language" .Language -}}
<div class="languages">
<strong>{{ i18n "otherLanguages" }}</strong>
{{ range .Site.Languages }}
{{ if eq ($.Scratch.Get "language") . }}
<a href="{{ . | relURL }}" class="active">{{ . }}</a>
{{ else }}
<a href="{{ . | relURL }}">{{ . }}</a>
{{ end }}
{{ end }}
</div>
{{ end }}
</div>
</div>
</footer>
{{ end }}
<div class="credits">
<div class="container">
<div class="copyright">
<a href="{{ .Site.Params.copyrightUrl | default "https://github.com/Lednerb" }}" target="_blank">
&copy;
{{ if .Site.Params.copyrightUseCurrentYear }}
{{ now.Year }}
{{ else }}
{{ .Site.Params.copyrightYearOverride | default 2018 }}
{{ end }}
{{ .Site.Params.copyrightBy | default "by Lednerb" }}
</a>
{{ with .OutputFormats.Get "rss" -}}
-
<a href="{{ .Permalink }}">{{ .Name }}</a>
{{- end }}
</div>
<div class="author">
<a href="{{ .Site.Params.creditsUrl | default "https://github.com/Lednerb/bilberry-hugo-theme" }}" target="_blank">{{ .Site.Params.creditsText | default "Bilberry Hugo Theme" }}</a>
</div>
</div>
</div>

Some files were not shown because too many files have changed in this diff Show More