Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1ba8b1c

Browse filesBrowse files
committed
Add theme
1 parent f9bffc4 commit 1ba8b1c
Copy full SHA for 1ba8b1c

File tree

Expand file treeCollapse file tree

1 file changed

+7
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+7
-3
lines changed

‎utils/genIndex.py

Copy file name to clipboardExpand all lines: utils/genIndex.py
+7-3Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,16 @@ def getIcon(name):
5252
suf=name[name.rfind('.')+1:]
5353
return FMT_DIC[suf] if suf in FMT_DIC else FMT_DIC['other']
5454

55-
56-
def handleDir(target):
55+
def prepare():
5756
if os.path.exists(TARDIR):
5857
os.system('rm -rf '+TARDIR)
59-
try:os.mkdir(TARDIR)
58+
try:
59+
os.mkdir(TARDIR)
60+
with open(os.path.join(TARDIR,'_config.yml'),'w',encoding='utf-8') as f:
61+
f.write('theme: jekyll-theme-cayman\n')
6062
except:return
63+
def handleDir(target):
64+
prepare()
6165
n = len(target)
6266
gen = os.walk(target)
6367
for path,dirs,files in gen:

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.