Browse Source

ripuliti i file di conf

ora pelicanconf ha le impostazioni valide sempre
publishconf ha quelle che si applicano solo al sito in "produzione"
boyska 5 years ago
parent
commit
50d2adb907
3 changed files with 10 additions and 28 deletions
  1. 1 1
      README.md
  2. 8 14
      pelicanconf.py
  3. 1 13
      publishconf.py

+ 1 - 1
README.md

@@ -30,7 +30,7 @@ cp -r talks/_talk_example/ talks/MIOTALK/
 vim talks/MIOTALK/meta.yaml
 ```
 
-Quindi rifai `make publish` come spiegato prima: l'output ti informa di eventuali errori nei campi o
+Quindi rifai `make html` come spiegato prima: l'output ti informa di eventuali errori nei campi o
 sovrapposizioni con altri talk, leggilo!
 
 Hacking

+ 8 - 14
pelicanconf.py

@@ -5,7 +5,7 @@ from __future__ import unicode_literals
 AUTHOR = u'Hackmeeting'
 SITENAME = u'Hackmeeting 0x16'
 CC_LICENSE = 'by-nc-sa'
-SITEURL = 'https://hackmeeting.org/hackit19/'
+SITEURL = '/hackit19'
 
 PATH = 'content'
 PAGE_PATHS = ['pages']
@@ -32,7 +32,7 @@ DEFAULT_PAGINATION = 10
 USE_OPEN_GRAPH = False  # COL CAZZO 
 
 # Uncomment following line if you want document-relative URLs when developing
-# RELATIVE_URLS = True
+RELATIVE_URLS = True
 
 DEFAULT_DATE = (2019, 3, 1)
 TYPOGRIFY = True
@@ -47,11 +47,11 @@ BANNER= True
 BANNER_ALL_PAGES= True
 SITELOGO="logo/logo.png"
 # PAGE_BACKGROUND = 'images/background.jpg'
-#THEME = 'themes/hackit0x15/'
+# THEME = 'themes/hackit0x15/'
 FONT_URL = 'theme/css/anaheim.css'
 
 # Custom css by sticazzi.
-CUSTOM_CSS = 'theme/css/hackit.css'
+# CUSTOM_CSS = 'theme/css/hackit.css'
 EXTRA_PATH_METADATA = {
         # 'extra/main.css': {'path': 'themes/pelican-bootstrap3/static/css/main.css' },
         'extra/favicon.png': {'path': 'images/favicon.png'},
@@ -65,18 +65,12 @@ HIDE_SIDEBAR = True
 PLUGIN_PATHS = ['plugins']
 PLUGINS = ['langmenu', 'talks', 'tipue_search']
 
+# plugin/talks.py
+SCHEDULEURL = 'https://hackmeeting.org' + SITEURL + '/schedule.html'
+TALKS_GRID_STEP = 30
+
 MARKDOWN = {
     'extension_configs': {
         'markdown.extensions.toc': {},
     },
 }
-
-#TALKS = {
-#    u'1': { u'Speaker' : u'',
-#        u'Title': u'',
-#         u'Abstract': u'',
-#         u'Room': u'',
-#         u'Schedule': u'',
-#         u'Day':'',
-#    }
-#}

+ 1 - 13
publishconf.py

@@ -10,16 +10,4 @@ import sys
 sys.path.append(os.curdir)
 from pelicanconf import *
 
-SITEURL = '/hackit19'
-RELATIVE_URLS = True
-TALKS_GRID_STEP = 30
-
-# plugin/talks.py
-SCHEDULEURL = 'https://hackmeeting.org' + SITEURL + '/schedule.html'
-
-# DELETE_OUTPUT_DIRECTORY = True
-
-# Following items are often useful when publishing
-
-#DISQUS_SITENAME = ""
-#GOOGLE_ANALYTICS = ""
+SITEURL = 'https://hackmeeting.org/hackit19/'