github blog flatfile cms
36
README.md
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
# Github Blog Flatfile CMS
|
||||||
|
|
||||||
|
This project is inspired by github, so we built look like github repo page design.
|
||||||
|
|
||||||
|
![flatfile github blog website cms](githubblog.webp)
|
||||||
|
|
||||||
|
|
||||||
|
Demo : [https://axcora.my.id/bludit/github/](https://axcora.my.id/bludit/github/)
|
||||||
|
|
||||||
|
Documentation : [https://axcora.my.id/bludit/github/category/doc](https://axcora.my.id/bludit/github/category/doc)
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
![flatfile github blog website cms](homepage.webp)
|
||||||
|
|
||||||
|
|
||||||
|
![flatfile github blog website cms](articlepage.webp)
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
TEST PEFORM
|
||||||
|
|
||||||
|
![flatfile github blog website cms](lighthouse-report.webp)
|
||||||
|
|
||||||
|
lighthouse
|
||||||
|
|
||||||
|
![flatfile github blog website cms](pagespeed.webp)
|
||||||
|
|
||||||
|
google page speed mobile
|
||||||
|
|
||||||
|
|
||||||
|
----
|
||||||
|
|
||||||
|
Demo : [https://axcora.my.id/bludit/github/](https://axcora.my.id/bludit/github/)
|
||||||
|
|
||||||
|
Documentation : [https://axcora.my.id/bludit/github/category/doc](https://axcora.my.id/bludit/github/category/doc)
|
BIN
articlepage.webp
Normal file
After Width: | Height: | Size: 62 KiB |
8
css/blug.css
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
.plugin-label { margin-top:8px; font-size: 16px; padding: 3px;}
|
||||||
|
.plugin-content { margin-top:5px; font-size: 14px;}
|
||||||
|
ul,li {
|
||||||
|
list-style-type: none;
|
||||||
|
padding: 3px;
|
||||||
|
margin: 0px;
|
||||||
|
}
|
||||||
|
.smalles {font-size: 18px;}
|
7
css/bs.css
Normal file
22
css/github.css
Normal file
BIN
githubblog.webp
Normal file
After Width: | Height: | Size: 72 KiB |
BIN
homepage.webp
Normal file
After Width: | Height: | Size: 76 KiB |
5
img/codepen.svg
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg aria-labelledby="simpleicons-codepen-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<title id="simpleicons-codepen-icon">CodePen icon</title>
|
||||||
|
<path d="M24 8.182l-.018-.087-.017-.05c-.01-.024-.018-.05-.03-.075-.003-.018-.015-.034-.02-.05l-.035-.067-.03-.05-.044-.06-.046-.045-.06-.045-.046-.03-.06-.044-.044-.04-.015-.02L12.58.19c-.347-.232-.796-.232-1.142 0L.453 7.502l-.015.015-.044.035-.06.05-.038.04-.05.056-.037.045-.05.06c-.02.017-.03.03-.03.046l-.05.06-.02.06c-.02.01-.02.04-.03.07l-.01.05C0 8.12 0 8.15 0 8.18v7.497c0 .044.003.09.01.135l.01.046c.005.03.01.06.02.086l.015.05c.01.027.016.053.027.075l.022.05c0 .01.015.04.03.06l.03.04c.015.01.03.04.045.06l.03.04.04.04c.01.013.01.03.03.03l.06.042.04.03.01.014 10.97 7.33c.164.12.375.163.57.163s.39-.06.57-.18l10.99-7.28.014-.01.046-.037.06-.043.048-.036.052-.058.033-.045.04-.06.03-.05.03-.07.016-.052.03-.077.015-.045.03-.08v-7.5c0-.05 0-.095-.016-.14l-.014-.045.044.003zm-11.99 6.28l-3.65-2.44 3.65-2.442 3.65 2.44-3.65 2.44zm-1.034-6.674l-4.473 2.99L2.89 8.362l8.086-5.39V7.79zm-6.33 4.233l-2.582 1.73V10.3l2.582 1.726zm1.857 1.25l4.473 2.99v4.82L2.89 15.69l3.618-2.417v-.004zm6.537 2.99l4.474-2.98 3.613 2.42-8.087 5.39v-4.82zm6.33-4.23l2.583-1.72v3.456l-2.583-1.73zm-1.855-1.24L13.042 7.8V2.97l8.085 5.39-3.612 2.415v.003z" style="fill: rgba(255, 255, 255, 0.5);"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 1.4 KiB |
5
img/facebook.svg
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg aria-labelledby="simpleicons-facebook-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<title id="simpleicons-facebook-icon">Facebook icon</title>
|
||||||
|
<path d="M22.676 0H1.324C.593 0 0 .593 0 1.324v21.352C0 23.408.593 24 1.324 24h11.494v-9.294H9.689v-3.621h3.129V8.41c0-3.099 1.894-4.785 4.659-4.785 1.325 0 2.464.097 2.796.141v3.24h-1.921c-1.5 0-1.792.721-1.792 1.771v2.311h3.584l-.465 3.63H16.56V24h6.115c.733 0 1.325-.592 1.325-1.324V1.324C24 .593 23.408 0 22.676 0" style="fill: rgba(255, 255, 255, 0.5);"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 586 B |
BIN
img/favicon.png
Normal file
After Width: | Height: | Size: 1 KiB |
5
img/github.svg
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg aria-labelledby="simpleicons-github-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<title id="simpleicons-github-icon">GitHub icon</title>
|
||||||
|
<path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" style="fill: rgba(255, 255, 255, 0.5);"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 984 B |
1
img/gitlab.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>GitLab icon</title><path d="M23.955 13.587l-1.342-4.135-2.664-8.189c-.135-.423-.73-.423-.867 0L16.418 9.45H7.582L4.919 1.263C4.783.84 4.185.84 4.05 1.26L1.386 9.449.044 13.587c-.121.375.014.789.331 1.023L12 23.054l11.625-8.443c.318-.235.453-.647.33-1.024" style="fill: rgba(255, 255, 255, 0.5);"/></svg>
|
After Width: | Height: | Size: 381 B |
1
img/instagram.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg aria-labelledby="simpleicons-instagram-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title id="simpleicons-instagram-icon">Instagram icon</title><path d="M12 0C8.74 0 8.333.015 7.053.072 5.775.132 4.905.333 4.14.63c-.789.306-1.459.717-2.126 1.384S.935 3.35.63 4.14C.333 4.905.131 5.775.072 7.053.012 8.333 0 8.74 0 12s.015 3.667.072 4.947c.06 1.277.261 2.148.558 2.913.306.788.717 1.459 1.384 2.126.667.666 1.336 1.079 2.126 1.384.766.296 1.636.499 2.913.558C8.333 23.988 8.74 24 12 24s3.667-.015 4.947-.072c1.277-.06 2.148-.262 2.913-.558.788-.306 1.459-.718 2.126-1.384.666-.667 1.079-1.335 1.384-2.126.296-.765.499-1.636.558-2.913.06-1.28.072-1.687.072-4.947s-.015-3.667-.072-4.947c-.06-1.277-.262-2.149-.558-2.913-.306-.789-.718-1.459-1.384-2.126C21.319 1.347 20.651.935 19.86.63c-.765-.297-1.636-.499-2.913-.558C15.667.012 15.26 0 12 0zm0 2.16c3.203 0 3.585.016 4.85.071 1.17.055 1.805.249 2.227.415.562.217.96.477 1.382.896.419.42.679.819.896 1.381.164.422.36 1.057.413 2.227.057 1.266.07 1.646.07 4.85s-.015 3.585-.074 4.85c-.061 1.17-.256 1.805-.421 2.227-.224.562-.479.96-.899 1.382-.419.419-.824.679-1.38.896-.42.164-1.065.36-2.235.413-1.274.057-1.649.07-4.859.07-3.211 0-3.586-.015-4.859-.074-1.171-.061-1.816-.256-2.236-.421-.569-.224-.96-.479-1.379-.899-.421-.419-.69-.824-.9-1.38-.165-.42-.359-1.065-.42-2.235-.045-1.26-.061-1.649-.061-4.844 0-3.196.016-3.586.061-4.861.061-1.17.255-1.814.42-2.234.21-.57.479-.96.9-1.381.419-.419.81-.689 1.379-.898.42-.166 1.051-.361 2.221-.421 1.275-.045 1.65-.06 4.859-.06l.045.03zm0 3.678c-3.405 0-6.162 2.76-6.162 6.162 0 3.405 2.76 6.162 6.162 6.162 3.405 0 6.162-2.76 6.162-6.162 0-3.405-2.76-6.162-6.162-6.162zM12 16c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm7.846-10.405c0 .795-.646 1.44-1.44 1.44-.795 0-1.44-.646-1.44-1.44 0-.794.646-1.439 1.44-1.439.793-.001 1.44.645 1.44 1.439z" style="fill: rgba(255, 255, 255, 0.5);"/></svg>
|
After Width: | Height: | Size: 1.9 KiB |
BIN
img/lighthouse-report.webp
Normal file
After Width: | Height: | Size: 26 KiB |
5
img/linkedin.svg
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg aria-labelledby="simpleicons-linkedin-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<title id="simpleicons-linkedin-icon">LinkedIn icon</title>
|
||||||
|
<path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z" style="fill: rgb(154, 157, 160);"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 770 B |
1
img/mastodon.svg
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<svg role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><title>Mastodon icon</title><path d="M23.193 7.879c0-5.206-3.411-6.732-3.411-6.732C18.062.357 15.108.025 12.041 0h-.076c-3.068.025-6.02.357-7.74 1.147 0 0-3.411 1.526-3.411 6.732 0 1.192-.023 2.618.015 4.129.124 5.092.934 10.109 5.641 11.355 2.17.574 4.034.695 5.535.612 2.722-.15 4.25-.972 4.25-.972l-.09-1.975s-1.945.613-4.129.539c-2.165-.074-4.449-.233-4.799-2.891a5.499 5.499 0 0 1-.048-.745s2.125.52 4.817.643c1.646.075 3.19-.097 4.758-.283 3.007-.359 5.625-2.212 5.954-3.905.517-2.665.475-6.507.475-6.507zm-4.024 6.709h-2.497V8.469c0-1.29-.543-1.944-1.628-1.944-1.2 0-1.802.776-1.802 2.312v3.349h-2.483v-3.35c0-1.536-.602-2.312-1.802-2.312-1.085 0-1.628.655-1.628 1.944v6.119H4.832V8.284c0-1.289.328-2.313.987-3.07.68-.758 1.569-1.146 2.674-1.146 1.278 0 2.246.491 2.886 1.474L12 6.585l.622-1.043c.64-.983 1.608-1.474 2.886-1.474 1.104 0 1.994.388 2.674 1.146.658.757.986 1.781.986 3.07v6.304z" style="fill: rgba(255, 255, 255, 0.5);"/></svg>
|
After Width: | Height: | Size: 1,019 B |
BIN
img/pagespeed.webp
Normal file
After Width: | Height: | Size: 20 KiB |
5
img/rss.svg
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg aria-labelledby="simpleicons-rss-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<title id="simpleicons-rss-icon">RSS icon</title>
|
||||||
|
<path d="M19.199 24C19.199 13.467 10.533 4.8 0 4.8V0c13.165 0 24 10.835 24 24h-4.801zM3.291 17.415c1.814 0 3.293 1.479 3.293 3.295 0 1.813-1.485 3.29-3.301 3.29C1.47 24 0 22.526 0 20.71s1.475-3.294 3.291-3.295zM15.909 24h-4.665c0-6.169-5.075-11.245-11.244-11.245V8.09c8.727 0 15.909 7.184 15.909 15.91z" style="fill: rgb(154, 157, 160);"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 550 B |
5
img/twitter.svg
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<svg aria-labelledby="simpleicons-twitter-icon" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
||||||
|
<title id="simpleicons-twitter-icon">Twitter icon</title>
|
||||||
|
<path d="M23.954 4.569c-.885.389-1.83.654-2.825.775 1.014-.611 1.794-1.574 2.163-2.723-.951.555-2.005.959-3.127 1.184-.896-.959-2.173-1.559-3.591-1.559-2.717 0-4.92 2.203-4.92 4.917 0 .39.045.765.127 1.124C7.691 8.094 4.066 6.13 1.64 3.161c-.427.722-.666 1.561-.666 2.475 0 1.71.87 3.213 2.188 4.096-.807-.026-1.566-.248-2.228-.616v.061c0 2.385 1.693 4.374 3.946 4.827-.413.111-.849.171-1.296.171-.314 0-.615-.03-.916-.086.631 1.953 2.445 3.377 4.604 3.417-1.68 1.319-3.809 2.105-6.102 2.105-.39 0-.779-.023-1.17-.067 2.189 1.394 4.768 2.209 7.557 2.209 9.054 0 13.999-7.496 13.999-13.986 0-.209 0-.42-.015-.63.961-.689 1.8-1.56 2.46-2.548l-.047-.02z" style="fill: rgba(255, 255, 255, 0.5);"/>
|
||||||
|
</svg>
|
After Width: | Height: | Size: 916 B |
32
index.php
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="<?php echo Theme::lang() ?>">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
|
<?php echo Theme::metaTagTitle(); ?>
|
||||||
|
<?php echo Theme::metaTagDescription(); ?>
|
||||||
|
<meta name="twitter:title" content="<?php echo $page->title(); ?>"/>
|
||||||
|
<meta name="twitter:description" content="<?php echo $page->description(); ?>"/>
|
||||||
|
<?php echo Theme::metaTagDescription(); ?>
|
||||||
|
<?php echo Theme::favicon('img/favicon.png'); ?>
|
||||||
|
<?php echo Theme::css('css/bs.css'); ?>
|
||||||
|
<?php echo Theme::css('css/blug.css'); ?>
|
||||||
|
<?php echo Theme::css('css/github.css'); ?>
|
||||||
|
<?php Theme::plugins('siteHead'); ?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php include(THEME_DIR_PHP.'navbar.php'); ?>
|
||||||
|
<div class="container-fluid">
|
||||||
|
<?php Theme::plugins('siteBodyBegin'); ?>
|
||||||
|
<?php
|
||||||
|
if ($WHERE_AM_I == 'page') {
|
||||||
|
include(THEME_DIR_PHP.'page.php');
|
||||||
|
} else {
|
||||||
|
include(THEME_DIR_PHP.'home.php');
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
<?php include(THEME_DIR_PHP.'footer.php'); ?>
|
||||||
|
<?php Theme::plugins('siteBodyEnd'); ?>
|
||||||
|
</body>
|
||||||
|
</html>
|
7
languages/de_CH.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"theme-data":
|
||||||
|
{
|
||||||
|
"name": "Github",
|
||||||
|
"description": "Github blog design template for bludit focus on SEO"
|
||||||
|
}
|
||||||
|
}
|
7
languages/de_DE.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"theme-data":
|
||||||
|
{
|
||||||
|
"name": "Github",
|
||||||
|
"description": "Github blog design template for bludit focus on SEO"
|
||||||
|
}
|
||||||
|
}
|
7
languages/en.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"theme-data":
|
||||||
|
{
|
||||||
|
"name": "Github",
|
||||||
|
"description": "Github blog design template for bludit focus on SEO"
|
||||||
|
}
|
||||||
|
}
|
7
languages/es.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"theme-data":
|
||||||
|
{
|
||||||
|
"name": "Github",
|
||||||
|
"description": "Github blog design template for bludit focus on SEO"
|
||||||
|
}
|
||||||
|
}
|
7
languages/fa_IR.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"theme-data":
|
||||||
|
{
|
||||||
|
"name": "Github",
|
||||||
|
"description": "Github blog design template for bludit focus on SEO"
|
||||||
|
}
|
||||||
|
}
|
7
languages/it.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"theme-data":
|
||||||
|
{
|
||||||
|
"name": "Github",
|
||||||
|
"description": "Github blog design template for bludit focus on SEO"
|
||||||
|
}
|
||||||
|
}
|
7
languages/nl_NL.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"theme-data":
|
||||||
|
{
|
||||||
|
"name": "Github",
|
||||||
|
"description": "Github blog design template for bludit focus on SEO"
|
||||||
|
}
|
||||||
|
}
|
7
languages/ru_RU.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"theme-data":
|
||||||
|
{
|
||||||
|
"name": "Github",
|
||||||
|
"description": "Github blog design template for bludit focus on SEO"
|
||||||
|
}
|
||||||
|
}
|
7
languages/tr_TR.json
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{
|
||||||
|
"theme-data":
|
||||||
|
{
|
||||||
|
"name": "Github",
|
||||||
|
"description": "Github blog design template for bludit focus on SEO"
|
||||||
|
}
|
||||||
|
}
|
BIN
lighthouse-report.webp
Normal file
After Width: | Height: | Size: 26 KiB |
10
metadata.json
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"author": "creativitas",
|
||||||
|
"email": "creativebydre@gmail.com",
|
||||||
|
"website": "https://www.fiverr.com/creativitas/design-your-website-with-phyton-django",
|
||||||
|
"version": "3.14.1",
|
||||||
|
"releaseDate": "2023-03-11",
|
||||||
|
"license": "MIT",
|
||||||
|
"compatible": "3.14.1",
|
||||||
|
"notes": ""
|
||||||
|
}
|
BIN
pagespeed.webp
Normal file
After Width: | Height: | Size: 20 KiB |
11
php/article.php
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<div class="col-12 col-md-9">
|
||||||
|
<div class="card">
|
||||||
|
<div class="p-3">
|
||||||
|
<div class="row">
|
||||||
|
<?php include(THEME_DIR_PHP.'profile.php'); ?>
|
||||||
|
<?php include(THEME_DIR_PHP.'info.php'); ?>
|
||||||
|
</div>
|
||||||
|
<?php include(THEME_DIR_PHP.'post.php'); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
20
php/content.php
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<?php foreach ($content as $page): ?>
|
||||||
|
<?php Theme::plugins('pageBegin'); ?>
|
||||||
|
<div class="p-3 border-bottom border-gray-light">
|
||||||
|
<svg class="octicon octicon-repo text-secondary" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9H3V8h1v1zm0-3H3v1h1V6zm0-2H3v1h1V4zm0-2H3v1h1V2zm8-1v12c0 .55-.45 1-1 1H6v2l-1.5-1.5L3 16v-2H1c-.55 0-1-.45-1-1V1c0-.55.45-1 1-1h10c.55 0 1 .45 1 1zm-1 10H1v2h2v-1h3v1h5v-2zm0-10H2v9h9V1z"></path></svg>
|
||||||
|
<strong>
|
||||||
|
<a href="<?php echo $page->permalink(); ?>">
|
||||||
|
<?php echo $page->title(); ?>
|
||||||
|
</a>
|
||||||
|
</strong>
|
||||||
|
<br/>
|
||||||
|
<?php if ($page->description()): ?><p class="mt-3"><?php echo $page->description(); ?></p><?php endif ?>
|
||||||
|
<br/>
|
||||||
|
<?php include(THEME_DIR_PHP.'features.php'); ?>
|
||||||
|
</div>
|
||||||
|
<?php Theme::plugins('pageEnd'); ?>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
20
php/features.php
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<p class="text-small text-gray">
|
||||||
|
<?php if ($page->tags()): ?>
|
||||||
|
<svg class="octicon octicon-code mr-1" viewBox="0 0 14 16" version="1.1" width="14" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M9.5 3L8 4.5 11.5 8 8 11.5 9.5 13 14 8 9.5 3zm-5 0L0 8l4.5 5L6 11.5 2.5 8 6 4.5 4.5 3z"></path></svg>
|
||||||
|
<?php echo $page->tags(); ?><?php endif ?><br/>
|
||||||
|
<?php if ($page->category()): ?>
|
||||||
|
<svg class="octicon octicon-repo-forked" viewBox="0 0 10 16" version="1.1" width="10" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M8 1a1.993 1.993 0 0 0-1 3.72V6L5 8 3 6V4.72A1.993 1.993 0 0 0 2 1a1.993 1.993 0 0 0-1 3.72V6.5l3 3v1.78A1.993 1.993 0 0 0 5 15a1.993 1.993 0 0 0 1-3.72V9.5l3-3V4.72A1.993 1.993 0 0 0 8 1zM2 4.2C1.34 4.2.8 3.65.8 3c0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3 10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2zm3-10c-.66 0-1.2-.55-1.2-1.2 0-.65.55-1.2 1.2-1.2.65 0 1.2.55 1.2 1.2 0 .65-.55 1.2-1.2 1.2z"></path></svg>
|
||||||
|
<?php echo $page->category(); ?><?php endif ?>
|
||||||
|
<?php if ($page->date()): ?>
|
||||||
|
<svg class="octicon octicon-calendar" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path d="M4.75 0a.75.75 0 0 1 .75.75V2h5V.75a.75.75 0 0 1 1.5 0V2h1.25c.966 0 1.75.784 1.75 1.75v10.5A1.75 1.75 0 0 1 13.25 16H2.75A1.75 1.75 0 0 1 1 14.25V3.75C1 2.784 1.784 2 2.75 2H4V.75A.75.75 0 0 1 4.75 0ZM2.5 7.5v6.75c0 .138.112.25.25.25h10.5a.25.25 0 0 0 .25-.25V7.5Zm10.75-4H2.75a.25.25 0 0 0-.25.25V6h11V3.75a.25.25 0 0 0-.25-.25Z"></path></svg>
|
||||||
|
<?php echo $page->date(); ?><?php endif ?>
|
||||||
|
<?php if ($page->user('nickname')): ?>
|
||||||
|
<svg class="octicon octicon-github" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true">
|
||||||
|
<path d="M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"></path>
|
||||||
|
</svg>
|
||||||
|
<?php echo $page->user('nickname'); ?><?php endif ?>
|
||||||
|
<svg class="octicon octicon-stopwatch" viewBox="0 0 15 16" version="1.1" width="15" height="16" aria-hidden="true">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" width="16" height="16"><path d="M5.75.75A.75.75 0 0 1 6.5 0h3a.75.75 0 0 1 0 1.5h-.75v1l-.001.041a6.724 6.724 0 0 1 3.464 1.435l.007-.006.75-.75a.749.749 0 0 1 1.275.326.749.749 0 0 1-.215.734l-.75.75-.006.007a6.75 6.75 0 1 1-10.548 0L2.72 5.03l-.75-.75a.751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018l.75.75.007.006A6.72 6.72 0 0 1 7.25 2.541V1.5H6.5a.75.75 0 0 1-.75-.75ZM8 14.5a5.25 5.25 0 1 0-.001-10.501A5.25 5.25 0 0 0 8 14.5Zm.389-6.7 1.33-1.33a.75.75 0 1 1 1.061 1.06L9.45 8.861A1.503 1.503 0 0 1 8 10.75a1.499 1.499 0 1 1 .389-2.95Z"></path></svg>
|
||||||
|
</svg>
|
||||||
|
<?php echo $page->readingTime(); ?>
|
||||||
|
</p>
|
16
php/footer.php
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<div class="footer container-xl width-full p-responsive" role="contentinfo">
|
||||||
|
<div class="position-relative d-flex flex-row-reverse flex-lg-row flex-wrap flex-lg-nowrap flex-justify-center flex-lg-justify-between pt-4 pb-2 mt-6 f6 text-gray border-top border-gray-light">
|
||||||
|
<ul class="list-style-none d-flex flex-wrap col-12 col-lg-12 flex-justify-center flex-lg-justify-between mt-3 mb-2 mb-lg-0">
|
||||||
|
<li class="mr-3 mr-lg-0"><svg height="24" class="octicon octicon-mark-github" viewBox="0 0 16 16" version="1.1" width="24" aria-hidden="true"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"></path></svg>
|
||||||
|
<?php echo $site->footer(); ?>
|
||||||
|
</li>
|
||||||
|
<?php foreach (Theme::socialNetworks() as $key=>$label): ?><li class="mr-3 mr-lg-0"><a class="col-md-3 p-1 col-4" href="<?php echo $site->{$key}(); ?>" target="_blank"><?php echo $label; ?></a></li><?php endforeach; ?>
|
||||||
|
<?php if (Theme::rssUrl()): ?><li class="mr-3 mr-lg-0"><a class="col-md-3 p-1 col-4" href="<?php echo Theme::rssUrl() ?>" target="_blank">RSS</a></li><?php endif; ?>
|
||||||
|
<li class="mr-3 mr-lg-0"><a class="col-md-3 p-1 col-4" target="_blank" href="https://www.bludit.com">Bludit</a></li>
|
||||||
|
<!-- <li class="mr-3 mr-lg-0"><a class="col-md-3 p-1 col-4" target="_blank" href="https://www.axcora.com">Axcora</a></li> -->
|
||||||
|
<li class="mr-3 mr-lg-0"><a class="col-md-3 p-1 col-4" target="_blank" href="https://www.fiverr.com/creativitas/">Creativitas</a></li></ul>
|
||||||
|
</div>
|
||||||
|
<div class="d-flex flex-justify-center pb-6">
|
||||||
|
<span class="f6 text-gray-light"></span>
|
||||||
|
</div>
|
||||||
|
</div>
|
5
php/header.php
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
<div class="col-12 col-md-8 p-3 p-md-5">
|
||||||
|
<div class="col-md-12 p-3 border-bottom border-gray-light">
|
||||||
|
<h1><strong><a href="<?php echo $site->url(); ?>"><?php echo $site->title(); ?></a></strong></h1>
|
||||||
|
<h2><?php echo $site->description(); ?></h2>
|
||||||
|
</div>
|
8
php/home.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<div class="container">
|
||||||
|
<div class="row mt-3">
|
||||||
|
<?php include(THEME_DIR_PHP.'menu.php'); ?>
|
||||||
|
<?php include(THEME_DIR_PHP.'header.php'); ?>
|
||||||
|
<?php include(THEME_DIR_PHP.'content.php'); ?>
|
||||||
|
<?php include(THEME_DIR_PHP.'pagination.php'); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
6
php/info.php
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<div class="col-md-8 col-8 text-end">
|
||||||
|
<?php if ($page->date()): ?><time>On <?php echo $page->date(); ?></time> <svg class="octicon octicon-history" viewBox="0 0 15 16" version="1.1" width="15" height="16" aria-hidden="true">
|
||||||
|
<path d="m.427 1.927 1.215 1.215a8.002 8.002 0 1 1-1.6 5.685.75.75 0 1 1 1.493-.154 6.5 6.5 0 1 0 1.18-4.458l1.358 1.358A.25.25 0 0 1 3.896 6H.25A.25.25 0 0 1 0 5.75V2.104a.25.25 0 0 1 .427-.177ZM7.75 4a.75.75 0 0 1 .75.75v2.992l2.028.812a.75.75 0 0 1-.557 1.392l-2.5-1A.751.751 0 0 1 7 8.25v-3.5A.75.75 0 0 1 7.75 4Z">
|
||||||
|
</svg> <?php echo $page->readingTime(); ?><?php endif ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
6
php/intro.php
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<div class="col-12 col-md-12 p-3 p-md-5">
|
||||||
|
<svg class="octicon octicon-repo text-secondary" viewBox="0 0 12 16" version="1.1" width="12" height="16" aria-hidden="true"><path fill-rule="evenodd" d="M4 9H3V8h1v1zm0-3H3v1h1V6zm0-2H3v1h1V4zm0-2H3v1h1V2zm8-1v12c0 .55-.45 1-1 1H6v2l-1.5-1.5L3 16v-2H1c-.55 0-1-.45-1-1V1c0-.55.45-1 1-1h10c.55 0 1 .45 1 1zm-1 10H1v2h2v-1h3v1h5v-2zm0-10H2v9h9V1z"></path></svg>
|
||||||
|
<a href="<?php echo $site->url(); ?>">Home</a> / <?php if ($page->title()): ?>
|
||||||
|
<a href="<?php echo $page->permalink(); ?>"><?php echo $page->title(); ?></a><?php endif ?>
|
||||||
|
<span class="border border-secaondary rounded-pill p-1 ms-1"><small>Published</small></span>
|
||||||
|
</div>
|
7
php/menu.php
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
<div class="col-12 col-md-3 p-3 p-md-5">
|
||||||
|
<nav class="menu" aria-label="Person settings">
|
||||||
|
<div class="menu-item">
|
||||||
|
<?php include(THEME_DIR_PHP.'plugins.php'); ?>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
</div>
|
16
php/navbar.php
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
<div class="Header">
|
||||||
|
<div class="Header-item">
|
||||||
|
<a href="<?php echo $site->url(); ?>" class="Header-link f4 d-flex flex-items-center">
|
||||||
|
<svg height="32" class="octicon octicon-mark-github mr-2" viewBox="0 0 16 16" version="1.1" width="32" aria-hidden="true"><path fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"></path></svg>
|
||||||
|
<span><?php echo $site->title(); ?></span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="Header-item">
|
||||||
|
<a href="<?php echo $site->url(); ?>" class="Header-link">Home</a>
|
||||||
|
</div>
|
||||||
|
<?php foreach ($staticContent as $staticPage): ?>
|
||||||
|
<div class="Header-item">
|
||||||
|
<a href="<?php echo $staticPage->permalink(); ?>" class="Header-link"><?php echo $staticPage->title(); ?></a>
|
||||||
|
</div>
|
||||||
|
<?php endforeach ?>
|
||||||
|
</div>
|
9
php/page.php
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
<div class="container">
|
||||||
|
<div class="row">
|
||||||
|
<?php Theme::plugins('pageBegin'); ?>
|
||||||
|
<?php include(THEME_DIR_PHP.'intro.php'); ?>
|
||||||
|
<?php include(THEME_DIR_PHP.'article.php'); ?>
|
||||||
|
<?php include(THEME_DIR_PHP.'menu.php'); ?>
|
||||||
|
<?php Theme::plugins('pageEnd'); ?>
|
||||||
|
</div>
|
||||||
|
</div>
|
13
php/pagination.php
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
<?php if (Paginator::numberOfPages()>1): ?>
|
||||||
|
<nav class="paginate-container" aria-label="Pagination">
|
||||||
|
<div class="pagination">
|
||||||
|
<?php if (Paginator::showPrev()): ?>
|
||||||
|
<a class="previous_page" rel="previous" href="<?php echo Paginator::previousPageUrl() ?>" aria-label="Previous Page">Previous</a>
|
||||||
|
<?php endif; ?>
|
||||||
|
<a class="home_page" rel="home" href="<?php echo Paginator::nextPageUrl() ?>" aria-label="Home Page">Home</a>
|
||||||
|
<?php if (Paginator::showNext()): ?>
|
||||||
|
<a class="next_page" rel="next" href="<?php echo Paginator::nextPageUrl() ?>" aria-label="Next Page">Next</a>
|
||||||
|
<?php endif; ?>
|
||||||
|
</div>
|
||||||
|
</nav>
|
||||||
|
<?php endif; ?>
|
1
php/plugins.php
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<?php Theme::plugins('siteSidebar') ?>
|
8
php/post.php
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<?php if ($page->coverImage()): ?><img class="img-fluid" alt="<?php echo $page->description(); ?>" width="100%" src="<?php echo $page->coverImage(); ?>"/><?php endif ?>
|
||||||
|
<div class="p-3">
|
||||||
|
<h1><strong><a href="<?php echo $page->permalink(); ?>"><?php echo $page->title(); ?></a></strong></h1>
|
||||||
|
<h2 class="border-bottom border-gray-light mb-3 p-1"><?php echo $page->description(); ?></a></h2>
|
||||||
|
<?php if ($page->tags()): ?><p class="border-bottom p-1"><small><svg class="octicon octicon-tag" viewBox="0 0 15 16" version="1.1" width="15" height="16" aria-hidden="true">
|
||||||
|
<path d="M1 7.775V2.75C1 1.784 1.784 1 2.75 1h5.025c.464 0 .91.184 1.238.513l6.25 6.25a1.75 1.75 0 0 1 0 2.474l-5.026 5.026a1.75 1.75 0 0 1-2.474 0l-6.25-6.25A1.752 1.752 0 0 1 1 7.775Zm1.5 0c0 .066.026.13.073.177l6.25 6.25a.25.25 0 0 0 .354 0l5.025-5.025a.25.25 0 0 0 0-.354l-6.25-6.25a.25.25 0 0 0-.177-.073H2.75a.25.25 0 0 0-.25.25ZM6 5a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"></path>
|
||||||
|
</svg><?php echo $tag ?> Tag : <?php echo $page->tags(); ?></small></p><?php endif ?>
|
||||||
|
<?php echo $page->content(); ?>
|
6
php/profile.php
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
<div class="col-md-4 col-4">
|
||||||
|
<?php if ($page->user('profilePicture')): ?>
|
||||||
|
<img class="img-fluid rounded-circle" alt="<?php echo $page->title(); ?>"
|
||||||
|
src="<?php echo ($page->user('profilePicture')?$page->user('profilePicture'):Theme::src('img/noimage.png')) ?>" width="30"/><?php endif ?>
|
||||||
|
<?php if ($page->user('nickname')): ?> <strong><?php echo $page->user('nickname') ?></strong><?php endif ?>
|
||||||
|
</div>
|
1
php/sidebar.php
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<?php Theme::plugins('siteSidebar') ?>
|