Prvi komit

master
Ahac Meden 2021-10-04 08:41:28 +02:00
commit 7461d92905
33 changed files with 1997 additions and 0 deletions

15
.gitignore vendored 100644
View File

@ -0,0 +1,15 @@
# Linux
*~
*.swp
# Windows
Thumbs.db
desktop.ini
# Mac OS X
.DS_Store
._*
# Composer
/composer.phar
/vendor

22
.htaccess 100644
View File

@ -0,0 +1,22 @@
<IfModule mod_rewrite.c>
RewriteEngine On
# May be required to access sub directories
#RewriteBase /
# Deny access to internal dirs and files by passing the URL to Pico
RewriteRule ^(config|content|vendor|CHANGELOG\.md|composer\.(json|lock|phar))(/|$) index.php [L]
RewriteRule (^\.|/\.)(?!well-known(/|$)) index.php [L]
# Enable URL rewriting
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]
<IfModule mod_env.c>
# Let Pico know about available URL rewriting
SetEnv PICO_URL_REWRITING 1
</IfModule>
</IfModule>
# Prevent file browsing
Options -Indexes -MultiViews

21
LICENSE 100644
View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) 2012 The Pico Community
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.

11
README.md 100644
View File

@ -0,0 +1,11 @@
# pifood.club
Pico CMS [sajt](https://pifood.kompot.si) z recepti iz [pif campa](https://pif.camp).
## Pico urejanje
[Osnove urejanja](https://picocms.org/docs/#creating-content)
## Markdown
[Basic Syntax](https://www.markdownguide.org/basic-syntax/) | [Extended Syntax](https://www.markdownguide.org/extended-syntax/) | [Hitra referenca - "plonklistek"](https://www.markdownguide.org/cheat-sheet/)

1
assets/.gitignore vendored 100644
View File

@ -0,0 +1 @@
# This file is meant to be empty

Binary file not shown.

After

Width:  |  Height:  |  Size: 428 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

36
composer.json 100644
View File

@ -0,0 +1,36 @@
{
"name": "picocms/pico-composer",
"type": "project",
"description": "Pico is a flat file CMS, this means there is no administration backend and database to deal with. You simply create .md files in the \"content\" folder and that becomes a page.",
"keywords": [ "pico", "picocms", "pico-cms", "simple", "flat-file", "cms", "content-management", "website", "markdown-to-html", "php", "markdown", "yaml", "twig", "composer-project" ],
"homepage": "http://picocms.org/",
"license": "MIT",
"authors": [
{
"name": "Daniel Rudolf",
"email": "picocms.org@daniel-rudolf.de",
"role": "Lead Developer"
},
{
"name": "The Pico Community",
"homepage": "http://picocms.org/"
},
{
"name": "Contributors",
"homepage": "https://github.com/picocms/pico-composer/graphs/contributors"
}
],
"support": {
"docs": "http://picocms.org/docs",
"issues": "https://github.com/picocms/Pico/issues",
"source": "https://github.com/picocms/Pico"
},
"require": {
"picocms/pico": "^2.1",
"picocms/pico-theme": "^2.1",
"picocms/pico-deprecated": "^2.1",
"picocms/composer-installer": "^1.0"
},
"minimum-stability": "beta",
"prefer-stable": true
}

617
composer.lock generated 100644
View File

@ -0,0 +1,617 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "c572de982113b017edeaa4b6ec598816",
"packages": [
{
"name": "erusev/parsedown",
"version": "1.8.0-beta-7",
"source": {
"type": "git",
"url": "https://github.com/erusev/parsedown.git",
"reference": "fe7a50eceb4a3c867cc9fa9c0aa906b1067d1955"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/erusev/parsedown/zipball/fe7a50eceb4a3c867cc9fa9c0aa906b1067d1955",
"reference": "fe7a50eceb4a3c867cc9fa9c0aa906b1067d1955",
"shasum": ""
},
"require": {
"ext-mbstring": "*",
"php": ">=5.3.0"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35"
},
"type": "library",
"autoload": {
"psr-0": {
"Parsedown": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Emanuil Rusev",
"email": "hello@erusev.com",
"homepage": "http://erusev.com"
}
],
"description": "Parser for Markdown.",
"homepage": "http://parsedown.org",
"keywords": [
"markdown",
"parser"
],
"support": {
"issues": "https://github.com/erusev/parsedown/issues",
"source": "https://github.com/erusev/parsedown/tree/1.8.0-beta-7"
},
"time": "2019-03-17T18:47:21+00:00"
},
{
"name": "erusev/parsedown-extra",
"version": "0.8.0-beta-1",
"source": {
"type": "git",
"url": "https://github.com/erusev/parsedown-extra.git",
"reference": "e756b1bf8642ab1091403e902b0503f1cec7527d"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/erusev/parsedown-extra/zipball/e756b1bf8642ab1091403e902b0503f1cec7527d",
"reference": "e756b1bf8642ab1091403e902b0503f1cec7527d",
"shasum": ""
},
"require": {
"erusev/parsedown": "^1.8.0|^1.8.0-beta-4",
"ext-dom": "*",
"ext-mbstring": "*",
"php": ">=5.3.6"
},
"require-dev": {
"phpunit/phpunit": "^4.8.35"
},
"type": "library",
"autoload": {
"psr-0": {
"ParsedownExtra": ""
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Emanuil Rusev",
"email": "hello@erusev.com",
"homepage": "http://erusev.com"
}
],
"description": "An extension of Parsedown that adds support for Markdown Extra.",
"homepage": "https://github.com/erusev/parsedown-extra",
"keywords": [
"markdown",
"markdown extra",
"parsedown",
"parser"
],
"support": {
"issues": "https://github.com/erusev/parsedown-extra/issues",
"source": "https://github.com/erusev/parsedown-extra/tree/master"
},
"time": "2018-05-08T21:54:32+00:00"
},
{
"name": "picocms/composer-installer",
"version": "v1.0.1",
"source": {
"type": "git",
"url": "https://github.com/picocms/composer-installer.git",
"reference": "6b5036c83aa091ed76e2a76ed9335885f95a7db7"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/picocms/composer-installer/zipball/6b5036c83aa091ed76e2a76ed9335885f95a7db7",
"reference": "6b5036c83aa091ed76e2a76ed9335885f95a7db7",
"shasum": ""
},
"type": "composer-installer",
"extra": {
"class": "Pico\\Composer\\Installer\\PluginInstaller"
},
"autoload": {
"psr-4": {
"Pico\\Composer\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Daniel Rudolf",
"email": "picocms.org@daniel-rudolf.de",
"role": "Lead Developer"
},
{
"name": "The Pico Community",
"homepage": "http://picocms.org/"
},
{
"name": "Contributors",
"homepage": "https://github.com/picocms/composer-installer/graphs/contributors"
}
],
"description": "A composer plugin responsible for installing plugins and themes for Pico, a stupidly simple, blazing fast, flat file CMS.",
"homepage": "http://picocms.org/",
"keywords": [
"composer",
"composer-installer",
"composer-plugin",
"pico",
"pico-cms",
"picocms",
"picocms-installer",
"picocms-plugin",
"picocms-theme"
],
"support": {
"issues": "https://github.com/picocms/composer-installer/issues",
"source": "https://github.com/picocms/composer-installer"
},
"time": "2019-11-24T22:50:47+00:00"
},
{
"name": "picocms/pico",
"version": "v2.1.4",
"source": {
"type": "git",
"url": "https://github.com/picocms/Pico.git",
"reference": "7228129cade3f812f22904b503c939b04a75c9dd"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/picocms/Pico/zipball/7228129cade3f812f22904b503c939b04a75c9dd",
"reference": "7228129cade3f812f22904b503c939b04a75c9dd",
"shasum": ""
},
"require": {
"erusev/parsedown": "1.8.0-beta-7",
"erusev/parsedown-extra": "0.8.0-beta-1",
"ext-mbstring": "*",
"php": ">=5.3.6",
"symfony/yaml": "^2.8",
"twig/twig": "^1.36"
},
"suggest": {
"picocms/composer-installer": "This Composer plugin is responsible for installing Pico plugins and themes using the Composer package manager.",
"picocms/pico-deprecated": "PicoDeprecated's purpose is to maintain backward compatibility to older versions of Pico.",
"picocms/pico-theme": "Pico requires a theme to actually display the contents of your website. This is Pico's official default theme."
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.1.x-dev",
"dev-pico-3.0": "3.0.x-dev"
}
},
"autoload": {
"psr-0": {
"Pico": "lib/",
"PicoPluginInterface": "lib/",
"AbstractPicoPlugin": "lib/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Gilbert Pellegrom",
"email": "gilbert@pellegrom.me",
"role": "Project Founder"
},
{
"name": "Daniel Rudolf",
"email": "picocms.org@daniel-rudolf.de",
"role": "Lead Developer"
},
{
"name": "The Pico Community",
"homepage": "http://picocms.org/"
},
{
"name": "Contributors",
"homepage": "https://github.com/picocms/Pico/graphs/contributors"
}
],
"description": "Pico is a flat file CMS, this means there is no administration backend and database to deal with. You simply create .md files in the \"content\" folder and that becomes a page.",
"homepage": "http://picocms.org/",
"keywords": [
"Simple",
"cms",
"content-management",
"flat-file",
"markdown",
"markdown-to-html",
"php",
"pico",
"pico-cms",
"picocms",
"twig",
"website",
"yaml"
],
"support": {
"docs": "http://picocms.org/docs",
"issues": "https://github.com/picocms/Pico/issues",
"source": "https://github.com/picocms/Pico"
},
"funding": [
{
"url": "https://www.bountysource.com/teams/picocms",
"type": "custom"
}
],
"time": "2020-08-29T14:15:52+00:00"
},
{
"name": "picocms/pico-deprecated",
"version": "v2.1.4",
"source": {
"type": "git",
"url": "https://github.com/picocms/pico-deprecated.git",
"reference": "8d1a4056ecc71cc2857e91d50bcb38db91d424e0"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/picocms/pico-deprecated/zipball/8d1a4056ecc71cc2857e91d50bcb38db91d424e0",
"reference": "8d1a4056ecc71cc2857e91d50bcb38db91d424e0",
"shasum": ""
},
"require": {
"php": ">=5.3.0",
"picocms/pico": "self.version"
},
"type": "pico-plugin",
"extra": {
"branch-alias": {
"dev-master": "2.1.x-dev",
"dev-pico-3.0": "3.0.x-dev"
}
},
"autoload": {
"classmap": [
"PicoDeprecated.php",
"lib/",
"plugins/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Daniel Rudolf",
"email": "picocms.org@daniel-rudolf.de",
"role": "Lead Developer"
},
{
"name": "The Pico Community",
"homepage": "http://picocms.org/"
},
{
"name": "Contributors",
"homepage": "https://github.com/picocms/pico-deprecated/graphs/contributors"
}
],
"description": "This is Pico's official PicoDeprecated plugin. Pico is a stupidly simple, blazing fast, flat file CMS.",
"homepage": "http://picocms.org/",
"keywords": [
"compatibility",
"deprecation",
"pico",
"pico-deprecated",
"picocms",
"picocms-plugin"
],
"support": {
"docs": "http://picocms.org/plugins/deprecated/",
"issues": "https://github.com/picocms/pico-deprecated/issues",
"source": "https://github.com/picocms/pico-deprecated"
},
"time": "2020-08-29T15:11:07+00:00"
},
{
"name": "picocms/pico-theme",
"version": "v2.1.4",
"source": {
"type": "git",
"url": "https://github.com/picocms/pico-theme.git",
"reference": "d4ec8df28356f1e034a97d37327b9aecb3129eed"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/picocms/pico-theme/zipball/d4ec8df28356f1e034a97d37327b9aecb3129eed",
"reference": "d4ec8df28356f1e034a97d37327b9aecb3129eed",
"shasum": ""
},
"require": {
"picocms/pico": "self.version"
},
"type": "pico-theme",
"extra": {
"installer-name": "default",
"branch-alias": {
"dev-master": "2.1.x-dev",
"dev-pico-3.0": "3.0.x-dev"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Daniel Rudolf",
"email": "picocms.org@daniel-rudolf.de",
"role": "Lead Developer"
},
{
"name": "The Pico Community",
"homepage": "http://picocms.org/"
},
{
"name": "Contributors",
"homepage": "https://github.com/picocms/pico-theme/graphs/contributors"
}
],
"description": "This is Pico's official default theme. Pico is a stupidly simple, blazing fast, flat file CMS.",
"homepage": "http://picocms.org/",
"keywords": [
"default-theme",
"pico",
"pico-theme",
"picocms",
"picocms-theme"
],
"support": {
"docs": "http://picocms.org/themes/default/",
"issues": "https://github.com/picocms/pico-theme/issues",
"source": "https://github.com/picocms/pico-theme"
},
"time": "2020-08-29T15:11:43+00:00"
},
{
"name": "symfony/polyfill-ctype",
"version": "v1.23.0",
"source": {
"type": "git",
"url": "https://github.com/symfony/polyfill-ctype.git",
"reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce",
"reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce",
"shasum": ""
},
"require": {
"php": ">=7.1"
},
"suggest": {
"ext-ctype": "For best performance"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-main": "1.23-dev"
},
"thanks": {
"name": "symfony/polyfill",
"url": "https://github.com/symfony/polyfill"
}
},
"autoload": {
"psr-4": {
"Symfony\\Polyfill\\Ctype\\": ""
},
"files": [
"bootstrap.php"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Gert de Pagter",
"email": "BackEndTea@gmail.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony polyfill for ctype functions",
"homepage": "https://symfony.com",
"keywords": [
"compatibility",
"ctype",
"polyfill",
"portable"
],
"support": {
"source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0"
},
"funding": [
{
"url": "https://symfony.com/sponsor",
"type": "custom"
},
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/symfony/symfony",
"type": "tidelift"
}
],
"time": "2021-02-19T12:13:01+00:00"
},
{
"name": "symfony/yaml",
"version": "v2.8.52",
"source": {
"type": "git",
"url": "https://github.com/symfony/yaml.git",
"reference": "02c1859112aa779d9ab394ae4f3381911d84052b"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/symfony/yaml/zipball/02c1859112aa779d9ab394ae4f3381911d84052b",
"reference": "02c1859112aa779d9ab394ae4f3381911d84052b",
"shasum": ""
},
"require": {
"php": ">=5.3.9",
"symfony/polyfill-ctype": "~1.8"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "2.8-dev"
}
},
"autoload": {
"psr-4": {
"Symfony\\Component\\Yaml\\": ""
},
"exclude-from-classmap": [
"/Tests/"
]
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com"
},
{
"name": "Symfony Community",
"homepage": "https://symfony.com/contributors"
}
],
"description": "Symfony Yaml Component",
"homepage": "https://symfony.com",
"support": {
"source": "https://github.com/symfony/yaml/tree/v2.8.52"
},
"time": "2018-11-11T11:18:13+00:00"
},
{
"name": "twig/twig",
"version": "v1.44.5",
"source": {
"type": "git",
"url": "https://github.com/twigphp/Twig.git",
"reference": "dd4353357c5a116322e92a00d16043a31881a81e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/twigphp/Twig/zipball/dd4353357c5a116322e92a00d16043a31881a81e",
"reference": "dd4353357c5a116322e92a00d16043a31881a81e",
"shasum": ""
},
"require": {
"php": ">=7.2.5",
"symfony/polyfill-ctype": "^1.8"
},
"require-dev": {
"psr/container": "^1.0",
"symfony/phpunit-bridge": "^4.4.9|^5.0.9"
},
"type": "library",
"extra": {
"branch-alias": {
"dev-master": "1.44-dev"
}
},
"autoload": {
"psr-0": {
"Twig_": "lib/"
},
"psr-4": {
"Twig\\": "src/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Fabien Potencier",
"email": "fabien@symfony.com",
"homepage": "http://fabien.potencier.org",
"role": "Lead Developer"
},
{
"name": "Twig Team",
"role": "Contributors"
},
{
"name": "Armin Ronacher",
"email": "armin.ronacher@active-4.com",
"role": "Project Founder"
}
],
"description": "Twig, the flexible, fast, and secure template language for PHP",
"homepage": "https://twig.symfony.com",
"keywords": [
"templating"
],
"support": {
"issues": "https://github.com/twigphp/Twig/issues",
"source": "https://github.com/twigphp/Twig/tree/v1.44.5"
},
"funding": [
{
"url": "https://github.com/fabpot",
"type": "github"
},
{
"url": "https://tidelift.com/funding/github/packagist/twig/twig",
"type": "tidelift"
}
],
"time": "2021-09-17T08:35:19+00:00"
}
],
"packages-dev": [],
"aliases": [],
"minimum-stability": "beta",
"stability-flags": [],
"prefer-stable": true,
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.1.0"
}

1
config/.gitignore vendored 100644
View File

@ -0,0 +1 @@
# This file is meant to be empty

View File

@ -0,0 +1,89 @@
# NotePaper v1.5.5
# http://notepaper.mayamcdougall.com/
# http://github.com/mayamcdougall/NotePaper
NotePaper:
#Basic Config
site_logo: '' # Site logo, reletive to base_url. (Example: 'assets/site_logo.png').
og_image: '' # Facebook "Open Graph" Image. Specify an image to be used when sharing a link on Facebook. Provides a nice workaround for light logos not displaying on Facebook. (Example: 'assets/site_logo_og.png').
copyright: '' # Copyright or other text for page footer. (Example: 'Copyright © 20XX - Your Name').
description_length: '500' # Character length of automatic descriptions for files lacking a meta description (used in search and tag views).
#CSS Config
css:
theme: '' # NotePaper theme folder to use. (Example: 'SideBar').
override: '' # Override theme styles with custom stylesheet, relative to base_url. (Example: 'assets/override.css').
fonts: # Add custom fonts using URLs to stylesheets or Google Fonts.
#- 'https://fonts.googleapis.com/css?family=Roboto'
#- 'https://fonts.googleapis.com/css?family=Ubuntu'
mirrorwidgets: false # Flips widgets to the left side of the page.
animations: false # Enables animations.
#Table of Contents
toc:
text: 'Table of Contents' # Text for the "Table of Contents" header.
folder: false # Enables Experimental Folder Navigation.
#Tag List and Tag Cloud
tags:
sort:
method: 'alphabetical' # Sorts tags by name or occurrence. Use 'alphabetical', 'numerical', or leave blank. Blank doesn't sort, causing tags to be in the order they first appear as Pico reads your files.
reverse: false # Reverse sorting order.
list: # Options for Tag List Widget.
enabled: false # Enables Tag List.
title: 'Tags' # Header Text for widget.
total: false # If enabled, tags will display their total number of occurrences in parentheses.
cloud:
enabled: false # Enables Tag Cloud Widget.
title: 'Tag Cloud' # Header Text for widget.
total: false # If enabled, tags will display their total number of occurrences in parentheses.
levels: 5 # Number of different text sizes to use for tags. (Starts at 2em and goes down by increments).
#Front Page Mode
front_page:
enabled: false # If enabled, your index.md will be ignored for a blog-style front page.
limit: 5 # Limit the number of items in Front Page Mode. Defaults to 5 if undefined.
#Comments
comments:
type: '' # Type of comments to use, 'disqus' or 'facebook'. Leave blank to disable comments.
front: false # If enabled, comments will display on your front page as well.
#Disqus Options
shortname: '' # The unique identifier given to you by Disqus.
#Facebook Options
limit: 5 # Number of comments to display by default.
admin_type: '' # Type of administration, 'user' (ID) or 'app' (ID).
admin_id: '' # List of usernames, on their own lines (indented with a "-"), or a single App ID allowed to moderate comments.
dark: false # Switchs Facebook comments to a Dark Color Scheme.
order: '' # Comment order, "social", "time" (oldest at the top), or "reverse_time" (newest at the top). Defaults to Social aka top comments.
#Bottom Links
bottom_links:
enabled: true # Adds links to page bottoms: First, Prev, Back to Top, Next, Last. Use 'blog' to only display on pages with meta.blog set. Always enabled on Front Page Mode (unless explicitly disabled), Search, and Tags.
first:
text: '<< First' # Text for "First" button at the bottom of the page. Blank to disable any given button.
image: 'default' # Image for "First" button, relative to base_url. If defined, the "text" variables will instead be used as Alt and Title attributes. Use "default" for internal theme images.
prev:
text: '< Prev' # Text for "Prev" button.
image: 'default' # Image for "Prev" button.
next:
text: 'Next >' # Text for "Next" button.
image: 'default' # Image for "Next" button.
last:
text: 'Last >>' # Text for "Last" button.
image: 'default' # Image for "Last" button.
top:
text: 'Back to Top' # Text for the "Back to Top" button.
image: 'default' # Image for the "Back to Top" button.
separator:
text: '|' # Character to use as a separator between buttons.
image: 'default' # Image to use as a separator between buttons.
#Disable Elements
disable:
header: false # If enabled, page header (Title, Author, and Date) will be disabled.
date: false # If enabled, the date ribbon will be disabled.
toc: false # If enabled, Table of Contents (Navigation) widget will be disabled.
front_page_buttons: false # If enabled, bottom_links buttons will be disabled on the Front Page.

60
config/config.yml 100644
View File

@ -0,0 +1,60 @@
##
# Basic
#
site_title: pifood # The title of your website
base_url: ~ # Pico will try to guess its base URL, if this fails, override it here;
# Example: https://example.com/pico/
rewrite_url: ~ # A boolean (true or false) indicating whether URL rewriting is forced
debug: ~ # Set this to true to enable Pico's debug mode
timezone: ~ # Your PHP installation might require you to manually specify a timezone
locale: ~ # Your PHP installation might require you to manually specify a locale to use
##
# Theme
#
theme: NotePaper # The name of your custom theme
themes_url: ~ # Pico will try to guess the URL to the themes dir of your installation;
# If this fails, override it here. Example: https://example.com/pico/themes/
theme_config: # Additional theme-specific config
widescreen: false # Default theme: Use more horizontal space (i.e. make the site container wider)
twig_config: # Twig template engine config
autoescape: html # Let Twig escape variables by default
strict_variables: false # If set to true, Twig will bail out when unset variables are being used
charset: utf-8 # The charset used by Twig templates
debug: ~ # Enable Twig's debug mode
cache: false # Enable Twig template caching by specifying a path to a writable directory
auto_reload: ~ # Recompile Twig templates whenever the source code changes
##
# Content
#
date_format: %d. %m. %Y # Pico's default date format;
# See https://php.net/manual/en/function.strftime.php for more info
pages_order_by_meta: author # Sort pages by meta value "author" (set "pages_order_by" to "meta")
pages_order_by: alpha # Change how Pico sorts pages ("alpha" for alphabetical order, "date", or "meta")
pages_order: asc # Sort pages in ascending ("asc") or descending ("desc") order
content_dir: ~ # The path to Pico's content directory
content_ext: .md # The file extension of your Markdown files
content_config: # Parsedown Markdown parser config
extra: true # Use the Parsedown Extra parser to support extended markup;
# See https://michelf.ca/projects/php-markdown/extra/ for more info
breaks: false # A boolean indicating whether breaks in the markup should be reflected in the
# parsed contents of the page
escape: false # Escape HTML markup in your content files; don't confuse this with some sort of
# safe mode, enabling this doesn't allow you to process untrusted user input!
auto_urls: true # Automatically link URLs found in your markup
assets_dir: assets/ # The path to Pico's assets directory
assets_url: ~ # Pico will try to guess the URL to the assets dir of your installation;
# If this fails, override it here. Example: https://example.com/pico/assets/
##
# Plugins
#
plugins_url: ~ # Pico will try to guess the URL to the plugins dir of your installation;
# If this fails, override it here. Example: https://example.com/pico/plugins/
DummyPlugin.enabled: false # Force the plugin "DummyPlugin" to be disabled
##
# Custom
#
my_custom_setting: Hello World! # You can access custom settings in themes using {{ config.my_custom_setting }}

1
content/.gitignore vendored 100644
View File

@ -0,0 +1 @@
# This file is meant to be empty

View File

@ -0,0 +1,17 @@
---
Title: Fermentirano
Description: Primeri vsebine
Author: Jurij P
Date: 2021-10-04
Robots: noindex,nofollow
Template: index
---
# Primer slike
Tukaj:
![Še ena slika](%assets_url%/078_KAT9213_hr.jpg)
Slike se pa nahajajo v podfolderju `assets`, na istem nivoju kot `content`

7
content/index.md 100644
View File

@ -0,0 +1,7 @@
# pifood.club
![Pojedina](%assets_url%/077_KAT9211_hr.jpg)
Pozdravljeni na strani [PIF camp](https://pif.camp) receptov.
Nekaj kategorij: [Primer kategorije](/primer_ena) | [Fermentirano](/fermentirano)

View File

@ -0,0 +1,3 @@
# Druga stran
Lokacija fajla v folder strukturi se sklada z URL naslovom

View File

@ -0,0 +1,18 @@
---
Title: Navodila za urejanje, prvič
Description: Primeri vsebine
Author: Jurij P
Date: 2021-10-04
Robots: noindex,nofollow
Template: index
---
# Prva stran
Je vedno tista v folderju, ki se imenuje index.md.
Tako linkaš na [drugo stran](primer_ena/druga_stran) v tej kategoriji oz. tem folderju :)
Vsak fajl ima v začetku (opcionalne) metapodatke.
Če ni metapodatkov, se strani ne vidijo v meniju

33
index.php 100644
View File

@ -0,0 +1,33 @@
<?php // @codingStandardsIgnoreFile
/**
* This file is part of Pico. It's copyrighted by the contributors recorded
* in the version control history of the file, available from the following
* original location:
*
* <https://github.com/picocms/pico-composer/blob/master/index.php>
*
* SPDX-License-Identifier: MIT
* License-Filename: LICENSE
*/
// load dependencies
// pico-composer MUST be installed as root package
if (is_file(__DIR__ . '/vendor/autoload.php')) {
require_once(__DIR__ . '/vendor/autoload.php');
} else {
die("Cannot find 'vendor/autoload.php'. Run `composer install`.");
}
// instance Pico
$pico = new Pico(
__DIR__, // root dir
'config/', // config dir
'plugins/', // plugins dir
'themes/' // themes dir
);
// override configuration?
//$pico->setConfig(array());
// run application
echo $pico->run();

2
plugins/.gitignore vendored 100644
View File

@ -0,0 +1,2 @@
# You should add plugins installed by Composer here
/PicoDeprecated

View File

@ -0,0 +1,26 @@
<?php
/**
* TwigGetUrl - A small plugin to forward Query String data to Twig.
*
* NotePaper v1.5.5
* http://notepaper.mayamcdougall.me
* http://github.com/mayamcdougall/NotePaper
*
* @author Maya McDougall
* @link http://notepaper.mayamcdougall.me
* @license https://opensource.org/licenses/GPL-3.0
* @version 1.0
*/
final class TwigGetUrl extends AbstractPicoPlugin
{
protected $enabled = true;
protected $dependsOn = array();
public function onPageRendering(Twig_Environment &$twig, array &$twigVariables, &$templateName)
{
$twigVariables['TwigGetUrl'] = $_GET;
$twigVariables['TwigGetUrlEnabled'] = true;
}
}

2
themes/.gitignore vendored 100644
View File

@ -0,0 +1,2 @@
# You should add themes installed by Composer here
/default

View File

@ -0,0 +1,66 @@
@keyframes main {
from {
transform: translateY(50px);
opacity: 0;
}
to {
opacity: 1;
transform: translateY(0px);
}
}
@keyframes sticky {
0% {
transform: translateX(-50px);
opacity: 0;
}
100% {
opacity: 1;
transform: translateX(0px) rotate(-1deg);
}
}
@keyframes sticky-odd {
0% {
transform: translateX(50px);
opacity: 0;
}
100% {
opacity: 1;
transform: translateX(0px) rotate(1deg);
}
}
@keyframes date {
0% {
transform: translateX(-50px);
opacity: 0;
}
100% {
opacity: 1;
transform: translateX(0px);
}
}
main, .comments {
animation: main 0.5s ease 0s 1;
}
nav {
animation: sticky 1s ease 0s 1;
}
nav.odd {
animation: sticky-odd 1s ease 0s 1;
}
nav.doodle{
animation: none;
}
.date {
animation: date 1s ease 0s 1;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 609 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 399 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 366 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

View File

@ -0,0 +1,596 @@
{#
NotePaper v1.5.5
http://notepaper.mayamcdougall.me
https://github.com/mayamcdougall/NotePaper
#}
<!DOCTYPE html>
<html lang="en">
<head>
{# Metadata #}
<meta charset="utf-8">
<title>{% if meta.title and not ((is_front_page and config.NotePaper.front_page.enabled) or TwigGetUrl.search or TwigGetUrl.tag) %}{{ meta.title }} | {% endif %}{{ site_title }}</title>
{% if meta.description %}<meta name="description" content="{{ meta.description }}">{% endif %}
{% if meta.robots %}<meta name="robots" content="{{ meta.robots }}">{% endif %}
{# Styles #}
{# Google Fonts #}
<link href='https://fonts.googleapis.com/css?family=Source+Code+Pro%7CForum%7CKalam:400,700' rel='stylesheet' type='text/css'>
{# Custom Fonts #}
{% if config.NotePaper.css.fonts %}
{% for url in config.NotePaper.css.fonts %}
<link href='{{ url }}' rel='stylesheet' type='text/css'>
{% endfor %}
{% endif %}
{# Main Stylesheet #}
<link rel="stylesheet" href="{{ theme_url }}/style.css" type="text/css">
{% if config.NotePaper.css.animations %}<link rel="stylesheet" href="{{ theme_url }}/animations.css" type="text/css">{% endif %}
{# Custom NotePaper Themes #}
{% if config.NotePaper.css.theme and not meta.theme %}
<link rel="stylesheet" href="{{ base_url }}/assets/NotePaper_Themes/{{ config.NotePaper.css.theme }}/theme.css" type="text/css">
{% if config.NotePaper.css.animations %}<link rel="stylesheet" href="{{ base_url }}/assets/NotePaper_Themes/{{ config.NotePaper.css.theme }}/animations.css" type="text/css">{% endif %}
{% elseif meta.theme and meta.theme != "Default" %}
<link rel="stylesheet" href="{{ base_url }}/assets/NotePaper_Themes/{{ meta.theme }}/theme.css" type="text/css">
{% if config.NotePaper.css.animations %}<link rel="stylesheet" href="{{ base_url }}/assets/NotePaper_Themes/{{ meta.theme }}/animations.css" type="text/css">{% endif %}
{% endif %}
{# User Style Overrides #}
{% if config.NotePaper.css.override %}
<link rel="stylesheet" href="{{ base_url }}/{{ config.NotePaper.css.override }}" type="text/css">
{% endif %}
{% if meta.css_override %}
<link rel="stylesheet" href="{{ base_url }}/{{ meta.css_override }}" type="text/css">
{% endif %}
{# Modernizr #}
<script src="{{ theme_url }}/scripts/modernizr.js"></script>
{# Description Length #}
{% if config.NotePaper.description_length %}
{% set description_length = config.NotePaper.description_length %}
{% else %}
{% set description_length = 255 %}
{% endif %}
{# Open Graph #}
<meta property="og:url" content="{{ current_page.url }}">
<meta property="og:site_name" content="{{ site_title }}">
<meta property="og:type" content="website">
{% if meta.title and not ((is_front_page and config.NotePaper.front_page.enabled) or TwigGetUrl.search or TwigGetUrl.tag) %}<meta property="og:title" content="{{ meta.title }}">{% endif %}
{% if meta.description %}
<meta property="og:description" content="{{ meta.description }}">
{% elseif not ((is_front_page and config.NotePaper.front_page.enabled) or TwigGetUrl.search or TwigGetUrl.tag) %}
{% if content|striptags|length > description_length %}
<meta property="og:description" content="{{ content|striptags|slice(0,description_length)|split(' ',-1)|join(' ') ~ "..." }}">
{% else %}
<meta property="og:description" content="{{ content|striptags }}">
{% endif %}
{% endif %}
{% if config.NotePaper.og_image %}<meta property="og:image" content="{{ base_url }}/{{ config.NotePaper.og_image }}">{% endif %}
{# Facebook Coments Administration #}
{% if config.NotePaper.comments.type == "facebook" %}
{% if config.NotePaper.comments.admin_type == "user" %}
{% for users in config.NotePaper.comments.admin_id %}
<meta property="fb:admins" content="{{ users }}">
{% endfor %}
{% elseif config.NotePaper.comments.admin_type == "app" %}
<meta property="fb:app_id" content="{{ config.NotePaper.comments.admin_id }}">
{% endif %}
<noscript><style>.fb-comments:before {content: 'Please enable JavaScript to view the Facebook Comments.';} .fb-comments {text-align: center;}</style></noscript>
{% endif %}
</head>
<body>
{# Show YAML Errors #}
{% for page in pages if page.meta.YAML_ParseError %}
<p class="yaml_error">Header Error in <a href="{{ page.url }}">{{ page.id }}</a>, {{ page.meta.YAML_ParseError }}</p>
{% endfor %}
{# Header #}
<header class="site_title">
<h1>
<a href="{{ base_url }}">
{% if config.NotePaper.site_logo %}
<img src="{{ base_url }}/{{ config.NotePaper.site_logo }}" alt="{{ site_title }}">
{% else %}
{{ site_title }}
{% endif %}
</a>
</h1>
</header>
<main>
{# NotePaper Pages #}
{% set np_pages = [] %}
{% for page in pages if not page.meta.widget and not (config.NotePaper.front_page.enabled and page.id == "index") %}
{% set np_pages = np_pages|merge([page]) %}
{% endfor %}
{# Experimental Folder Navigation - First Level Calculation #}
{% if config.NotePaper.toc.folder %}
{% set first_level = [] %}
{% for page in np_pages if not page.meta.blog %}
{% if '/' in page.id and (page.id|split('/')|first) not in first_level %}
{% set first_level = first_level|merge([page.id|split('/')|first]) %}
{% endif %}
{% endfor %}
{% endif %}
{# Macros #}
{# Recursive Navigation #}
{% import _self as macros %}
{% macro rnav(toc,is_child) %}
{% import _self as macros %}
<ul>
{% for sectionKey, section in toc %}
{% if section is iterable %}
<li>
<a href="#{{ sectionKey }}">{{ section|first }}</a>
{{ macros.rnav(section,true) }}
</li>
{% elseif not (is_child and loop.first) %}
<li>
<a href="#{{ sectionKey }}">{{ section }}</a>
</li>
{% endif %}
{% endfor %}
</ul>
{% endmacro %}
{# Experimental Recursive Folder Navigation #}
{% macro rfol(ToC,np_pages,sticky_num,config) %}
{% import _self as macros %}
{% set sticky_num = sticky_num + 1 %}
{% set next_level = [] %}
{% set current_level = [] %}
{% for page in np_pages if not page.meta.blog and page.id starts with ToC %}
{% set current_level = current_level|merge([page.id|slice(ToC|length + 1)]) %}
{% endfor %}
{% for page in current_level %}
{% if '/' in page and (ToC ~ '/' ~ page|split('/')|first) not in next_level %}
{% set next_level = next_level|merge([ToC ~ '/' ~ page|split('/')|first]) %}
{% endif %}
{% endfor %}
{% for nToC in next_level %}
<li class="menu-header">
{{ nToC|split('/')|last|replace({"_": " "})|title }}
<ul class="menu{% if sticky_num is odd %} odd{% endif %}">
<li class="menu-title"><h2>{{ nToC|split('/')|last|replace({"_": " "})|title }}</h2></li>
{{ macros.rfol(nToC,np_pages,sticky_num,config) }}
</ul>
</li>
{% endfor %}
{% for page in np_pages if not page.meta.blog and page.id starts with ToC %}
{% if next_level %}
{% set pass = true %}
{% for nToC in next_level %}
{% if (page.id starts with nToC) %}{% set pass = false %}{% endif %}
{% endfor %}
{% if pass == true %}
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
{% endif %}
{% else %}
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
{% endif %}
{% endfor %}
{% endmacro %}
{# Widgets Sidebar #}
{# Navigation #}
<section class="widgets{% if config.NotePaper.css.mirrorwidgets %} mirrorwidgets{% endif %}">
{% if config.NotePaper.css.mirrorwidgets %}
{% set sticky_num = 1 %}
{% endif %}
{% if not config.NotePaper.disable.toc %}
<nav class="toc{% if sticky_num is odd %} odd{% endif %}">
{% set sticky_num = sticky_num + 1 %}
{% if config.NotePaper.toc.text %}<h2>{{ config.NotePaper.toc.text }}</h2>{% endif %}
<ul>
{% for page in np_pages if not page.meta.blog and not (config.NotePaper.toc.folder and page.id|split('/')|first in first_level) %}
<li>
<a {% if page.id == current_page.id %}class="current_page"{% endif %} href="{{ page.url }}">{{ page.title }}</a>
{% if page.id == current_page.id and page.meta.toc %}
{{ macros.rnav(page.meta.toc) }}
{% endif %}
</li>
{% endfor %}
</ul>
</nav>
{% endif %}
{# Experimental Folder Navigation #}
{% if config.NotePaper.toc.folder %}
{% for ToC in first_level %}
<nav class="toc foldertoc{% if sticky_num is odd %} odd{% endif %}">
{% set sticky_num = sticky_num + 1 %}
<h2>{{ ToC|replace({"_": " "})|title }}</h2>
<ul>
{{ macros.rfol(ToC,np_pages,sticky_num,config) }}
</ul>
</nav>
{% endfor %}
{% endif %}
{# Tag Data #}
{% if config.NotePaper.tags.list or config.NotePaper.tags.cloud %}
{% set tag_cloud = {} %}
{% for page in np_pages if page.meta.tags %}
{% for tag in page.meta.tags|split(',') %}
{% set tag_cloud = tag_cloud|merge({(tag): (tag_cloud[tag] + 1)}) %}
{% endfor %}
{# Alphabetical Order #}
{% if config.NotePaper.tags.sort.method == 'alphabetical' %}
{% set tag_cloud_alphabetical = {} %}
{% for tag in tag_cloud|keys|sort %}
{% set tag_cloud_alphabetical = tag_cloud_alphabetical|merge({(tag): tag_cloud[tag] }) %}
{% if loop.last %}
{% if not config.NotePaper.tags.sort.reverse %}
{% set tag_cloud = tag_cloud_alphabetical %}
{% else %}
{% set tag_cloud = tag_cloud_alphabetical|reverse %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{# Numerical Order #}
{% if config.NotePaper.tags.sort.method == 'numerical' %}
{% set tag_cloud_numerical = {} %}
{% for tag,total in tag_cloud|sort %}
{% set tag_cloud_numerical = tag_cloud_numerical|merge({(tag): total }) %}
{% if loop.last %}
{% if config.NotePaper.tags.sort.reverse %}
{% set tag_cloud = tag_cloud_numerical %}
{% else %}
{% set tag_cloud = tag_cloud_numerical|reverse %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %}
{# Tag List #}
{% if config.NotePaper.tags.list.enabled and tag_cloud %}
<nav class="tag_list{% if sticky_num is odd %} odd{% endif %}">
{% set sticky_num = sticky_num + 1 %}
{% if config.NotePaper.tags.list.title %}<h2>{{ config.NotePaper.tags.list.title }}</h2>{% endif %}
<ul>
{% for tag,total in tag_cloud %}
<li>
<a href="{% if TwigGetUrlEnabled %}{{ base_url ~ '?tag=' ~ tag }}{% endif %}">{{ tag }}
{% if config.NotePaper.tags.list.total %}
({{ total }})
{% endif %}
</a>
</li>
{% endfor %}
</ul>
</nav>
{% endif %}
{# Tag Cloud #}
{% if config.NotePaper.tags.cloud.enabled and tag_cloud %}
{# Levels Validation #}
{% if config.NotePaper.tags.cloud.levels < 1 %}
{% set levels = 5 %}
{% else %}
{% set levels = config.NotePaper.tags.cloud.levels %}
{% endif %}
{% if max(tag_cloud) < levels %}
{% set levels = max(tag_cloud) %}
{% endif %}
{% set level_range = (max(tag_cloud) / levels)|round(0,'ceil') %}
{# Render Tag Cloud #}
<nav class="tag_cloud{% if sticky_num is odd %} odd{% endif %}">
{% set sticky_num = sticky_num + 1 %}
{% if config.NotePaper.tags.cloud.title %}<h2>{{ config.NotePaper.tags.cloud.title }}</h2>{% endif %}
<ul>
{% for tag,total in tag_cloud %}
{% for i in range(levels, 0) %}
{% if total in range(max(tag_cloud) - (level_range * (loop.index0)), max(tag_cloud) - (level_range * (loop.index)) + 1) %}
<li style="font-size:{{ 2 - (loop.index0 * (1.5 / levels)) }}em;">
<a href="{% if TwigGetUrlEnabled %}{{ base_url ~ '?tag=' ~ tag }}{% endif %}">{{ tag }}
{% if config.NotePaper.tags.cloud.total %}
({{ total }})
{% endif %}
</a>
</li>
{% endif %}
{% endfor %}
{% endfor %}
</ul>
</nav>
{% endif %}
{# Widgets #}
{% for page in pages if page.meta.widget and page.meta.widget != "Disabled" %}
<nav class="{% if page.meta.widget == "Sticky" and sticky_num is odd %}odd {% endif %}{% if page.meta.widget == "Doodle" %}doodle{% endif %}">
{% if page.meta.widget == "Sticky" %}{% set sticky_num = sticky_num + 1 %}{% endif %}
{{ page.id|content }}
</nav>
{% endfor %}
</section>
{# Content Rendering #}
{# Pagination Math #}
{% if is_front_page and (config.NotePaper.front_page.enabled or TwigGetUrl.search or TwigGetUrl.tag) %}
{# Page Count #}
{% set total_pages = '' %}
{% for page in np_pages if (not TwigGetUrl.search or TwigGetUrl.search and (TwigGetUrl.search|lower in page.title|lower or TwigGetUrl.search|lower in page.description|lower or TwigGetUrl.search|lower in page.id|content|lower)) and (not TwigGetUrl.tag or TwigGetUrl.tag in page.meta.tags|split(',')) %}
{% set total_pages = (loop.index / config.NotePaper.front_page.limit)|round(0,'ceil') %}
{% endfor %}
{# Out of Bounds Check #}
{% if TwigGetUrl and TwigGetUrl.page not in range(2, total_pages) %}
{% set TwigGetUrl = TwigGetUrl|merge({page: '0'}) %}
{% endif %}
{# Page Offset #}
{% if TwigGetUrl.page > 0 %}
{% set offset = config.NotePaper.front_page.limit * (TwigGetUrl.page - 1) %}
{% else %}
{% set offset = 0 %}
{% endif %}
{% endif %}
{# Search and Tag - Number of Results #}
{% if TwigGetUrl.search or TwigGetUrl.tag %}
{% set numresults = '' %}
{% for page in np_pages if (not TwigGetUrl.search or TwigGetUrl.search|lower in page.title|lower or TwigGetUrl.search|lower in page.description|lower or TwigGetUrl.search|lower in page.id|content|lower) and (not TwigGetUrl.tag or TwigGetUrl.tag in page.meta.tags|split(',')) %}
{% set numresults = loop.index %}
{% endfor %}
{% endif %}
{# Loop #}
{% set regularpage = '' %}
{% for page in np_pages if not regularpage and (not is_front_page or (not TwigGetUrl.search or TwigGetUrl.search and (TwigGetUrl.search|lower in page.title|lower or TwigGetUrl.search|lower in page.description|lower or TwigGetUrl.search|lower in page.id|content|lower)) and (not TwigGetUrl.tag or TwigGetUrl.tag in page.meta.tags|split(','))) %}
{% if loop.index > offset and count < config.NotePaper.front_page.limit %}
{% set count = count + 1 %}
{% if not is_front_page or is_front_page and not (config.NotePaper.front_page.enabled or TwigGetUrl.search or TwigGetUrl.tag) %}
{% set pagetype = 'meta' %}
{% set regularpage = true %}
{% else %}
{% set pagetype = 'page' %}
{% endif %}
<article>
{% if loop.index > offset + 1 %}<hr>{% endif %}
{% if not config.NotePaper.disable.header and ((_context[pagetype].date and not config.NotePaper.disable.date) or (_context[pagetype].title))%}
<header>
{% if _context[pagetype].date and not config.NotePaper.disable.date %}<h4 class="date{% if config.NotePaper.css.mirrorwidgets %} mirrordate{% endif %}">{{ _context[pagetype].date|date("F") }}<br>{{ _context[pagetype].date|date("jS") }}</h4>{% endif %}
{% if _context[pagetype].title %}
<h2 class="title"><a href="{{ _context[pagetype].url }}">{{ _context[pagetype].title }}</a></h2>
{% if _context[pagetype].author %}<h3 class="author"> by: {{ _context[pagetype].author }}</h3>{% endif %}
{% endif %}
</header>
{% if _context[pagetype].title %}<hr>{% endif %}
{% endif %}
{% if pagetype == "page" and not TwigGetUrl.search and not TwigGetUrl.tag %}
{{ page.id|content }}
{% elseif is_front_page and (TwigGetUrl.search or TwigGetUrl.tag) %}
{% if page.description %}
{{ page.description }}
{% else %}
{% if page.id|content|striptags|length > description_length %}
{{ page.id|content|striptags|slice(0,description_length)|split(' ',-1)|join(' ') ~ "..." }}
{% else %}
{{ page.id|content|striptags }}
{% endif %}
{% endif %}
{% else %}
{{ content }}
{% endif %}
</article>
{% endif %}
{% endfor %}
{# Bottom Links #}
{% if ((config.NotePaper.bottom_links.enabled and config.NotePaper.bottom_links.enabled ~ '' != "blog") or (config.NotePaper.bottom_links.enabled ~ '' == "blog" and meta.blog)) and regularpage and not (is_front_page and config.NotePaper.disable.front_page_buttons) or is_front_page and ((config.NotePaper.front_page.enabled and TwigGetUrlEnabled and not config.NotePaper.disable.front_page_buttons) or TwigGetUrl.search or TwigGetUrl.tag) %}
{% set url = "" %}
{% for page in np_pages if config.NotePaper.bottom_links.enabled ~ '' != "blog" or (config.NotePaper.bottom_links.enabled ~ '' == "blog" and meta.blog and page.meta.blog) or is_front_page %}
{% if loop.index == 1 %}
{% set first_url = page.url %}
{% elseif page.id == current_page.id %}
{% set prev_url = buffer.url %}
{% elseif buffer.id == current_page.id %}
{% set next_url = page.url %}
{% endif %}
{% set last_url = page.url %}
{% set buffer = {id: page.id, url: page.url} %}
{% set url = {
first: {
url: first_url,
text: config.NotePaper.bottom_links.first.text,
image: config.NotePaper.bottom_links.first.image
},
prev: {
url: prev_url,
text: config.NotePaper.bottom_links.prev.text,
image: config.NotePaper.bottom_links.prev.image
},
top: {
url: "#",
text: config.NotePaper.bottom_links.top.text,
image: config.NotePaper.bottom_links.top.image
},
next: {
url: next_url,
text: config.NotePaper.bottom_links.next.text,
image: config.NotePaper.bottom_links.next.image
},
last: {
url: last_url,
text: config.NotePaper.bottom_links.last.text,
image: config.NotePaper.bottom_links.last.image
},
separator: {
text: config.NotePaper.bottom_links.separator.text,
image: config.NotePaper.bottom_links.separator.image
}
} %}
{% endfor %}
{# Load Default Images #}
{% for key,link in url if link.image == "default" %}
{% set url = url|merge({(key): link|merge({image: theme_url|slice(base_url|length) ~ "/images/buttons/button_" ~ key ~ ".png"})}) %}
{% endfor %}
{# Front Page URLs #}
{% if is_front_page and (config.NotePaper.front_page.enabled or TwigGetUrl.search or TwigGetUrl.tag) %}
{# Search Query #}
{% if TwigGetUrl.search %}
{% set search = 'search=' ~ TwigGetUrl.search %}
{% endif %}
{# Tag Query #}
{% if TwigGetUrl.tag %}
{% set tag = 'tag=' ~ TwigGetUrl.tag %}
{% endif %}
{# Page Math #}
{% if TwigGetUrl.page > 2 %}
{% set prev_url = 'page=' ~ (TwigGetUrl.page - 1) %}
{% endif %}
{% if (TwigGetUrl.page + 1) < total_pages %}
{% if TwigGetUrl.page < 2 %}
{% set next_url = 'page=' ~ (TwigGetUrl.page + 2) %}
{% else %}
{% set next_url = 'page=' ~ (TwigGetUrl.page + 1) %}
{% endif %}
{% else %}
{% set next_url = 'page=' ~ total_pages %}
{% endif %}
{% set last_url = 'page=' ~ total_pages %}
{# Set URLs #}
{% for key,link in url if key != "separator" and key != "top" %}
{% if _context[key ~ '_url'] or search or tag %}
{% set operand = '?' %}
{% endif %}
{% if _context[key ~ '_url'] and search %}
{% set ampersand = '&' %}
{% endif %}
{% if _context[key ~ '_url'] and tag %}
{% set ampersand2 = '&' %}{# Kind of awful #}
{% endif %}
{% set url = url|merge({(key): url[key]|merge({url: (base_url ~ operand ~ _context[key ~ '_url'] ~ ampersand ~ search ~ ampersand2 ~ tag) })}) %}
{% endfor %}
{% endif %}
{# Search Result And Tag Math #}
{% if TwigGetUrl.search or TwigGetUrl.tag %}
{% if TwigGetUrl.page < 2 %}
{% set firstresult = 1 %}
{% set secondresult = config.NotePaper.front_page.limit %}
{% else %}
{% set firstresult = config.NotePaper.front_page.limit * (TwigGetUrl.page - 1)+ 1 %}
{% set secondresult = config.NotePaper.front_page.limit * (TwigGetUrl.page - 1) + config.NotePaper.front_page.limit %}
{% endif %}
{% if secondresult > numresults %}
{% set secondresult = numresults %}
{% endif %}
{% endif %}
{# Render Bottom Links #}
<section class="bottom_links">
<hr>
{# Number of Search Results #}
{% if numresults and is_front_page %}
<p>
Showing
{% if firstresult != secondresult %}
{{ firstresult }} - {{ secondresult }}
{% else %}
{{ firstresult }}
{% endif %}
of {{ numresults }} results.
</p><hr style="width: 30%; margin: 2em auto;">
{% elseif is_front_page and TwigGetUrl.search %}
<p>No Results =(</p><hr>
{% endif %}
{# Links #}
{% for key,link in url if link.text and key != "separator" %}
{% if loop.index == 1 %}
{% set precount = "0" %}
{% for key,link in url if link.text and key != "separator" %}{% set precount = precount + 1 %}{% endfor %}
{% endif %}
{% set count = count + 1 %}
{% if link.image %}
<a href="{{ link.url }}"><img src="{{ base_url }}/{{ link.image }}" alt="{{ link.text }}" title="{{ link.text }}"></a>
{% else %}
<a href="{{ link.url }}">{{ link.text }}</a>
{% endif %}
{% if count < precount %}
{% if url.separator.image %}
<img src="{{ base_url }}/{{ url.separator.image }}" alt="{{ url.separator.text }}">
{% else %}
{{ url.separator.text }}
{% endif %}
{% endif %}
{% endfor %}
</section>
{% endif %}
<br class="clear_widgets">
</main>
{# Disqus Comments #}
{% if config.NotePaper.comments.type == "disqus" and (not is_front_page or config.NotePaper.comments.front) %}
<section id="disqus_thread" class="comments">
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
var disqus_shortname = '{{ config.NotePaper.comments.shortname }}';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
</section>
{# Facebook Comments #}
{% elseif config.NotePaper.comments.type == "facebook" and (not is_front_page or config.NotePaper.comments.front) %}
<script>
(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
</script>
<section class="fb-comments comments" data-colorscheme="{% if config.NotePaper.comments.dark %}dark{% endif %}" data-href="{{ current_page.url }}" data-width="100%" data-numposts="{{ config.NotePaper.comments.limit }}" data-order-by="{{ config.NotePaper.comments.order }}"></section>
{% endif %}
{# Footer #}
<footer>
{% if config.NotePaper.copyright %}<h2 class="copyright">{{ config.NotePaper.copyright }}</h2>{% endif %}
{# Feel free to comment out this line #}<h3 class="credit"><a href="http://notepaper.mayamcdougall.me/">NotePaper Theme</a> by <a href="https://github.com/mayamcdougall">Maya McDougall</a>.<br><a href="https://github.com/mayamcdougall/NotePaper">Contribute on GitHub</a>.</h3>
</footer>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,349 @@
/*
NotePaper v1.5.5
http://notepaper.mayamcdougall.me
http://github.com/mayamcdougall/NotePaper
*/
/* Global */
body {
background: #222222 url(images/body-background.jpg) fixed;
}
a {
color: black;
text-decoration: none;
font-weight: bold;
border: none;
}
a:hover{
color: #333;
}
hr {
border: 0;
height: 1px;
background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,0.75), rgba(0,0,0,0));
}
/* Header & Footer */
.site_title, footer {
max-width: 902px;
margin: 0 auto;
color: white;
}
.site_title h1 {
margin: 36px 16px;
font-family: Kalam;
font-size: 3em;
}
.site_title img {
border: none;
}
.site_title a {
color: inherit;
}
.copyright {
text-align: center;
font-size: .85em;
}
.credit {
text-align: center;
font-size: .45em;
font-family: sans-serif;
letter-spacing: .1em;
}
.credit a {
color: inherit;
}
.credit a:hover {
color: #ccc;
}
.yaml_error {
background: #D10505 linear-gradient(#D10505 20%, #A00B0B 80%);
margin: 0 -8px;
border-bottom: 1px solid black;
padding: 1em;
}
.yaml_error:first-of-type {
margin-top: -8px;
}
.yaml_error:last-of-type {
margin-bottom: 8px;
box-shadow: 0 2px 2px rgba(0, 0, 0, 0.75);
}
/* Content Area */
nav h2 {
text-align: center;
text-decoration: underline;
font-size: 1.25em;
}
.widgets {
float: right;
padding-left: 26px;
margin-right: -85px;
}
.mirrorwidgets {
float: left;
padding-left: initial;
margin-right: initial;
padding-right: 26px;
margin-left: -85px;
}
nav,.menu {
width: 250px;
margin-bottom: 15px;
clear: both;
background: Khaki linear-gradient(PaleGoldenrod 20%,Khaki 80%);
border-radius: 2px;
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
transform: rotate(-1deg);
padding: 2px 10px;
font-family: Kalam, cursive;
font-size: 1.25em;
}
nav.odd {
transform: rotate(1deg);
}
nav.doodle {
transform: none;
width: 206px;
margin-left: -15px;
background: none;
border-radius: initial;
box-shadow: none;
}
.mirrorwidgets .doodle {
float: right;
}
nav a.current_page {
/* Doesn't work with font */
font-weight: bolder;
}
nav.toc ul {
list-style-type: none;
}
nav.toc ul ul {
list-style-type: disc;
}
nav.toc ul ul:not(.menu) {
padding-left: 20px;
}
nav.toc ul ul ul {
list-style-type: circle;
}
.bottom_links {
text-align: center;
}
.bottom_links hr {
width: 30%;
margin: 2em auto;
}
.clear_widgets {
clear: both;
}
main, .comments {
display: block; /* Main Support Fix */
max-width: 850px;
margin: 0 auto;
background: #f1f1f1 url(images/main-background.jpg);
border: 1px solid black;
border-radius: 5px;
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
padding: 10px 26px 10px 26px; /* 16px margin on <p> plus 10. Plus 200 on right for sidebar */
font-family: 'Source Code Pro', sans-serif;
line-height: 1.575em;
position: relative;
z-index: 1;
}
.comments {
max-width: 750px;
width: 76%;
padding: 50px 26px 10px 26px;
margin-top: -20px;
min-height: 200px;
position: relative;
z-index: 0;
display: block !important;
}
article header {
margin: 25px auto 20px auto;
min-height: 50px;
}
.title {
font-size: 1.75em;
text-align: center;
margin: 0;
font-family: Forum, sans-serif;
}
.author {
font-size: .75em;
text-align: center;
margin: 0 0 0 4em;
font-family: Forum, sans-serif;
}
.date {
position: absolute;
width: 100px;
height: 46px;
background-color: #A00B0B;
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.75);
text-align: right;
padding: 3px 15px 3px 0;
z-index: 1;
margin: 0 15px 5px -50px;
border-radius: 8px 1px 1px;
font-family: Forum, Tahoma, Arial, Helvetica, sans-serif;
line-height: 1.25em;
text-shadow: 0px 1px 2px #C53D3D;
}
.date:before {
content: "";
position: absolute;
width: 40px;
height: 0;
left: -40px;
top: 30px;
border-style: solid;
border-radius: 0 0 10px;
border-width: 20px 10px;
border-color: #A00B0B #A00B0B #A00B0B transparent;
}
.date:after {
content: "";
position: absolute;
width: 0;
height: 0;
left: 0;
top: 100%;
border-style: solid;
border-radius: 8px 0 0px;
border-width: 5px 10px;
border-color: #6D0404 #6D0404 transparent transparent;
}
.mirrordate {
text-align: left;
padding: 3px 0 3px 15px;
margin: 0 -25px 5px 15px;
border-radius: 1px 8px 1px 1px;
right: 0;
}
.mirrordate:before {
left: auto;
right: -40px;
border-radius: 0 0 0 10px;
border-color: #A00B0B transparent #A00B0B #A00B0B;
}
.mirrordate:after {
left: auto;
right: 0;
border-radius: 0 8px 0 0;
border-color: #6D0404 transparent transparent #6D0404;
}
article img {
border-radius: 5px;
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.75);
max-width: 70%;
}
article pre {
line-height: 1.575em;
}
.foldertoc:hover { /* Still causes wrong order when leaving hover. Possible solution in a z-index transition-delay, but firefox doesn't seem to respect that. Doesn't fix in Stacking Chrome. Chrome has transition: opacity issues as well (blurry test). */
z-index: 2;
}
.menu { /* move up when ready */
color: black;
/* display: none; */
position: absolute;
border-top: 1px solid rgba(0, 0, 0, 0.15);
border-left: 1px solid rgba(0, 0, 0, 0.15);
margin-top: -.5em;
margin-left: -100px;
padding: 20px 40px;
width: 200px;
font-size: inherit;
transform: rotate(2deg);
visibility: hidden;
opacity: 0;
transition: visibility 0s linear 0.15s, opacity 0.15s linear;
}
.menu.odd {
transform: rotate(-2deg);
}
.mirrorwidgets .menu {
margin-left: 5px;
}
.menu-header {
font-weight: bold;
}
.menu-header:hover {
color: #333;
}
.menu-header:hover>.menu {
/* display: block; */
visibility: visible;
opacity: 1;
transition-delay: 0s;
}
.menu-title {
list-style-type: none;
}
.menu-title h2 {
margin-top: 0;
}
.tag_list li{
list-style-type: none;
}
.tag_cloud li{
list-style-type: none;
display: inline-block;
}