diff --git a/conf.py b/conf.py index e29c8d7..cf9ccb3 100644 --- a/conf.py +++ b/conf.py @@ -17,16 +17,16 @@ import time # Data about this site -BLOG_AUTHOR = "LISSA Board" # (translatable) -BLOG_TITLE = "LIS Scholarship Archive" # (translatable) +BLOG_AUTHOR = "Nikola Tesla" # (translatable) +BLOG_TITLE = "Example Nikola website using GitLab Pages!" # (translatable) # This is the main URL for your site. It will be used # in a prominent link. Don't forget the protocol (http/https)! -SITE_URL = "https://lissarchive.org/" +SITE_URL = "https://pages.gitlab.io/nikola/" # This is the URL where Nikola's output will be deployed. # If not set, defaults to SITE_URL -# BASE_URL = "https://example.com/" -BLOG_EMAIL = "vicky.steeves@nyu.edu" -BLOG_DESCRIPTION = "An open, scholarly platform for LIS." # (translatable) +# BASE_URL = "https://pages.gitlab.io/nikola/" +BLOG_EMAIL = "n.tesla@example.com" +BLOG_DESCRIPTION = "This is a demo site for Nikola." # (translatable) # Nikola is multilingual! # @@ -50,7 +50,6 @@ BLOG_DESCRIPTION = "An open, scholarly platform for LIS." # (translatable) # fi Finnish # fr French # gl Galician -# he Hebrew # hi Hindi # hr Croatian # hu Hungarian @@ -58,8 +57,7 @@ BLOG_DESCRIPTION = "An open, scholarly platform for LIS." # (translatable) # it Italian # ja Japanese [NOT jp] # ko Korean -# lt Lithuanian -# nb Norwegian (Bokmål) +# nb Norwegian Bokmål # nl Dutch # pa Punjabi # pl Polish @@ -68,16 +66,13 @@ BLOG_DESCRIPTION = "An open, scholarly platform for LIS." # (translatable) # ru Russian # sk Slovak # sl Slovene -# sq Albanian # sr Serbian (Cyrillic) # sr_latin Serbian (Latin) # sv Swedish -# te Telugu # tr Turkish [NOT tr_TR] # uk Ukrainian # ur Urdu # zh_cn Chinese (Simplified) -# zh_tw Chinese (Traditional) # # If you want to use Nikola with a non-supported language you have to provide # a module containing the necessary translations @@ -134,29 +129,27 @@ TRANSLATIONS_PATTERN = "{path}.{lang}.{ext}" NAVIGATION_LINKS = { DEFAULT_LANG: ( - ("/", "Home"), - ('/who-we-are', 'About'), - ('/scholarship', 'Scholarship'), - ('/contact', 'Contact') + ("/archive.html", "Archive"), + ("/categories/", "Tags"), + ("/rss.xml", "RSS feed"), ), } # Name of the theme to use. -THEME = "custom" +THEME = "bootstrap3" # Primary color of your theme. This will be used to customize your theme and # auto-generate related colors in POSTS_SECTION_COLORS. Must be a HEX value. THEME_COLOR = '#5670d4' # POSTS and PAGES contains (wildcard, destination, template) tuples. -# (translatable) # -# The wildcard is used to generate a list of source files -# (whatever/thing.rst, for example). +# The wildcard is used to generate a list of reSt source files +# (whatever/thing.txt). # # That fragment could have an associated metadata file (whatever/thing.meta), # and optionally translated files (example for Spanish, with code "es"): -# whatever/thing.es.rst and whatever/thing.es.meta +# whatever/thing.es.txt and whatever/thing.es.meta # # This assumes you use the default TRANSLATIONS_PATTERN. # @@ -165,38 +158,27 @@ THEME_COLOR = '#5670d4' # # These files are combined with the template to produce rendered # pages, which will be placed at -# output/TRANSLATIONS[lang]/destination/pagename.html +# output / TRANSLATIONS[lang] / destination / pagename.html # # where "pagename" is the "slug" specified in the metadata file. -# The page might also be placed in /destination/pagename/index.html -# if PRETTY_URLS are enabled. # # The difference between POSTS and PAGES is that POSTS are added -# to feeds, indexes, tag lists and archives and are considered part -# of a blog, while PAGES are just independent HTML pages. +# to feeds and are considered part of a blog, while PAGES are +# just independent HTML pages. # -# Finally, note that destination can be translated, i.e. you can -# specify a different translation folder per language. Example: -# PAGES = ( -# ("pages/*.rst", {"en": "pages", "de": "seiten"}, "story.tmpl"), -# ("pages/*.md", {"en": "pages", "de": "seiten"}, "story.tmpl"), -# ) POSTS = ( ("posts/*.rst", "posts", "post.tmpl"), ("posts/*.txt", "posts", "post.tmpl"), ("posts/*.html", "posts", "post.tmpl"), - ("posts/scholarship/*.rst", "directory", "post.tmpl"), - ("posts/scholarship/*.txt", "directory", "post.tmpl"), - ("posts/scholarship/*.html", "directory", "post.tmpl"), ) - PAGES = ( ("pages/*.rst", "", "story.tmpl"), ("pages/*.txt", "", "story.tmpl"), ("pages/*.html", "", "story.tmpl"), ) + # Below this point, everything is optional # Post's dates are considered in UTC by default, if you want to use @@ -206,7 +188,7 @@ PAGES = ( # (e.g. 'Europe/Zurich') # Also, if you want to use a different time zone in some of your posts, # you can use the ISO 8601/RFC 3339 format (ex. 2012-03-30T23:00:00+02:00) -TIMEZONE = "America/New_York" +TIMEZONE = "Europe/Paris" # If you want to use ISO 8601 (also valid RFC 3339) throughout Nikola # (especially in new_post), set this to True. @@ -241,10 +223,6 @@ TIMEZONE = "America/New_York" # LOCALE_DEFAULT = locale to use for languages not mentioned in LOCALES; if # not set the default Nikola mapping is used. -# LOCALES = {} -# LOCALE_FALLBACK = None -# LOCALE_DEFAULT = None - # One or more folders containing files to be copied as-is into the output. # The format is a dictionary of {source: relative destination}. # Default is: @@ -287,15 +265,6 @@ COMPILERS = { # Set to False for two-file posts, with separate metadata. # ONE_FILE_POSTS = True -# Use date-based path when creating posts? -# Can be enabled on a per-post basis with `nikola new_post -d`. -# The setting is ignored when creating pages (`-d` still works). -# NEW_POST_DATE_PATH = False - -# What format to use when creating posts with date paths? -# Default is '%Y/%m/%d', other possibilities include '%Y' or '%Y/%m'. -# NEW_POST_DATE_PATH_FORMAT = '%Y/%m/%d' - # If this is set to True, the DEFAULT_LANG version will be displayed for # untranslated posts. # If this is set to False, then posts that are not translated to a language @@ -374,15 +343,12 @@ POSTS_SECTIONS = True # output / TRANSLATION[lang] / TAG_PATH / index.html (list of tags) # output / TRANSLATION[lang] / TAG_PATH / tag.html (list of posts for a tag) # output / TRANSLATION[lang] / TAG_PATH / tag.xml (RSS feed for a tag) -# (translatable) + # (translatable) # TAG_PATH = "categories" -# By default, the list of tags is stored in -# output / TRANSLATION[lang] / TAG_PATH / index.html -# (see explanation for TAG_PATH). This location can be changed to -# output / TRANSLATION[lang] / TAGS_INDEX_PATH -# with an arbitrary relative path TAGS_INDEX_PATH. -# (translatable) +# See TAG_PATH's "list of tags" for the default setting value. Can be overwritten +# here any path relative to the output directory. + # (translatable) # TAGS_INDEX_PATH = "tags.html" # If TAG_PAGES_ARE_INDEXES is set to True, each tag's page will contain @@ -426,14 +392,6 @@ HIDDEN_TAGS = ['mathjax'] # CATEGORY_PATH = "categories" # CATEGORY_PREFIX = "cat_" -# By default, the list of categories is stored in -# output / TRANSLATION[lang] / CATEGORY_PATH / index.html -# (see explanation for CATEGORY_PATH). This location can be changed to -# output / TRANSLATION[lang] / CATEGORIES_INDEX_PATH -# with an arbitrary relative path CATEGORIES_INDEX_PATH. -# (translatable) -# CATEGORIES_INDEX_PATH = "categories.html" - # If CATEGORY_ALLOW_HIERARCHIES is set to True, categories can be organized in # hierarchies. For a post, the whole path in the hierarchy must be specified, # using a forward slash ('/') to separate paths. Use a backslash ('\') to escape @@ -475,11 +433,10 @@ HIDDEN_CATEGORIES = [] # author, author pages are generated. # ENABLE_AUTHOR_PAGES = True -# Path to author pages. Final locations are: -# output / TRANSLATION[lang] / AUTHOR_PATH / index.html (list of authors) -# output / TRANSLATION[lang] / AUTHOR_PATH / author.html (list of posts by an author) -# output / TRANSLATION[lang] / AUTHOR_PATH / author.xml (RSS feed for an author) -# (translatable) +# Final locations are: +# output / TRANSLATION[lang] / AUTHOR_PATH / index.html (list of tags) +# output / TRANSLATION[lang] / AUTHOR_PATH / author.html (list of posts for a tag) +# output / TRANSLATION[lang] / AUTHOR_PATH / author.xml (RSS feed for a tag) # AUTHOR_PATH = "authors" # If AUTHOR_PAGES_ARE_INDEXES is set to True, each author's page will contain @@ -504,7 +461,6 @@ HIDDEN_AUTHORS = ['Guest'] # Final location for the main blog page and sibling paginated pages is # output / TRANSLATION[lang] / INDEX_PATH / index-*.html -# (translatable) # INDEX_PATH = "" # Optional HTML that displayed on “main” blog index.html files. @@ -522,8 +478,6 @@ FRONT_INDEX_HEADER = { # CREATE_FULL_ARCHIVES = False # If monthly archives or full archives are created, adds also one archive per day # CREATE_DAILY_ARCHIVE = False -# Create previous, up, next navigation links for archives -# CREATE_ARCHIVE_NAVIGATION = False # Final locations for the archives are: # output / TRANSLATION[lang] / ARCHIVE_PATH / ARCHIVE_FILENAME # output / TRANSLATION[lang] / ARCHIVE_PATH / YEAR / index.html @@ -546,16 +500,12 @@ FRONT_INDEX_HEADER = { # If USE_BASE_TAG is True, then all HTML files will include # something like to help # the browser resolve relative links. -# Most people don’t need this tag; major websites don’t use it. Use -# only if you know what you’re doing. If this is True, your website -# will not be fully usable by manually opening .html files in your web -# browser (`nikola serve` or `nikola auto` is mandatory). Also, if you -# have mirrors of your site, they will point to SITE_URL everywhere. -USE_BASE_TAG = False +# In some rare cases, this will be a problem, and you can +# disable it by setting USE_BASE_TAG to False. +# USE_BASE_TAG = True # Final location for the blog main RSS feed is: # output / TRANSLATION[lang] / RSS_PATH / rss.xml -# (translatable) # RSS_PATH = "" # Slug the Tag URL. Easier for users to type, special characters are @@ -594,12 +544,13 @@ REDIRECTIONS = [] # github_deploy configuration # For more details, read the manual: # https://getnikola.com/handbook.html#deploying-to-github -# You will need to configure the deployment branch on GitHub. -#GITHUB_SOURCE_BRANCH = 'src' -#GITHUB_DEPLOY_BRANCH = 'master' +# For user.github.io OR organization.github.io pages, the DEPLOY branch +# MUST be 'master', and 'gh-pages' for other repositories. +# GITHUB_SOURCE_BRANCH = 'master' +# GITHUB_DEPLOY_BRANCH = 'gh-pages' # The name of the remote where you wish to push to, using github_deploy. -#GITHUB_REMOTE_NAME = 'origin' +# GITHUB_REMOTE_NAME = 'origin' # Whether or not github_deploy should commit to the source branch automatically # before deploying. @@ -608,7 +559,7 @@ GITHUB_COMMIT_SOURCE = True # Where the output site should be located # If you don't use an absolute path, it will be considered as relative # to the location of conf.py -OUTPUT_FOLDER = 'output' +OUTPUT_FOLDER = 'public' # where the "cache" of partial generated content should be located # default: 'cache' @@ -644,25 +595,6 @@ OUTPUT_FOLDER = 'output' # ".jpg": ["jpegoptim --strip-all -m75 -v %s"], # } -# Executable for the "yui_compressor" filter (defaults to 'yui-compressor'). -# YUI_COMPRESSOR_EXECUTABLE = 'yui-compressor' - -# Executable for the "closure_compiler" filter (defaults to 'closure-compiler'). -# CLOSURE_COMPILER_EXECUTABLE = 'closure-compiler' - -# Executable for the "optipng" filter (defaults to 'optipng'). -# OPTIPNG_EXECUTABLE = 'optipng' - -# Executable for the "jpegoptim" filter (defaults to 'jpegoptim'). -# JPEGOPTIM_EXECUTABLE = 'jpegoptim' - -# Executable for the "html_tidy_withconfig", "html_tidy_nowrap", -# "html_tidy_wrap", "html_tidy_wrap_attr" and "html_tidy_mini" filters -# (defaults to 'tidy5'). -# HTML_TIDY_EXECUTABLE = 'tidy5' - - - # Expert setting! Create a gzipped copy of each generated file. Cheap server- # side optimization for very high traffic sites or low memory servers. # GZIP_FILES = False @@ -710,63 +642,18 @@ OUTPUT_FOLDER = 'output' # GALLERY_SORT_BY_DATE = True # If set to True, EXIF data will be copied when an image is thumbnailed or -# resized. (See also EXIF_WHITELIST) +# resized. # PRESERVE_EXIF_DATA = False -# If you have enabled PRESERVE_EXIF_DATA, this option lets you choose EXIF -# fields you want to keep in images. (See also PRESERVE_EXIF_DATA) # -# For a full list of field names, please see here: -# http://www.cipa.jp/std/documents/e/DC-008-2012_E.pdf -# -# This is a dictionary of lists. Each key in the dictionary is the -# name of a IDF, and each list item is a field you want to preserve. -# If you have a IDF with only a '*' item, *EVERY* item in it will be -# preserved. If you don't want to preserve anything in a IDF, remove it -# from the setting. By default, no EXIF information is kept. -# Setting the whitelist to anything other than {} implies -# PRESERVE_EXIF_DATA is set to True -# To preserve ALL EXIF data, set EXIF_WHITELIST to {"*": "*"} - -# EXIF_WHITELIST = {} - -# Some examples of EXIF_WHITELIST settings: - -# Basic image information: -# EXIF_WHITELIST['0th'] = [ -# "Orientation", -# "XResolution", -# "YResolution", -# ] - -# If you want to keep GPS data in the images: -# EXIF_WHITELIST['GPS'] = ["*"] - -# Embedded thumbnail information: -# EXIF_WHITELIST['1st'] = ["*"] - -# Folders containing images to be used in normal posts or pages. -# IMAGE_FOLDERS is a dictionary of the form {"source": "destination"}, -# where "source" is the folder containing the images to be published, and -# "destination" is the folder under OUTPUT_PATH containing the images copied -# to the site. Thumbnail images will be created there as well. - -# To reference the images in your posts, include a leading slash in the path. -# For example, if IMAGE_FOLDERS = {'images': 'images'}, write -# -# .. image:: /images/tesla.jpg -# -# See the Nikola Handbook for details (in the “Embedding Images” and -# “Thumbnails” sections) - -# Images will be scaled down according to IMAGE_THUMBNAIL_SIZE and MAX_IMAGE_SIZE -# options, but will have to be referenced manually to be visible on the site -# (the thumbnail has ``.thumbnail`` added before the file extension by default, -# but a different naming template can be configured with IMAGE_THUMBNAIL_FORMAT). +# Folders containing images to be used in normal posts or pages. Images will be +# scaled down according to IMAGE_THUMBNAIL_SIZE and MAX_IMAGE_SIZE options, but +# will have to be referenced manually to be visible on the site +# (the thumbnail has ``.thumbnail`` added before the file extension). +# The format is a dictionary of {source: relative destination}. IMAGE_FOLDERS = {'images': 'images'} # IMAGE_THUMBNAIL_SIZE = 400 -# IMAGE_THUMBNAIL_FORMAT = '{name}.thumbnail{ext}' # ############################################################################# # HTML fragments and diverse things that are used by the templates @@ -814,19 +701,9 @@ IMAGE_FOLDERS = {'images': 'images'} # for the full URL with the page number of the main page to the normal (shorter) main # page URL. # INDEXES_PRETTY_PAGE_URL = False -# -# If the following is true, a page range navigation will be inserted to indices. -# Please note that this will undo the effect of INDEXES_STATIC, as all index pages -# must be recreated whenever the number of pages changes. -# SHOW_INDEX_PAGE_NAVIGATION = False - -# If the following is True, a meta name="generator" tag is added to pages. The -# generator tag is used to specify the software used to generate the page -# (it promotes Nikola). -# META_GENERATOR_TAG = True # Color scheme to be used for code blocks. If your theme provides -# "assets/css/code.css" this is ignored. Leave empty to disable. +# "assets/css/code.css" this is ignored. # Can be any of: # algol # algol_nu @@ -918,7 +795,7 @@ LICENSE = "" # A small copyright notice for the page footer (in HTML). # (translatable) -CONTENT_FOOTER = 'Contents licensed under Creative Commons License Creative Commons Attribution-ShareAlike 4.0 International License, {date} | Email {author}' +CONTENT_FOOTER = 'Contents © {date} {author} - Powered by Nikola {license}' # Things that will be passed to CONTENT_FOOTER.format(). This is done # for translatability, as dicts are not formattable. Nikola will @@ -943,12 +820,6 @@ CONTENT_FOOTER_FORMATS = { ) } -# A simple copyright tag for inclusion in RSS feeds that works just -# like CONTENT_FOOTER and CONTENT_FOOTER_FORMATS -RSS_COPYRIGHT = 'Contents © {date} {author} {license}' -RSS_COPYRIGHT_PLAIN = 'Contents © {date} {author} {license}' -RSS_COPYRIGHT_FORMATS = CONTENT_FOOTER_FORMATS - # To use comments, you can choose between different third party comment # systems. The following comment systems are supported by Nikola: # disqus, facebook, googleplus, intensedebate, isso, livefyre, muut @@ -967,13 +838,13 @@ COMMENT_SYSTEM_ID = "" # the "noannotations" metadata. # ANNOTATIONS = False -# Create index.html for page folders? +# Create index.html for page (story) folders? # WARNING: if a page would conflict with the index file (usually -# caused by setting slug to `index`), the PAGE_INDEX +# caused by setting slug to `index`), the STORY_INDEX # will not be generated for that directory. -# PAGE_INDEX = False -# Enable comments on pages (i.e. not posts)? -# COMMENTS_IN_PAGES = False +# STORY_INDEX = False +# Enable comments on story pages? +# COMMENTS_IN_STORIES = False # Enable comments on picture gallery pages? # COMMENTS_IN_GALLERIES = False @@ -1051,20 +922,9 @@ PRETTY_URLS = True # it's faster and the output looks better. # If you set USE_KATEX to True, you also need to add an extra CSS file # like this: -# EXTRA_HEAD_DATA = """""" +# EXTRA_HEAD_DATA = """""" # USE_KATEX = False -# If you want to use the old (buggy) inline math $.$ with KaTeX, then -# you might want to use this feature. -# KATEX_AUTO_RENDER = """ -# delimiters: [ -# {left: "$$", right: "$$", display: true}, -# {left: "\\\[", right: "\\\]", display: true}, -# {left: "$", right: "$", display: false}, -# {left: "\\\(", right: "\\\)", display: false} -# ] -# """ - # Do you want to customize the nbconversion of your IPython notebook? # IPYNB_CONFIG = {} # With the following example configuration you can use a custom jinja template @@ -1082,8 +942,6 @@ MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite', 'extra'] # Extra options to pass to the pandoc comand. # by default, it's empty, is a list of strings, for example # ['-F', 'pandoc-citeproc', '--bibliography=/Users/foo/references.bib'] -# Pandoc does not demote headers by default. To enable this, you can use, for example -# ['--base-header-level=2'] # PANDOC_OPTIONS = [] # Social buttons. This is sample code for AddThis (which was the default for a @@ -1109,7 +967,7 @@ MARKDOWN_EXTENSIONS = ['fenced_code', 'codehilite', 'extra'] # SHOW_SOURCELINK = True # Copy the source files for your pages? # Setting it to False implies SHOW_SOURCELINK = False -COPY_SOURCES = False +# COPY_SOURCES = True # Modify the number of Post per Index Page # Defaults to 10 @@ -1267,22 +1125,11 @@ UNSLUGIFY_TITLES = True # Plugins you don't want to use. Be careful :-) # DISABLED_PLUGINS = ["render_galleries"] -# Special settings to disable only parts of the indexes plugin (to allow RSS -# but no blog indexes, or to allow blog indexes and Atom but no site-wide RSS). -# Use with care. -# DISABLE_INDEXES_PLUGIN_INDEX_AND_ATOM_FEED = False -# DISABLE_INDEXES_PLUGIN_RSS_FEED = False - # Add the absolute paths to directories containing plugins to use them. # For example, the `plugins` directory of your clone of the Nikola plugins # repository. # EXTRA_PLUGINS_DIRS = [] -# Add the absolute paths to directories containing themes to use them. -# For example, the `v7` directory of your clone of the Nikola themes -# repository. -# EXTRA_THEMES_DIRS = [] - # List of regular expressions, links matching them will always be considered # valid by "nikola check -l" # LINK_CHECK_WHITELIST = [] @@ -1300,12 +1147,6 @@ UNSLUGIFY_TITLES = True # (defaults to 1.) # DEMOTE_HEADERS = 1 -# Docutils, by default, will perform a transform in your documents -# extracting unique titles at the top of your document and turning -# them into metadata. This surprises a lot of people, and setting -# this option to True will prevent it. -# NO_DOCUTILS_TITLE_TRANSFORM = False - # If you don’t like slugified file names ([a-z0-9] and a literal dash), # and would prefer to use all the characters your file system allows. # USE WITH CARE! This is also not guaranteed to be perfect, and may diff --git a/files/favicon.ico b/files/favicon.ico new file mode 100644 index 0000000..c4efbcc Binary files /dev/null and b/files/favicon.ico differ diff --git a/files/images/nikola.png b/files/images/nikola.png new file mode 100644 index 0000000..71a491f Binary files /dev/null and b/files/images/nikola.png differ diff --git a/galleries/demo/exclude.meta b/galleries/demo/exclude.meta new file mode 100644 index 0000000..967e566 --- /dev/null +++ b/galleries/demo/exclude.meta @@ -0,0 +1 @@ +tesla2_lg.jpg diff --git a/galleries/demo/index.txt b/galleries/demo/index.txt new file mode 100644 index 0000000..e29f66e --- /dev/null +++ b/galleries/demo/index.txt @@ -0,0 +1,4 @@ +.. title: Nikola Tesla + +Some public domain pictures of Nikola Tesla +(copied from `here `_) diff --git a/galleries/demo/tesla2_lg.jpg b/galleries/demo/tesla2_lg.jpg new file mode 100644 index 0000000..43ea5db Binary files /dev/null and b/galleries/demo/tesla2_lg.jpg differ diff --git a/galleries/demo/tesla4_lg.jpg b/galleries/demo/tesla4_lg.jpg new file mode 100644 index 0000000..9274950 Binary files /dev/null and b/galleries/demo/tesla4_lg.jpg differ diff --git a/galleries/demo/tesla_conducts_lg.jpg b/galleries/demo/tesla_conducts_lg.jpg new file mode 100644 index 0000000..f47d2ae Binary files /dev/null and b/galleries/demo/tesla_conducts_lg.jpg differ diff --git a/galleries/demo/tesla_lightning1_lg.jpg b/galleries/demo/tesla_lightning1_lg.jpg new file mode 100644 index 0000000..3c12b0e Binary files /dev/null and b/galleries/demo/tesla_lightning1_lg.jpg differ diff --git a/galleries/demo/tesla_lightning2_lg.jpg b/galleries/demo/tesla_lightning2_lg.jpg new file mode 100644 index 0000000..8355d86 Binary files /dev/null and b/galleries/demo/tesla_lightning2_lg.jpg differ diff --git a/galleries/demo/tesla_tower1_lg.jpg b/galleries/demo/tesla_tower1_lg.jpg new file mode 100644 index 0000000..7d8b95b Binary files /dev/null and b/galleries/demo/tesla_tower1_lg.jpg differ diff --git a/images/frontispiece.jpg b/images/frontispiece.jpg new file mode 100644 index 0000000..0baf371 Binary files /dev/null and b/images/frontispiece.jpg differ diff --git a/images/illus_001.jpg b/images/illus_001.jpg new file mode 100644 index 0000000..c8acdcf Binary files /dev/null and b/images/illus_001.jpg differ diff --git a/listings/hello.py b/listings/hello.py new file mode 100644 index 0000000..885acde --- /dev/null +++ b/listings/hello.py @@ -0,0 +1,11 @@ +#!/usr/bin/python + +import sys + + +def hello(name='world'): + greeting = "hello " + name + print(greeting) + +if __name__ == "__main__": + hello(*sys.argv[1:]) diff --git a/posts/1.rst b/posts/1.rst new file mode 100644 index 0000000..386251b --- /dev/null +++ b/posts/1.rst @@ -0,0 +1,27 @@ +.. title: Welcome to Nikola +.. slug: welcome-to-nikola +.. date: 2012-03-30 23:00:00 UTC-03:00 +.. tags: nikola, python, demo, blog +.. author: Roberto Alsina +.. link: https://getnikola.com/ +.. description: +.. category: nikola + +.. figure:: https://farm1.staticflickr.com/138/352972944_4f9d568680.jpg + :target: https://farm1.staticflickr.com/138/352972944_4f9d568680_z.jpg?zz=1 + :class: thumbnail + :alt: Nikola Tesla Corner by nicwest, on Flickr + +If you can see this in a web browser, it means you managed to install Nikola, +and build a site using it. Congratulations! + +Next steps: + +* :doc:`Read the manual ` +* `Visit the Nikola website to learn more `__ +* `See a demo photo gallery `__ +* :doc:`See a demo listing ` +* :doc:`See a demo slideshow ` +* :doc:`See a demo of a longer text ` + +Send feedback to info@getnikola.com!