{{ site.description }}
-Grafikken er Traffic Light af icon 54 fra the Noun Project.
- - -Grafikken er transfer af Gonzalo Bravo fra the Noun Project.
- - -Grafikken er safe af Maxim Kulikov fra the Noun Project.
- - -Grafikken er Shrug af Andrew Doane fra the Noun Project.
- - -Grafikken er backup af Adrien Coquet fra the Noun Project.
- - -Grafikken er Dog Paws af iejank fra the Noun Project.
- - -Grafikken er anonymous af pidzemleyu fra the Noun Project.
diff --git a/_pages/tjenester.md b/_pages/tjenester.md deleted file mode 100644 index 6735698..0000000 --- a/_pages/tjenester.md +++ /dev/null @@ -1,195 +0,0 @@ ---- -layout: page -title: Tjenester -permalink: /tjenester/ ---- - -Her er en oversigt over de tjenester vi tilbyder. Nogle er [kun for vores -medlemmer](#tjenester-der-kun-er-for-vores-medlemmer), andre er [åbne for -alle](#tjenester-der-er-åbne-for-alle). - -Alle tjenester er markeret med nogle badges, der deklarerer i hvor høj grad den -enkelte tjeneste lever op til [kerneprincipperne defineret i formålsparagraffen -i vores vedtægter](/_pages/vedtaegter.html#-2-form%C3%A5l). Vi har også skrevet -en uddybning af [hvad de forskellige badges dækker over](/tjenester/badges/). - -## Tjenester der kun er for vores medlemmer - -Gem dine filer, din kalender og dine kontakter i skyen og tilgå alt fra alle dine enheder.
-- [1] Det kræver login at sende data til skyen. Men det er muligt at dele - dine data med andre (eller dig selv) uden at de skal logge ind. -
-Skriver du kode eller anden tekst som du gerne vil holde under versionsstyring, kan du gemme det her.
-- [1] Offentligt tilgængelige repositories kan tilgås af alle, uden at være logget ind. -
-Hjælper dig med at huske stærke, unikke kodeord til alle de sites og apps du benytter dig af.
-- [1] Al brugerdata (navne, websites, kodeord, noter osv.) er krypteret så det kun er brugerne selv der kan tilgå deres data. Der foretages dog stadig logning af brugen af tjenesten, så helt 100% ZN er det ikke. -
-hugo says hello!
+ + +:wq + +$ +``` + +Build the web site and then verify the results. + +``` +$ hugo --verbose +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/themes/zafta/static/ to /Users/quoha/Sites/zafta/public/ +INFO: 2014/09/29 syncing from /Users/quoha/Sites/zafta/static/ to /Users/quoha/Sites/zafta/public/ +WARN: 2014/09/29 Unable to locate layout: [404.html theme/404.html] +0 draft content +0 future content +0 pages created +0 tags created +0 categories created +in 2 ms + +$ find public -type f -name '*.html' | xargs ls -l +-rw-r--r-- 1 quoha staff 78 Sep 29 21:26 public/index.html + +$ cat public/index.html + + + +hugo says hello!
+ +``` + +#### Live Reload + +Note: If you're running the server with the `--watch` option, you'll see different content in the file: + +``` +$ cat public/index.html + + + +hugo says hello!
+ + +``` + +When you use `--watch`, the Live Reload script is added by Hugo. Look for live reload in the documentation to see what it does and how to disable it. + +### Build a "Dynamic" Home Page + +"Dynamic home page?" Hugo's a static web site generator, so this seems an odd thing to say. I mean let's have the home page automatically reflect the content in the site every time Hugo builds it. We'll use iteration in the template to do that. + +#### Create New Posts + +Now that we have the home page generating static content, let's add some content to the site. We'll display these posts as a list on the home page and on their own page, too. + +Hugo has a command to generate a skeleton post, just like it does for sites and themes. + +``` +$ hugo --verbose new post/first.md +INFO: 2014/09/29 Using config file: /Users/quoha/Sites/zafta/config.toml +INFO: 2014/09/29 attempting to create post/first.md of post +INFO: 2014/09/29 curpath: /Users/quoha/Sites/zafta/themes/zafta/archetypes/default.md +ERROR: 2014/09/29 Unable to Castmy first post
+ + + + +$ cat public/post/second/index.html + + + +my second post
+ + + +$ +``` + +Notice that the posts now have content. You can go to localhost:1313/post/first to verify. + +### Linking to Content + +The posts are on the home page. Let's add a link from there to the post. Since this is the home page, we'll update its template. + +``` +$ vi themes/zafta/layouts/index.html + + + + {{ range first 10 .Data.Pages }} +