diff --git a/_data/repositories.yml b/_data/repositories.yml index e985511dbd27262338eafabbac035353beafab0d..ac5faa2cc08d44552cefa0223730c9e932468ab1 100644 --- a/_data/repositories.yml +++ b/_data/repositories.yml @@ -1 +1,2 @@ - https://git.fairkom.net/tonyford/myp2p +- https://git.fairkom.net/fkeim/myp2p diff --git a/_includes/overview.html b/_includes/overview.html index 8c46203e8fc1a93c1449442808e0ace968cf213e..2f525dc16cd9f5a78bef5c398e68427b05f49878 100644 --- a/_includes/overview.html +++ b/_includes/overview.html @@ -42,7 +42,7 @@ </div> <div class="orderlist-title"> - <a href="{{ o.git-repo }}/blob/master/{{ o.order-title }}" target="git-order"><u>{{ o.headline | truncate: 32 }}</u></a> <a href="{{ o.git-profile }}" target="git-profile"><span class="feather-icon icon-user"></span></a> <a href="{{ o.git-repo }}/issues/new?issue[title]={{ o.order-title }}" target="git-contact"><span class="feather-icon icon-mail"></span></a> + <a href="{{ o.git-repo }}/blob/master/{{ o.order-title }}" target="git-order" title="{{ o.git-repo }}/blob/master/{{ o.order-title }}"><u>{{ o.headline | truncate: 32 }}</u></a> <a href="{{ o.git-profile }}" target="git-profile" title="{{ o.git-profile }}"><span class="feather-icon icon-user"></span></a> <a href="{{ o.git-repo }}/issues/new?issue[title]={{ o.order-title }}" title="{{ o.git-repo }}/issues/new?issue[title]={{ o.order-title }}" target="git-contact"><span class="feather-icon icon-mail"></span></a> <a href="form.html?language-code={{ o.language-code }}&tags={{ o.tags | slice:0,2 | join: ',' }}&bid-ask={{ o.bid-ask }}&headline={{ o.headline | escape }}&condition={{ o.condition }}&description={{ o.description | escape }}&unit={{ o.unit }}&min-size={{ o.min-size }}&max-size={{ o.max-size }}&price-reference={{ o.price-reference | join: ','}}&price-per-unit={{ o.price-per-unit }}"><span class="feather-icon icon-copy"></span></a> diff --git a/script/get_orders.py b/script/get_orders.py index 2759c4cd3a421602bb0ba350690d7738b37db8dd..f94a1c16f26609e4ea73e2f544a39c19cd2f6fb0 100644 --- a/script/get_orders.py +++ b/script/get_orders.py @@ -262,7 +262,18 @@ for source in Pulls: if( ps == False ): logme('- order.yml[price-reference] all sources invalid -> SKIP order !') continue - file = open('../_posts/'+Date + '-' +furl+'.md','w') + + orderpaths=[ git_, gituser, gitrepo ] + orderpath='../_posts' + for op in orderpaths: + orderpath+='/' + op + if not os.path.exists(orderpath): + os.makedirs(orderpath) + + orderfile= Date + '-' +furl+'.md' + + print( orderpath+'/'+orderfile ) + file = open(orderpath+'/'+orderfile,'w') file.write('---\n') file.write('layout: none\n') file.write('git-repo: '+source+'\n') @@ -271,7 +282,7 @@ for source in Pulls: file.write('latitude: '+str( O['latitude'] )+'\n' ) file.write('longitude: '+str( O['longitude'] )+'\n' ) file.write('country-code: '+ O['country-code'].upper() +'\n' ) - file.write(contents.decode("utf-8")) + file.write(contents.decode("utf-8")+'\n') file.write('categories: \n') file.write('- '+ git_ +'\n' ) file.write('- '+ gituser +'\n' )