From bc3aef698f02c97ce2d9be71446f000f542e7b75 Mon Sep 17 00:00:00 2001 From: Kaushal Modi Date: Thu, 20 Jul 2017 10:49:14 -0400 Subject: [PATCH] Remove old 'fixme's in examples; minor content update --- example-site/content-org/all-posts.org | 30 ++++++++++++++--------- example-site/content/posts/image-links.md | 20 ++++++++++----- example-site/content/posts/post-1.md | 4 +-- example-site/content/posts/post-2.md | 2 +- 4 files changed, 36 insertions(+), 20 deletions(-) diff --git a/example-site/content-org/all-posts.org b/example-site/content-org/all-posts.org index 44573b0..5688c2b 100644 --- a/example-site/content-org/all-posts.org +++ b/example-site/content-org/all-posts.org @@ -16,15 +16,15 @@ * Post 1 :PROPERTIES: :EXPORT_FILE_NAME: post-1 +:EXPORT_DATE: 2017-07-12T17:31:56-04:00 :END: -Export this *first* post only by moving point here and doing =C-c C-e -H H=. +Export this *first* post only by bringing point here and doing =M-x org-hugo-publish-subtree=. * Post 2 :PROPERTIES: :EXPORT_FILE_NAME: post-2 +:EXPORT_DATE: 2017-07-12T17:05:38-04:00 :END: -Export this *second* post only by moving point here and doing =C-c C-e -H H=. +Export this *second* post only by bringing point here and doing =M-x org-hugo-publish-subtree=. * Image :PROPERTIES: :EXPORT_TAGS: image @@ -34,16 +34,12 @@ H H=. :EXPORT_FILE_NAME: image-links :EXPORT_DATE: 2017-07-15T07:49:44-04:00 :END: -*To be fixed*: At the moment, you need to place the point here and do - =C-c C-e H H=. If the point is under any of the nested sub-trees in - here where you do that, only that subtree gets exported. - -/Need to add smarts that determines which subtree contains the whole -post.. like look for =EXPORT_FILE_NAME=?/ +This is some text before the first heading of this post. *** Unclickable image (works!) [[/images/org-mode-unicorn-logo.png]] -*To be fixed*: The sub-headings in a post get exported as /Heading 1/ +----- ++To be fixed+ (*Now fixed*): The sub-headings in a post get exported as /Heading 1/ instead of /Heading 2/. For example, this sub-section's heading is exported as: @@ -55,6 +51,9 @@ instead of ## Unclickable image #+END_EXAMPLE +----- +*Solution*: Above is fixed by setting =HUGO_OFFSET_LEVEL= to 1. + So the sub-heading title and the post title both get the /Heading 1/ tag and look the same size. *** Clickable link that opens the image (works!) @@ -250,6 +249,15 @@ ORG_MAKE_DOC = info pdf card # html # org-mime - Convert org buffer to htmlized format for email ORG_ADD_CONTRIB = org-eldoc ox-extra org-mime #+END_SRC +** Source block with caption +:PROPERTIES: +:EXPORT_FILE_NAME: source-block-caption +:EXPORT_DATE: 2017-07-19 +:END: +#+CAPTION: Prefix value in =local.mk= +#+BEGIN_SRC makefile +prefix = /dir/where/you/want/to/install/org # Default: /usr/share +#+END_SRC * Example block :example: ** Simple :PROPERTIES: diff --git a/example-site/content/posts/image-links.md b/example-site/content/posts/image-links.md index bf3b973..35a6fbd 100644 --- a/example-site/content/posts/image-links.md +++ b/example-site/content/posts/image-links.md @@ -5,24 +5,32 @@ tags = ["image"] draft = false +++ -**To be fixed**: At the moment, you need to place the point here and do `C-c C-e H H`. If the point is under any of the nested sub-trees in here where you do that, only that subtree gets exported. - -*Need to add smarts that determines which subtree contains the whole post.. like look for `EXPORT_FILE_NAME`?* +This is some text before the first heading of this post. ## Unclickable image (works!) {#unclickable-image--works} {{
}} -**To be fixed**: The sub-headings in a post get exported as *Heading 1* instead of *Heading 2*. +--- + +~~To be fixed~~ (**Now fixed**): The sub-headings in a post get exported as *Heading 1* instead of *Heading 2*. For example, this sub-section’s heading is exported as: - # Unclickable image +```text +# Unclickable image +``` instead of - ## Unclickable image +```text +## Unclickable image +``` + +--- + +**Solution**: Above is fixed by setting `HUGO_OFFSET_LEVEL` to 1. So the sub-heading title and the post title both get the *Heading 1* tag and look the same size. diff --git a/example-site/content/posts/post-1.md b/example-site/content/posts/post-1.md index a0a76b6..098c195 100644 --- a/example-site/content/posts/post-1.md +++ b/example-site/content/posts/post-1.md @@ -1,8 +1,8 @@ +++ title = "Post 1" -date = 2017-07-12T17:05:38-04:00 +date = 2017-07-12T17:31:56-04:00 tags = [] draft = false +++ -Export this **first** post only by moving point here and doing `C-c C-e H H`. +Export this **first** post only by bringing point here and doing `M-x org-hugo-publish-subtree`. diff --git a/example-site/content/posts/post-2.md b/example-site/content/posts/post-2.md index db60a1a..23520ac 100644 --- a/example-site/content/posts/post-2.md +++ b/example-site/content/posts/post-2.md @@ -5,4 +5,4 @@ tags = [] draft = false +++ -Export this **second** post only by moving point here and doing `C-c C-e H H`. +Export this **second** post only by bringing point here and doing `M-x org-hugo-publish-subtree`.