diff --git a/building-static-websites-sculpin/code/configuration.txt b/building-static-websites-sculpin/code/configuration.txt index 9800895..3d4d197 100644 --- a/building-static-websites-sculpin/code/configuration.txt +++ b/building-static-websites-sculpin/code/configuration.txt @@ -1,6 +1,5 @@ --- -title: My talk -foo: bar +name: My talk menu_links: - - { title: About, href: / } - - { title: Talks, href: /talks/ } + - { title: Home, href: / } + - { title: About, href: /about } diff --git a/building-static-websites-sculpin/images/packagist.png b/building-static-websites-sculpin/images/packagist.png new file mode 100644 index 0000000..b127907 Binary files /dev/null and b/building-static-websites-sculpin/images/packagist.png differ diff --git a/building-static-websites-sculpin/slides.rst b/building-static-websites-sculpin/slides.rst index d84a3b0..8a8f2df 100644 --- a/building-static-websites-sculpin/slides.rst +++ b/building-static-websites-sculpin/slides.rst @@ -35,23 +35,31 @@ What do I use it for? * My personal website * Some client websites * HTML prototypes and testing -* Learning YAML and Twig (and maybe some Symfony) +* Learning YAML and Twig (and some Symfony) Installation ============ ``composer require sculpin/sculpin`` +| + +``composer create-project sculpin/blog-skeleton my-blog`` + +| + +``composer create-project opdavies/sculpin-skeleton my-site`` + Using Sculpin ============= * Configuration lives in ``app/config`` -* Source code lives in ``source``. +* Source files live in ``source``. Generate a site =============== -* ``sculpin generate`` +* ``vendor/bin/sculpin generate`` * ``--server`` * ``--watch`` * ``--env`` @@ -62,6 +70,18 @@ source/index.md .. code-block:: markdown :include: code/index.md.txt +output_dev/index.html +===================== + +.. code-block:: html + + +
+ + +Hello, World!
+ + Configuration ============= @@ -70,9 +90,19 @@ Configuration - ``sculpin_site_{env}.yml`` - Key-value pairs -.. code-block:: markdown +.. code-block:: yaml :include: code/configuration.txt +Using on pages +============== + +.. code-block:: html + + + +{{ testimonial.text }}
{% endfor %} +Layouts +======= + +.. code-block:: twig + + {# source/_layouts/app.html.twig #} + + + + +