From e182245d3205d929881f51da9b48d6c4ed97a682 Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Thu, 8 Feb 2024 16:36:31 -0600 Subject: Commit inicial --- _posts/2015-04-18-welcome-to-jekyll.md | 74 ++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 _posts/2015-04-18-welcome-to-jekyll.md (limited to '_posts/2015-04-18-welcome-to-jekyll.md') diff --git a/_posts/2015-04-18-welcome-to-jekyll.md b/_posts/2015-04-18-welcome-to-jekyll.md new file mode 100644 index 0000000..2f2d34d --- /dev/null +++ b/_posts/2015-04-18-welcome-to-jekyll.md @@ -0,0 +1,74 @@ +--- +layout: post +title: "Welcome to Jekyll!" +date: 2015-04-18T14:25:52-05:00 +author: Ben Centra +categories: Jekyll +tags: jekyll welcome +cover: "/assets/instacode.png" +--- + +You’ll find this post in your `_posts` directory. Go ahead and edit it and re-build the site to see your changes. You can rebuild the site in many different ways, but the most common way is to run `jekyll serve`, which launches a web server and auto-regenerates your site when a file is updated. + +## Adding New Posts + +To add new posts, simply add a file in the `_posts` directory that follows the convention `YYYY-MM-DD-name-of-post.ext` and includes the necessary front matter. Take a look at the source for this post to get an idea about how it works. + +### Tags and Categories + +If you list one or more categories or tags in the front matter of your post, they will be included with the post on the page as links. Clicking the link will bring you to an auto-generated archive page for the category or tag, created using the [jekyll-archive][jekyll-archive] gem. + +### Cover Images + +To add a cover image to your post, set the "cover" property in the front matter with the relative URL of the image (i.e. cover: "/assets/cover_image.jpg"). + +### Code Snippets + +You can use [highlight.js][highlight] to add syntax highlight code snippets: + +Use the [Liquid][liquid] `{% raw %}{% highlight %}{% endraw %}` tag to add syntax highlighting to code snippets. + +For instance, this template... +{% highlight html %} +{% raw %}{% highlight javascript %} +function demo(string, times) { + for (var i = 0; i < times; i++) { + console.log(string); + } +} +demo("hello, world!", 10); +{% endhighlight %}{% endraw %} +{% endhighlight %} + +...will come out looking like this: + +{% highlight javascript %} +function demo(string, times) { + for (var i = 0; i < times; i++) { + console.log(string); + } +} +demo("hello, world!", 10); +{% endhighlight %} + +Syntax highlighting is done using [highlight.js][highlight]. You can change the active theme in [head.html](https://github.com/bencentra/centrarium/blob/2dcd73d09e104c3798202b0e14c1db9fa6e77bc7/_includes/head.html#L15). + +### Images + +Lightbox has been enabled for images. To create the link that'll launch the lightbox, add data-lightbox and data-title attributes to an <a> tag around your <img> tag. The result is: + + + + + +For more information, check out the [Lightbox][lightbox] website. + +Check out the [Jekyll docs][jekyll] for more info on how to get the most out of Jekyll. File all bugs/feature requests at [Jekyll’s GitHub repo][jekyll-gh]. If you have questions, you can ask them on [Jekyll’s dedicated Help repository][jekyll-help]. + +[jekyll]: http://jekyllrb.com +[jekyll-gh]: https://github.com/jekyll/jekyll +[jekyll-help]: https://github.com/jekyll/jekyll-help +[highlight]: https://highlightjs.org/ +[lightbox]: http://lokeshdhakar.com/projects/lightbox2/ +[jekyll-archive]: https://github.com/jekyll/jekyll-archives +[liquid]: https://github.com/Shopify/liquid/wiki/Liquid-for-Designers -- cgit v1.2.3