Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My custom theme is not being use by EGO #45

Open
shackra opened this issue Nov 5, 2015 · 5 comments
Open

My custom theme is not being use by EGO #45

shackra opened this issue Nov 5, 2015 · 5 comments
Labels

Comments

@shackra
Copy link

shackra commented Nov 5, 2015

Hello, again!

I generated a preview of my blog and I noticed that it is using the default instead of my customized theme. I'm not sure if I'm missing something, here is the current value of ego/project-config-alist:

(("El blog de Shackra"
  :repository-directory "~/Documentos/elblog.deshackra.com/"
  :repository-html-branch nil
  :repository-org-branch "master"
  :default-category "blog"
  :site-domain "http://elblog.deshackra.com"
  :site-main-title "El blog de Shackra"
  :site-sub-title "No seas tan abierto de mente o tu cerebro se caerá"
  :ignore-file-name-regexp "README"
  :rss
  ("RSS" "/rss.xml")
  :about
  ("Sobre mi" "/about")
  :theme-root-directory
  (list
   (expand-file-name "org-page-themes" user-emacs-directory))
  :theme
  (shackra)
  :source-browse-url
  ("Bitbucket" "https://bitbucket.org/shackra/blog/")
  :confound-email t :web-server-docroot "~/Documentos/deshackra.com/elblog.deshackra.com" :web-server-port 5777))

Check org-page-themes if you think there is something wrong with the hierarchy of the templates.

@kuangdash
Copy link
Member

Oh……the reason is that the template name of EGO is not compatible with org-page, you can compare your template directory with 'default/template' directory:

tag-index.mustache vs summary-index.mustache
tag.mustache vs summary.mustache
and etc……

The ‘summary’ means ’not only tags but also years & authors and others‘.
And you can use ego/test-current-page to test the theme. That's quick and easy.

@shackra
Copy link
Author

shackra commented Nov 6, 2015

Oh, going to use meld to compare both directories and will report back!

El 6 de noviembre de 2015 04:01:17 CST, tyuuni [email protected] escribió:

Oh……the reason is that the template name of EGO is not compatible with
org-page, you can compare your template directory with
'default/template' directory:

tags-index.mustache vs summary-index.mustache
tags.mustache vs summary.mustache
and etc……


Reply to this email directly or view it on GitHub:
#45 (comment)

Sent from my Android device with K-9 Mail. Please excuse my brevity.

@kuangdash
Copy link
Member

M-x ediff is enough for it,
Believe in the power of emacs.

@shackra
Copy link
Author

shackra commented Nov 7, 2015

That's something of Emacs I still need to learn in deep :)

I did the checking, and the .mustache files are the same in variables, there are obvious differences
in structure, but in my mind they shouldn't affect EGO making it fallback to the default theme. Is
there a way to debug this on EGO? something like "using theme " in EGO output would be
great!.

El viernes 06 de noviembre del 2015 a las 2155 horas, tyuuni escribió:

M-x ediff is enough for it,
Believe in the power of emacs.


Reply to this email directly or view it on GitHub:
#45 (comment)

👋 Pax et bonum.
Jorge Araya Navarro
https://es.gravatar.com/shackra

@kuangdash
Copy link
Member

In fact, EGO will make the theme fallback to the default theme if there are some templates missed in the chosen theme.

The feature is included by @tumashu who is the creator of org-webpage.

You can use trace-function to trace the action of specific elisp function, the implement of (message "using theme <THEME>") may be complex……

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants