EGO icon indicating copy to clipboard operation
EGO copied to clipboard

My custom theme is not being use by EGO

Open shackra opened this issue 9 years ago • 5 comments

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.

shackra avatar Nov 05 '15 19:11 shackra

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.

kuangdash avatar Nov 06 '15 10:11 kuangdash

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: https://github.com/emacs-china/EGO/issues/45#issuecomment-154368467

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

shackra avatar Nov 06 '15 15:11 shackra

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

kuangdash avatar Nov 07 '15 03:11 kuangdash

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 <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: https://github.com/emacs-china/EGO/issues/45#issuecomment-154614974

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

shackra avatar Nov 07 '15 05:11 shackra

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……

kuangdash avatar Nov 07 '15 18:11 kuangdash