From 51253c5f6cb111b719d6f332756f4fbe1abc9c40 Mon Sep 17 00:00:00 2001 From: agusmakmun Date: Wed, 1 Feb 2017 11:28:45 +0700 Subject: [PATCH] added simply docs --- README.md | 46 +++++++++++++++++++ _config.yml | 1 + _layouts/default.html | 7 ++- ...rs-registered-inside-django-admin.markdown | 2 +- 4 files changed, 51 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 78207f0..a58b4c1 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,49 @@ #### Screenshot ![Screenshot Post Page](https://raw.githubusercontent.com/agusmakmun/agusmakmun.github.io/master/static/img/screenshot-post-page.png "Screenshot Post Page") + +### Install & Configuration + +1. Fork this repository +2. Edit site settings inside file of `_config.yml` +3. Edit your projects at file of `projects.md`, `_data/projects.json` and inside path of `_project/` _(for detail project)_. +4. Edit about yourself inside file of `about.md` + +### How to Use? + +**a. Add new Categories** + +All categories saved inside path of `category/`, you can see existed categories. + +**b. Add new Posts** + +* All posts bassed on markdown syntax _(please googling)_. allowed extensions if `*.markdown` or `*.md`. +* This files can found at the path of `_posts/`. +* and the name of files are following `-.`, for example: + +``` +2013-09-23-welcome-to-jekyll.md + +# or + +2013-09-23-welcome-to-jekyll.markdown +``` + +Inside the file of it, + +``` +--- +layout: post # (require) default post layout +title: "Your Title" # (require) a string title +date: 2016-04-20 19:51:02 +0700 # (require) a post date +categories: [python, django] # (custom) some categories, but makesure these categories already exists inside path of `category/` +tags: [foo, bar] # (custom) tags only for meta `property="article:tag"` +image: Broadcast_Mail.png # (custom) image only for meta `property="og:image"`, save your image inside path of `static/img/_posts` +--- + +# your content post with markdown syntax goes here... +``` + +### Contributing + +Feel free to [open a bug](/issues) or [contribute to code](/pulls)! diff --git a/_config.yml b/_config.yml index 29c7dce..41d634e 100644 --- a/_config.yml +++ b/_config.yml @@ -5,6 +5,7 @@ github: https://github.com/agusmakmun about: I am freelance developer. Currently doing more in backend, focused in Python and Django. disqus_shortname: stackproblems google_analytics: UA-XXXXXXXX-Y +avatar_url: /static/img/avatar.jpg enableTags: true tagarray: [] diff --git a/_layouts/default.html b/_layouts/default.html index 18ee33b..fdec835 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -42,7 +42,7 @@ layout: compress {% if page.image %} {% else %} - + {% endif %} {% if page.categories %} @@ -110,7 +110,7 @@ layout: compress
- +

{{ site.author }}

{% if site.about %}
@@ -156,8 +156,7 @@ layout: compress
- + diff --git a/_posts/2016-04-20-adding-broadcast-mail-to-all-users-registered-inside-django-admin.markdown b/_posts/2016-04-20-adding-broadcast-mail-to-all-users-registered-inside-django-admin.markdown index 3283c91..bbb3877 100644 --- a/_posts/2016-04-20-adding-broadcast-mail-to-all-users-registered-inside-django-admin.markdown +++ b/_posts/2016-04-20-adding-broadcast-mail-to-all-users-registered-inside-django-admin.markdown @@ -3,6 +3,7 @@ layout: post title: "Adding BroadCast Mail to All Users Registered inside Django Admin" date: 2016-04-20 19:51:02 +0700 categories: [python, django] +image: Broadcast_Mail.png --- Adding BroadCast Mail to All User Registered in Django Admin. This is my last problem, we need custom default Django Admin to can submit BroadCast mail to All User. Because this is perfectly to make a promotions. @@ -82,4 +83,3 @@ admin.site.register(models.BroadCast_Email, BroadCast_Email_Admin) **3.** And then, you can see. we have **Submit BroadCast** selection, just click button **Go** to submit broadcast mail. ![Screenshot broadcast](https://raw.githubusercontent.com/agusmakmun/agusmakmun.github.io/master/static/img/_posts/Broadcast_Mail.png "Screenshot broadcast") -