Nå er det på tide å tilpasse din Jekyll-webside og gi den en profil som er tilpasset det du vil bruke den til.
Først skal vi endre _config.yml-filen. Denne inneholder bakgrunnsinformasjon for bloggen din. Du finner _config.yml i Explorer-vinduet i VS-code sammen med de ander filene som hører til bloggen.
_config.yml
Når du åpner fila, ser den omtrent sånn ut:
# Welcome to Jekyll! # # This config file is meant for settings that affect your whole blog, values # which you are expected to set up once and rarely edit after that. If you find # yourself editing this file very often, consider using Jekyll's data files # feature for the data you need to update frequently. # # For technical reasons, this file is *NOT* reloaded automatically when you use # 'bundle exec jekyll serve'. If you change this file, please restart the server process. # # If you need help with YAML syntax, here are some quick references for you: # https://learn-the-web.algonquindesign.ca/topics/markdown-yaml-cheat-sheet/#yaml # https://learnxinyminutes.com/docs/yaml/ # # Site settings # These are used to personalize your new site. If you look in the HTML files, # you will see them accessed via Cha-IM, , and so on. # You can create any custom variable you would like, and they will be accessible # in the templates via . title: Your awesome title email: your-email@example.com description: >- # this means to ignore newlines until "baseurl:" Write an awesome description for your new site here. You can edit this line in _config.yml. It will appear in your document head meta (for Google search results) and in your feed.xml site description. baseurl: "" # the subpath of your site, e.g. /blog url: "" # the base hostname & protocol for your site, e.g. http://example.com twitter_username: jekyllrb github_username: jekyllrb # Build settings theme: minima plugins: - jekyll-feed # Exclude from processing. # The following items will not be processed, by default. # Any item listed under the `exclude:` key here will be automatically added to # the internal "default list". # # Excluded items can be processed by explicitly listing the directories or # their entries' file path in the `include:` list. # # exclude: # - .sass-cache/ # - .jekyll-cache/ # - gemfiles/ # - Gemfile # - Gemfile.lock # - node_modules/ # - vendor/bundle/ # - vendor/cache/ # - vendor/gems/ # - vendor/ruby/
Linjene som starter med # er kommentarer ment for å hjelpe deg å forstå koden. Ellers er koden ganske enkel; hver linje består av en nøkkel og en verdi, med kolon (:) imellom. Det du trenger å gjøre er å endre verdiene til å passe din blogg.
#
:
title:
email:
description:
baseurl:
url:
twitter_username:
github_username:
facebook_username:
instagram_username:
linkedin_username:
youtube_username:
pinterest username
theme:
plugins:
Jekyll er et webrammeverk som tar utgangspunkt i Markdown for å bygge en nettside. Rammeverk gjør...
© 2024 • Contents under CC-BY-NC • Maintained by Karl Arne Dalsaune