It has been 1486 days since the last update, the content of the article may be outdated.

Latest set

python

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = 'Jiheng Hu'
SITENAME = "Jiheng's Blog"
SITEURL = 'https://jihenghu.github.io'

PATH = 'content'

TIMEZONE = 'Asia/Shanghai'
#DATE_FORMATS = {'zh':'%Y-%m-%d %H:%M'}
DATE_FORMATS = {'en': '%a, %d %b %Y %H:%M'}
THEME = 'pelican-elegant'
DISQUS_SITENAME = 'jihenghu'

COMMENTS_INTRO = "Disqus isn't stable due to poor network,email is highly recommended"
DEFAULT_LANG = 'zh'

##### plugins
## 插件目录
PLUGIN_PATHS = [u"pelican-plugins"]
#PLUGINS = [u"neighbors",u"related_posts","tag_cloud","share_post","sitemap","tipue_search","extract_toc"]#,"multi_part"]
PLUGINS = [u"neighbors",u"related_posts","tag_cloud","share_post","sitemap","extract_toc"]#,"multi_part"]

USE_SHORTCUT_ICONS = True
SITELOGO = 'images/favicon.ico'
FAVICON = 'images/favicon.ico'
SITELOGO_SIZE = 15

#MD_EXTENSIONS = ['codehilite(css_class=highlight)', 'extra', 'headerid', 'toc']
# Markdown extensions to use...
# The following line is deprecated for versions >= 3.7. However, I will leave this in here for backward compatibility for now (since some plugins have not been ported to 3.7.0).
#MD_EXTENSIONS = ['fenced_code', 'codehilite(css_class=highlight, linenums=True)', 'toc', 'markdown.extensions.abbr', 'markdown.extensions.footnotes', 'markdown.extensions.tables', ]

# For Pelican version >= 3.7 you will need the following...
MARKDOWN = {
'extension_configs' : {
'markdown.extensions.codehilite' : {'css_class': 'highlight', 'linenums': True},
'markdown.extensions.abbr' : {},
'markdown.extensions.footnotes' : {},
'markdown.extensions.tables' : {},
'markdown.extensions.toc' : {'permalink': True},
'markdown.extensions.fenced_code' : {}
}
}


DIRECT_TEMPLATES = (('index', 'tags', 'categories','archives', 'search', '404'))

SITESUBTITLE = 'Glory Glory Man. United'

MAILCHIMP_FORM_ACTION = 'https://facebook.us17.list-manage.com/subscribe/post?u=c5b98e725c643897fdbd8e8c3&id=248afa8728'

## 配置sitemap 插件
SITEMAP = {
"format": "xml",
"priorities": {
"articles": 0.7,
"indexes": 0.5,
"pages": 0.3,
},
"changefreqs": {
"articles": "monthly",
"indexes": "daily",
"pages": "monthly",
}
}
## 设置URL按照日期显示
#ARTICLE_URL = 'categories/{slug}.html'
#ARTICLE_SAVE_AS = ARTICLE_URL

## 分页
DEFAULT_PAGINATION = 10

## 静态目录设置
STATIC_PATHS = ["images","extra"]

## 顶部菜单项
#MENUITEMS = [('archives',SITEURL+'/archives.html'),]

USE_FOLDER_AS_CATEGORY = True

ARTICLE_URL = '{category}/{slug}.html'
ARTICLE_SAVE_AS = ARTICLE_URL
PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = PAGE_URL

CATEGORY_URL = 'categories/{slug}.html'
CATEGORY_SAVE_AS = CATEGORY_URL
CATEGORIES_SAVE_AS = 'categories.html'

TAG_URL = 'tags/{slug}.html'
TAG_SAVE_AS = TAG_URL
TAGS_SAVE_AS = 'tags.html'




# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

# Blogroll
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)

# Social widget
SOCIAL = (('GitHub', 'https://github.com/jihenghu'),
('YouTube', 'https://www.youtube.com/channel/UCPInVfFat-LA865PCIsgrcA?view_as=subscriber'),
('Instagram', 'https://www.instagram.com/jihenghu/'),
('Twitter', 'https://twitter.com/hjh18305'),
('FaceBook', 'https://www.facebook.com/profile.php?id=100010229477330'),)

#SITE_DESCRIPTION = 'I built this static site just for daily record'
GOOGLE_PLUS_PROFILE_URL = 'https://plus.google.com/u/0/105611375860140618313'
TWITTER_USERNAME = 'hjh18305'


LANDING_PAGE_ABOUT = {'title':'The leading page',
'details': 'My name is Jiheng Hu. I am jihenghu at Github,you can reach me via hjh18305@gmail.com .<br/>'
'\n I am a graduated student of University of Science & Technology of China. <br/>'
'\n This is a static website built powered by Pelican'}
PROJECTS = [{
'name': 'Logpad + Duration',
'url': 'https://github.com/talha131/logpad-plus-duration#logpad--duration',
'description': 'Vim plugin to emulate Windows Notepad logging feature,'
' and log duration of each entry'},
{'name': 'Elegant Theme for Pelican',
'url': 'http://oncrashreboot.com/pelican-elegant',
'description': 'A clean and distraction free theme, with search and a'
' lot more unique features, using Jinja2 and Bootstrap'}]



# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True

Previous set

python

#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = 'Jiheng Hu'
SITENAME = "Jiheng's Blog"
SITEURL = 'https://jihenghu.github.io'

PATH = 'content'

TIMEZONE = 'Asia/Shanghai'
#DATE_FORMATS = {'zh':'%Y-%m-%d %H:%M'}
DATE_FORMATS = {'en': '%a, %d %b %Y %H:%M'}
THEME = 'pelican-elegant'
DISQUS_SITENAME = 'jihenghu'

DEFAULT_LANG = 'zh'

##### plugins
## 插件目录
PLUGIN_PATHS = [u"pelican-plugins"]
#PLUGINS = [u"neighbors",u"related_posts","tag_cloud","share_post","sitemap","tipue_search","extract_toc"]#,"multi_part"]
PLUGINS = [u"neighbors",u"related_posts","tag_cloud","share_post","sitemap","extract_toc"]#,"multi_part"]

USE_SHORTCUT_ICONS = True
SITELOGO = 'images/favicon.ico'
FAVICON = 'images/favicon.ico'
SITELOGO_SIZE = 15

MD_EXTENSIONS = ['codehilite(css_class=highlight)', 'extra', 'headerid', 'toc']
DIRECT_TEMPLATES = (('index', 'tags', 'categories','archives', 'search', '404'))

SITESUBTITLE = 'Glory Glory Man. United'



## 配置sitemap 插件
SITEMAP = {
"format": "xml",
"priorities": {
"articles": 0.7,
"indexes": 0.5,
"pages": 0.3,
},
"changefreqs": {
"articles": "monthly",
"indexes": "daily",
"pages": "monthly",
}
}

## 分页
DEFAULT_PAGINATION = 10

## 静态目录设置
STATIC_PATHS = ["images","extra"]

## 顶部菜单项
#MENUITEMS = [('archives',SITEURL+'/archives.html'),]

USE_FOLDER_AS_CATEGORY = True

ARTICLE_URL = '{category}/{slug}.html'
ARTICLE_SAVE_AS = ARTICLE_URL
PAGE_URL = '{slug}.html'
PAGE_SAVE_AS = PAGE_URL

CATEGORY_URL = 'categories/{slug}.html'
CATEGORY_SAVE_AS = CATEGORY_URL
CATEGORIES_SAVE_AS = 'categories.html'

TAG_URL = 'tags/{slug}.html'
TAG_SAVE_AS = TAG_URL
TAGS_SAVE_AS = 'tags.html'



# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None
AUTHOR_FEED_RSS = None

# Blogroll nouse for elegant
LINKS = (('Pelican', 'http://getpelican.com/'),
('Python.org', 'http://python.org/'),
('Jinja2', 'http://jinja.pocoo.org/'),
('You can modify those links in your config file', '#'),)

# Social widget
SOCIAL = (('GitHub', 'https://github.com/jihenghu'),
('YouTube', 'https://www.youtube.com/channel/UCPInVfFat-LA865PCIsgrcA?view_as=subscriber'),
('Instagram', 'https://www.instagram.com/jihenghu/'),
('Twitter', 'https://twitter.com/hjh18305'),
('FaceBook', 'https://www.facebook.com/profile.php?id=100010229477330'),)

#SITE_DESCRIPTION = 'I built this static site just for daily record'
GOOGLE_PLUS_PROFILE_URL = 'https://plus.google.com/u/0/105611375860140618313'
TWITTER_USERNAME = 'hjh18305'


LANDING_PAGE_ABOUT = {'title':'The leading page',
'details': 'My name is Jiheng Hu. I am jihenghu at Github,you can reach me via hjh18305@gmail.com .<br/>'
'\n I am a graduated student of University of Science & Technology of China. <br/>'
'\n This is a static website built powered by Pelican'}
PROJECTS = [{
'name': 'Logpad + Duration',
'url': 'https://github.com/talha131/logpad-plus-duration#logpad--duration',
'description': 'Vim plugin to emulate Windows Notepad logging feature,'
' and log duration of each entry'},
{'name': 'Elegant Theme for Pelican',
'url': 'http://oncrashreboot.com/pelican-elegant',
'description': 'A clean and distraction free theme, with search and a'
' lot more unique features, using Jinja2 and Bootstrap'}]



# Uncomment following line if you want document-relative URLs when developing
#RELATIVE_URLS = True

Talha131’s setting

html
#!/usr/bin/env python
# -*- coding: utf-8 -*- #
from __future__ import unicode_literals

AUTHOR = u'Talha Mansoor'
SITENAME = u"""<span style="color:black;">onCrash</span> <span style="color:darkblue;">=</span> <span style="color:#AA1032;">'reboot();'</span>"""
SITEURL = 'http://localhost:8000'

# Regional Settings
TIMEZONE = 'Asia/Karachi'
DATE_FORMATS = {'en': '%b %d, %Y'}
DEFAULT_LANG = u'en'

# Plugins and extensions
MD_EXTENSIONS = ['codehilite(css_class=highlight)', 'extra', 'headerid',
'toc(permalink=true)']
PLUGIN_PATH = '../pelican-plugins/'
PLUGINS = ['sitemap', 'extract_toc', 'tipue_search', 'liquid_tags.img',
'neighbors', 'latex', 'related_posts', 'assets', 'share_post',
'multi_part']
SITEMAP = {
'format': 'xml',
'priorities': {
'articles': 0.5,
'indexes': 0.5,
'pages': 0.5
},
'changefreqs': {
'articles': 'monthly',
'indexes': 'daily',
'pages': 'monthly'
}
}

# Appearance
TYPOGRIFY = True
THEME = 'elegant'
DEFAULT_PAGINATION = False

# Defaults
DEFAULT_CATEGORY = 'Miscellaneous'
USE_FOLDER_AS_CATEGORY = False
ARTICLE_URL = u'{slug}'
PAGE_URL = u'{slug}'
PAGE_SAVE_AS = u'{slug}.html'

# Feeds
FEED_ALL_ATOM = None
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None

# Social
SOCIAL = (
('Twitter', 'http://twitter.com/talham_'),
('Github', 'http://github.com/talha131'),
('GitTip', 'http://gittip.com/talha131'),
('Email', 'mailto:talha131@gmail.com'),
)

# Elegant theme
STATIC_PATHS = ['theme/images', 'images']
DIRECT_TEMPLATES = (('index', 'tags', 'categories', 'archives', 'search', '404'))
TAG_SAVE_AS = ''
AUTHOR_SAVE_AS = ''
CATEGORY_SAVE_AS = ''
USE_SHORTCUT_ICONS = True

# Elegant Labels
SOCIAL_PROFILE_LABEL = u'Stay in Touch'
RELATED_POSTS_LABEL = 'Keep Reading'
SHARE_POST_INTRO = 'Like this post? Share on:'
COMMENTS_INTRO = u'So what do you think? Did I miss something? Is any part unclear? Leave your comments below.'

# Mailchimp
EMAIL_SUBSCRIPTION_LABEL = u'Get Monthly Updates'
EMAIL_FIELD_PLACEHOLDER = u'Enter your email...'
SUBSCRIBE_BUTTON_TITLE = u'Send me Free updates'
MAILCHIMP_FORM_ACTION = u'empty'

# SMO
TWITTER_USERNAME = u'talham_'
FEATURED_IMAGE = SITEURL + '/theme/images/apple-touch-icon-152x152.png'

# Legal
SITE_LICENSE = u'<span xmlns:dct="http://purl.org/dc/terms/" property="dct:title"> onCrash="Reboot();"</span> by <a xmlns:cc="http://creativecommons.org/ns#" href="http://oncrashreboot.com" property="cc:attributionName" rel="cc:attributionURL">Talha Mansoor</a> is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/deed.en_US">Creative Commons Attribution-ShareAlike 3.0 Unported License</a>.'

# SEO
SITE_DESCRIPTION = u'My name is Talha Mansoor \u2015 a software engineer who gets things done. I am talha131 at Github and @talham_ at twitter. I design and build software products for iOS and OSX. I work on Jump Desktop which is a remote desktop application for iOS, OSX and Android. This is my personal blog.'

# Landing Page
PROJECTS = [
{
'name': 'Elegant',
'url':
'http://oncrashreboot.com/pelican-elegant',
'description': 'A clean and distraction free Pelican theme, with'
' search and a'
' lot more unique features. Built with Jinja2 and Bootstrap'},
{
'name': 'Logpad + Duration',
'url':
'https://github.com/talha131/logpad-plus-duration#logpad--duration',
'description': 'Vim plugin to emulate Windows Notepad logging feature,'
' and log duration of each entry'},
{
'name': 'Pelican',
'url':
'https://github.com/getpelican/pelican/commits?author=talha131',
'description': 'Static site generator that supports Markdown and'
' reST syntax'},
{
'name': 'Pelican Plugins',
'url':
'https://github.com/getpelican/pelican-plugins/commits?author=talha131',
'description': 'Bunch of plugins for Pelican blog engine'},
{
'name': 'Asana to Github Issues',
'url': 'https://github.com/talha131/AsanaToGithub#asana-to-github',
'description': 'Command-line program to move your tasks from Asana'
' projects to Github issues'},
{
'name': 'Asana',
'url':
'https://github.com/pandemicsyn/asana/commits?author=talha131',
'description': 'Python Asana API bindings'},
{
'name': 'Ctags',
'url':
'https://github.com/fishman/ctags/commits?author=talha131',
'description': 'Exuberant Ctags clone with ObjectiveC and CSS support'},
{
'name': 'Wasavi',
'url':
'https://github.com/akahuku/wasavi/commits?author=talha131',
'description': 'A browser extension that changes textarea element to'
' Vi editor'
}]
LANDING_PAGE_ABOUT = {'title': 'I design and build software products for iOS and OSX',
'details': """<div itemscope itemtype="http://schema.org/Person"><p>My name
is <span itemprop="name">Talha Mansoor</span>.
I am <a href="https://github.com/talha131/" title="My Github
profile" itemprop="url"><span itemprop="nickname">talha131</span></a> at Github and <a
href="https://twitter.com/talham_/" title="My Twitter
profile" itemprop="url">@talham_</a> at twitter. You can also reach me via <a
href="mailto:talha131@gmail.com" title="My email
address" itemprop="email">email</a>.</p><p>I work on <a href="http://jumpdesktop.com/"
title="Jump Desktop" itemprop="affiliation">Jump Desktop</a> which is a remote desktop
application for iOS, OSX and Android. I play a broad role there - which
includes research, product design, engineering and deployment. I also
lend a hand in user support.</p><p>I try to contribute to society by
striving to create great software products that make people's lives
easier. I believe software is the most effective way to touch others'
lives in our day and time.</p><p>I mostly work in C, C++ and Objective-C
on OSX and Linux, I also dabble in Python, Vim-L and JavaScript. I do not
pigeonhole myself to specific languages or frameworks. A good developer
is receptive and has the ability to learn new technologies. I also often
contribute to open source projects and beta test startup
products.</p><p>Besides programming, I <a
href="https://www.fitocracy.com/profile/Andrew-Dufresne/" title="My
Fitocracy profile" itemprop="url">exercise</a> and <a
href="http://www.goodreads.com/talha131" title="My GoodReads
profile" itemprop="url">read books</a> regularly. To be a stronger and better version of
myself!</p><p>English is my second language. I am also learning <a
href="http://www.duolingo.com/talha131" title="My Duolingo
profile" itemprop="url">German from Duolingo</a>.</p></div>"""}