Skip to content
This repository was archived by the owner on Jun 26, 2022. It is now read-only.

Commit fe19b40

Browse files
committed
modified themefiles updating webpack for vendor now
1 parent ccb8ad3 commit fe19b40

28 files changed

+901
-22
lines changed

README.md

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
- A static blog generator.
33
- A set of npm scripts that make it easy to build a blog using the **githubAPI** and **nunjucks**.
44

5+
gitpushblog is a set of scripts that will generate some static files into another directory(`/dist`), and then
6+
it will push those files to the appropriate branch of the appropriate reositoty based on the configuration file (`_config.yml`)
7+
It also supports various themes, jekyell themes can be converted to gitpushblog themes easily.
8+
You may want to watch this video if that does not explain it well.
9+
[!]()
10+
511
It is sort of like [Jekyll](https://jekyllrb.com/), but currently does very limited stuff and is in its early stage and probably broken but works.
612

713
see a [live demo here](https://geekodour.github.io/) else get started with the [quickstart guide](#quick-start)
@@ -14,7 +20,6 @@ more examples:
1420

1521

1622
## Table of contents
17-
- [Features](#features)
1823
- [Basic idea](#basic-idea)
1924
- [Quick start guide](#quick-start)
2025
- [Installation](#installation)
@@ -23,31 +28,11 @@ more examples:
2328
- [Troubleshooting](#troubleshooting)
2429
- [Templates and Theme Details](#templates-and-theme-details)
2530
- [Todo](#todo)
31+
- [Features](#features)
2632
- [Contribute](#contribute)
2733
- [Limitations](#limitations)
2834
- [Contributors](#contributors)
2935

30-
## Features
31-
- Uses npm scripts
32-
- Built with webpack and preprocessor support
33-
- easily create themes
34-
- Github and Disqus Comments
35-
- IndexPages,pagination, postpages, simple pages
36-
- Offline markdown draft support, live editing(needs reload)
37-
- Works hasslefree with github repository pages and profile pages.
38-
- Easily add,remove and edit themes. **(Need help creating themes if possible)**
39-
- Edit posts from mobile easily using any github client or browser
40-
- Make a post using Github or using the commandline.
41-
- **update:** now support homepage
42-
43-
## For the impatient
44-
gitpushblog is a set of scripts that will generate some static files into another directory(`/dist`), and then
45-
it will push those files to the appropriate branch of the appropriate reositoty based on the configuration file (`_config.yml`)
46-
It also supports various themes, jekyell themes can be converted to gitpush blog themes easily.
47-
You may want to watch this video if that does not explain it well.
48-
[!]()
49-
50-
5136
## Basic idea
5237

5338
Here's the idea,
@@ -469,6 +454,19 @@ you can read the themes, currently there are two themes **gitpushblogdefault**,*
469454
for now.
470455
- There are a lot of issues, check them out. It will be really great if you can help :smile:
471456

457+
## Features
458+
- Uses npm scripts
459+
- Built with webpack and preprocessor support
460+
- easily create themes
461+
- Github and Disqus Comments
462+
- IndexPages,pagination, postpages, simple pages
463+
- Offline markdown draft support, live editing(needs reload)
464+
- Works hasslefree with github repository pages and profile pages.
465+
- Easily add,remove and edit themes. **(Need help creating themes if possible)**
466+
- Edit posts from mobile easily using any github client or browser
467+
- Make a post using Github or using the commandline.
468+
- **update:** now support homepage
469+
472470
## Limitations
473471
- Probably does not work on Windows as of now.
474472
- Uses only nunjucks for now, let me know if to add support of any other templating engine.

scripts/offline.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ const uploadPosts = () => {
9292
})
9393
}
9494

95+
const generateTheme = () => {
96+
//
97+
}
98+
9599
module.exports = {
96100
uploadPosts
97101
}

scripts/themefiles/_config.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Theme Settings
2+
title: "The Plain"
3+
description: "The Plain is a minimalist Jekyll theme, that's it. Can't say anymore..."
4+
google_verify: epFgX0s_0RM3CdjwFcsewfXzPov2g8s9ZBOLyaIUH-o # Put your Google Verification here
5+
google_analytics: UA-XXXXXXX-X # Put your Google Analytics code
6+
7+
# Author Info
8+
author_name: "YOUR_NAME" # Your name here
9+
author_email: [email protected] # Your email here
10+
author_gravatar: 2b38b1b0e7e08b69379bd61582adf0c8 # Your Gravatar md5 hash here for logo
11+
twitter_username: geekodour # Your Twitter username here
12+
github_username: geekodour # Your GitHub username here
13+
14+
# Site Settings
15+
baseurl: "" # Base URL must end WITHOUT a slash, default: ""
16+
permalink: /notes/:title # Post permalink
17+
timezone: Asia/Kuala_Lumpur
18+
19+
# Site Build ( Offline markdown syntax highlight is not supported yet )
20+
highlighter: rouge
21+
markdown: kramdown
22+
kramdown:
23+
input: GFM

scripts/themefiles/category_page.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{% extends 'snippets/base.html' %}
2+
{% block title %}{{ label.name }} - {{ bc.meta._blog_name }}{% endblock title %}
3+
4+
{% block inlinejavascript %}
5+
{{ super() }}
6+
window.blogInfo.pageType = 'category';
7+
window.blogInfo.label = '{{label.name}}';
8+
{% endblock %}
9+
10+
{% block pagecontent %}
11+
12+
{% if bc.others.template_cat_posts %}
13+
{% for post in posts %}
14+
<div class="">
15+
<a href="{{ '/posts/'|addbaseurl }}{{ post.slug }}">{{ post.title }}</a>
16+
</div>
17+
{% endfor %}
18+
{% endif %}
19+
20+
<!-- if others.template_cat_posts is false then will add a loadmore button for ajax -->
21+
{% if not bc.others.template_cat_posts %}
22+
<div id="loadmore_button_container" class="" style="text-align:center">
23+
<div id="loadmore_button" class="button is-loading">Load more</div>
24+
</div>
25+
{% endif %}
26+
27+
{% endblock %}

scripts/themefiles/feed.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
3+
<channel>
4+
<title>{{ bc.meta.blog_name }}</title>
5+
<description>{{ bc.meta.blog_description }}</description>
6+
<link>{{ ""|addbaseurl }}</link>
7+
{% for post in posts %}
8+
<item>
9+
<title>{{ post.title }}</title>
10+
<description>{{ post.content }}</description>
11+
<pubDate>{{ post.date }}</pubDate>
12+
<link>{{ "/posts/"|addbaseurl }}{{ post.slug }}</link>
13+
</item>
14+
{% endfor %}
15+
</channel>
16+
</rss>

scripts/themefiles/index.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{% extends 'snippets/base.html' %}
2+
{% block title %}{{ bc.meta.blog_name }}{% endblock title %}
3+
4+
{% block inlinejavascript %}
5+
{{ super() }}
6+
window.blogInfo.pageType = 'index';
7+
{% endblock %}
8+
9+
{% block pagecontent %}
10+
11+
<ul>
12+
{% for post in posts %}
13+
<li>
14+
<div class="post-date">
15+
<span>{{ post.date|date }}</span>
16+
</div>
17+
<div class="title">
18+
<a href="{{ '/posts/'|addbaseurl }}{{ post.slug }}">{{ post.title }}</a>
19+
</div>
20+
</li>
21+
{% endfor %}
22+
</ul>
23+
24+
{% include 'snippets/pagination.html' %}
25+
26+
{% endblock %}

scripts/themefiles/pages/404.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% extends 'snippets/base.html' %}
2+
3+
{% block inlinejavascript %}
4+
{{ super() }}
5+
window.blogInfo.pageType = 'page';
6+
{% endblock %}
7+
8+
{% block pagecontent %}
9+
10+
<article>
11+
<h1 class="">not found page</h1>
12+
404 page not found
13+
</article>
14+
15+
{% endblock %}

scripts/themefiles/pages/about.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% extends 'snippets/base.html' %}
2+
3+
{% block inlinejavascript %}
4+
{{ super() }}
5+
window.blogInfo.pageType = 'page';
6+
{% endblock %}
7+
8+
{% block pagecontent %}
9+
10+
<article>
11+
<h1 class="">About Page</h1>
12+
I am about page
13+
</article>
14+
15+
{% endblock %}

scripts/themefiles/pages/index.html

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{% extends 'snippets/base.html' %}
2+
3+
{% block inlinejavascript %}
4+
{{ super() }}
5+
window.blogInfo.pageType = 'page';
6+
{% endblock %}
7+
8+
{% block pagecontent %}
9+
10+
<article>
11+
<h1 class="">I am some text</h1>
12+
This little place in the internet is about me
13+
</article>
14+
15+
{% endblock %}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<!-- gitpushblog does not require pages to follow the templates -->
2+
<!-- this html file is a single simple html file, styles from cdn -->
3+
<!-- can be used to showcase custom pages that do not fit the theme -->
4+
5+
<!DOCTYPE html>
6+
<html>
7+
<head>
8+
<meta charset="UTF-8">
9+
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
10+
<meta name="viewport" content="width=device-width,initial-scale=1">
11+
<title>title</title>
12+
<meta name="author" content="name">
13+
<meta name="description" content="description here">
14+
<meta name="keywords" content="keywords,here">
15+
<link rel="stylesheet" href="stylesheet.css" type="text/css">
16+
</head>
17+
<body>
18+
I AM SOME TEXT
19+
20+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js" type="text/javascript"></script>
21+
<script type="text/javascript">
22+
function autorun()
23+
{
24+
}
25+
if (document.addEventListener) document.addEventListener("DOMContentLoaded", autorun, false);
26+
else if (document.attachEvent) document.attachEvent("onreadystatechange", autorun);
27+
else window.onload = autorun;
28+
</script>
29+
</body>
30+
</html>

0 commit comments

Comments
 (0)