Copy tumblr theme with all parameters - tumblr

I have tumblr blog with Elise theme.
It has tons of configurable parameters.
Now I'd like to create one more Tumblr blog with exactly the same parameters.
Is it possible to export / import theme settings in Tumblr? Or can I just copy the blog with all theme parameters?
P.s. coping theme html doesn't work, as it copies theme only without theme parameters.
Thanks!

Those settings aren't exportable in any official way.
However, if you just want to create a second Tumblr with the same text color, font, etc., you can copy the original's dynamically generated CSS (which starts under the "THEME STYLE FROM OPTIONS" comment), create a clone with the Elise theme, and replace the clone's theme style with that in the same location. The configurable parameters won't work anymore, but the styles will be identical.

Related

Is it possible to build a LibreOffice document from code similar to the way a web page is built from HTML and CSS?

Is it possible to build a LibreOffice document from code similar to the way a web page is built from HTML and CSS? Can one write an ODF file in which the content and styling are separate, and then/view open in LibreOffice? If so, can one write the code in a text editor as done for HTML/CSS?
There area two reasons I now ask. 1) When I need to make a style change in LibreOffice I have to manually make the same adjustments in a hundred places, such as changing the style of block quotes. 2) I'd like to build documents from a database of text.
I found a question on this in relation to databases but it was about eight years old.
Thank you for any direction you may be able to provide.
Unzip an .odt file that contains styles. You will see two files, content.xml and styles.xml. Edit these files using a text editor and then zip the folder back up to get a modified .odt file.
Be aware that there are two types of styles in the XML files. Named styles are what most people think of as styles, whereas automatic styles are custom formatting, like when you select some text and change the font directly.
The link from tohuwawohu describes utilities to work programmatically with the file. Also as mentioned in the link, it's not too hard to write code yourself. For example in python, import the built-in libraries zipfile and xml.etree.

How to combine authorable css files in css.txt in aem

We have an existing AEM application where there are 100s of pages. On most of the pages, different css files are getting loaded via a separate network call. We need to optimize this. What I am thinking is if we can:
1. Author the list of css files on the page as a page property.
2. In our code, this page property is read and all the css files mentioned as a property value get combined and rendered on the page. Similar to what is done in css.txt file or embed property.
Please suggest.
Their are few ways to reduce the network calls for css files in AEM
1) Add the css files at the template level so that all the css files are loaded once.
2) Instead of adding the category of the clientlibs use the embed property of the clientlibs. AEM will combine all the clientlibs provided in the embed property into a single clientlib and their will be only network call. But the size of the css file may increase after combining and it will effect the page load time for the first time.
But if your requirement is to author the css files then I will suggest you have a dropdown kind of property in your dialog where all your css files are displayed and the author can select the css according to the need. Once selected then you can apply those css to the html by reading through sightly.
So, it seems you don't want to or cannot use the clientlib functioanlity which is an ootb AEM feature.
No matter what solution you choose - maybe a frontend JavaScript snippet that can decide which CSS files would be needed, or some logic that builds CSS includes at render time based on the components used in the page, or something completely different - I would strongly suggest not to put the CSS files to be used in the editor's responsibility.
If they need some additional styles to be set, use the Adobe Style System. But do not abuse page properties for CSS file configurations.
I mean "hundreds of pages" sounds like a rather small site, but it might still increase your maintenance efforts a lot, when the first people start to complain about wrong colors or font sizes...

Cannot use "page" and "post" layouts of Jekyll theme in GitHub pages?

I started experimenting with GitHub pages and Jekyll.
You can find my repository here:
https://github.com/braek/braek.github.io
And the website you can find here:
http://www.braek.be
I created a post and configured "page" as layout, but the page is not rendered in the Cayman theme that I selected in the GitHub pages settings.
The same goes for a post with layout set to "post".
Is this normal? Do I need to add these templates myself in the _layouts directory?
Kind regards,
B.
The Cayman theme does not have a page layout. It only has a default layout.
You have to build the page layout yourself.
The instructions on how to create new layouts & modify the default one are in the repository of the Cayman theme, copied below for simplicity:
Layouts
If you'd like to change the theme's HTML layout:
Copy the original template from the theme's repository(Pro-tip: click "raw" to make copying easier)
Create a file called /_layouts/default.html in your site
Paste the default layout content copied in the first step
Customize the layout as you'd like

How to add language icons in liferay DXP

How to add the Language icon image in liferay 7(liferay-ce-portal-7.0-ga4).
I have followed the steps mentioned in following article,
https://web.liferay.com/web/salman.khan/blog/-/blogs/add-a-new-language-to-liferay-detailed-step-by-step-
After the language configuration I can be able to see the languages but not the flags on web content forms.
So I created the custom theme to add the language file and added th_TH.png file in theme\src\images\language\th_TH.png. But din't work.
Then I tried the implementing the lexicon-icon approach mention in,
how can i add a new language in liferay 7?
Still I am not able to see the language images.
Please refer the screenshot for details,
Theme-layout and file location
To add a custom icon that is not supported yet you need to add 2 artefacts into the theme. Liferay using 2 things for displaying icons. Somewhere it uses png flag and somewhere svg you need to adjust both.
Have a look at this sample project. https://github.com/mir333/custom-flag-admin-theme
It takes the admin theme of Liferay (it is a copy so it needs to be kept in sync with updates) and adds a new flag to the admin theme. The magic is in adding the flag into the lexicon. Under the hood, it takes the added flag svg files and recompiles the icons.svg files to include it.
To anyone who still have issue showing the flag, I just want to point out that this helped me: https://stackoverflow.com/a/45907250
As described, open the icons.svg and add your flag's svg code in as a symbol with the id "xx-yy" (your language and country code, in lowercase).
The flag does not magically generate just from putting the flags-xx-YY.svg file into lexicon folder, not for me at least.

Difficulty in setting up jekyll theme for github page

I have enabled github page for my repository. I am trying to set up theme for the page using repository settings. When I selected the theme ,a _config.yml file was generated in docs folder. But no theme is there on github page. Do I need to add any other file in /docs/ folder apart from index.html and _config.yml ?
Thanks to Github support team, I got the solution. I added this front matter at the top of my HTML file, that made the theme styles applied:
---
layout: default
---
If you use Markdown, the theme would be applied automatically so converting your HTML to Markdown is another option.